Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 101.9 kB / 19.73 MB, free: 1.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002115/0.002115, allocations: 215.1 kB / 23.03 MB, free: 4.422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.792/2.792, allocations: 476.8 MB / 0.7715 GB, free: 3.855 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 62.97 kB / 1.118 GB, free: 39.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3145, allocations: 170 MB / 1.284 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00337/0.3178, allocations: 1.62 MB / 1.286 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001175/0.319, allocations: 0.6524 MB / 1.286 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.373e-05/0.3191, allocations: 0 / 1.286 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001594/0.3192, allocations: 19.8 kB / 1.286 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002322/0.3195, allocations: 43.77 kB / 1.286 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004755/0.3199, allocations: 131.7 kB / 1.286 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002884/0.3202, allocations: 195.5 kB / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.3204, allocations: 13.64 kB / 1.287 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.3206, allocations: 99.73 kB / 1.287 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.3207, allocations: 83.72 kB / 1.287 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.555e-05/0.3207, allocations: 12 kB / 1.287 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.577e-05/0.3208, allocations: 32 kB / 1.287 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.266e-05/0.3209, allocations: 35.84 kB / 1.287 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.137e-05/0.321, allocations: 59.78 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.3213, allocations: 182.9 kB / 1.287 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3213, allocations: 0 / 1.287 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.243e-06/0.3213, allocations: 0 / 1.287 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.605e-06/0.3213, allocations: 8 kB / 1.287 GB, free: 7.465 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000738/0.322, allocations: 496.4 kB / 1.288 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3221, allocations: 12.03 kB / 1.288 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.512e-05/0.3221, allocations: 192 / 1.288 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.483e-05/0.3221, allocations: 42.69 kB / 1.288 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.3223, allocations: 28.83 kB / 1.288 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.3226, allocations: 175 kB / 1.288 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.3226, allocations: 16.38 kB / 1.288 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.631e-05/0.3227, allocations: 16.12 kB / 1.288 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.323, allocations: 169 kB / 1.288 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.323, allocations: 0 / 1.288 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.323, allocations: 11.94 kB / 1.288 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.207e-06/0.323, allocations: 0 / 1.288 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.3233, allocations: 127.3 kB / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006601/0.3239, allocations: 367.7 kB / 1.289 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.3242, allocations: 137.9 kB / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.3244, allocations: 128.2 kB / 1.289 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.3244, allocations: 0 / 1.289 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003166/0.3247, allocations: 242 kB / 1.289 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.3247, allocations: 96 / 1.289 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0008378/0.3255, allocations: 483.8 kB / 1.29 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.3256, allocations: 170.2 kB / 1.29 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.3258, allocations: 179.6 kB / 1.29 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.3258, allocations: 29.64 kB / 1.29 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.263e-05/0.3259, allocations: 108.4 kB / 1.29 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.258e-05/0.326, allocations: 27.75 kB / 1.29 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.819e-05/0.326, allocations: 45.7 kB / 1.29 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3262, allocations: 326.8 kB / 1.29 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.3264, allocations: 166.8 kB / 1.291 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.3266, allocations: 211.9 kB / 1.291 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.327, allocations: 312.9 kB / 1.291 GB, free: 3.035 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.327, allocations: 0 / 1.291 GB, free: 3.035 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006439/0.3277, allocations: 471 kB / 1.291 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.333e-05/0.3277, allocations: 118.8 kB / 1.292 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3278, allocations: 0 / 1.292 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.3278, allocations: 4 kB / 1.292 GB, free: 2.375 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.3279, allocations: 19.92 kB / 1.292 GB, free: 2.355 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.3279, allocations: 4.25 kB / 1.292 GB, free: 2.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.328, allocations: 19.94 kB / 1.292 GB, free: 2.332 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.328, allocations: 11.94 kB / 1.292 GB, free: 2.32 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001849/0.3282, allocations: 202 kB / 1.292 GB, free: 2.102 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.671e-05/0.3282, allocations: 16.19 kB / 1.292 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.234e-05/0.3283, allocations: 13.41 kB / 1.292 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3283, allocations: 0 / 1.292 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3283, allocations: 3.938 kB / 1.292 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3283, allocations: 4 kB / 1.292 GB, free: 2.055 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000811/0.3291, allocations: 0.6095 MB / 1.292 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3291, allocations: 4 kB / 1.292 GB, free: 1.367 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.398e-05/0.3292, allocations: 11.98 kB / 1.292 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3292, allocations: 0 / 1.292 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.3292, allocations: 11.98 kB / 1.292 GB, free: 1.344 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.361e-06/0.3292, allocations: 8.094 kB / 1.293 GB, free: 1.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3292, allocations: 0 / 1.293 GB, free: 1.336 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006345/0.3298, allocations: 470.1 kB / 1.293 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.765e-05/0.3299, allocations: 7.953 kB / 1.293 GB, free: 0.8281 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.3299, allocations: 8 kB / 1.293 GB, free: 0.8203 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.33, allocations: 11.94 kB / 1.293 GB, free: 0.8086 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.3301, allocations: 7.984 kB / 1.293 GB, free: 0.8008 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/0.3301, allocations: 15.97 kB / 1.293 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001226/0.3302, allocations: 129.8 kB / 1.293 GB, free: 0.6602 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3302, allocations: 0 / 1.293 GB, free: 0.6602 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003137/0.3305, allocations: 39.89 kB / 1.293 GB, free: 0.6211 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001175/0.3317, allocations: 1.028 MB / 1.294 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006514/0.3324, allocations: 0.5191 MB / 1.295 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3324, allocations: 4 kB / 1.295 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002772/0.3326, allocations: 238.7 kB / 1.295 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.333, allocations: 27.92 kB / 1.295 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003095/0.3361, allocations: 2.62 MB / 1.297 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.389e-05/0.3362, allocations: 101 kB / 1.298 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.835e-05/0.3362, allocations: 16.48 kB / 1.298 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.523e-05/0.3363, allocations: 39.42 kB / 1.298 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of SimCode: time 6.81e-07/0.3363, allocations: 0 / 1.298 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/0.3609, allocations: 3.996 MB / 1.302 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/11.99, allocations: 17.27 kB / 1.302 GB, free: 7.777 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.64760661299806] Failed to read output from testmodel.py, exit status != 0: 12.664568210951984 12.177473186 11.852696227 Calling exit ...