Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001314/0.001314, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.001456/0.001456, allocations: 177 kB / 23.36 MB, free: 1.129 MB / 18.57 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 0.9474/0.9474, allocations: 177.1 MB / 203.8 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.325/2.325, allocations: 438.8 MB / 0.6827 GB, free: 13.6 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 0.8386 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.591e-05/1.727e-05, allocations: 8.5 kB / 0.8386 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002561/0.002579, allocations: 1.673 MB / 0.8402 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0008892/0.003468, allocations: 0.6658 MB / 0.8409 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.148e-05/0.003529, allocations: 4 kB / 0.8409 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.003654, allocations: 27.66 kB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.003826, allocations: 51.75 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.004137, allocations: 115.7 kB / 0.841 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002114/0.004348, allocations: 191.5 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 8.13e-05/0.00443, allocations: 22.22 kB / 0.8413 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.004625, allocations: 123.8 kB / 0.8414 GB, free: 11.36 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 9.852e-05/0.004724, allocations: 63.86 kB / 0.8414 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.004751, allocations: 16 kB / 0.8414 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.223e-05/0.004813, allocations: 27.98 kB / 0.8415 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 6.049e-05/0.004874, allocations: 31.91 kB / 0.8415 GB, free: 11.22 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.458e-05/0.004938, allocations: 63.83 kB / 0.8416 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.005121, allocations: 147.5 kB / 0.8417 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.005123, allocations: 0 / 0.8417 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of FrontEnd: time 5.11e-07/0.005123, allocations: 0 / 0.8417 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.946e-06/0.005126, allocations: 3.938 kB / 0.8417 GB, free: 11.01 MB / 0.8073 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.0004385/0.005565, allocations: 467 kB / 0.8422 GB, free: 10.51 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.819e-05/0.005593, allocations: 8.625 kB / 0.8422 GB, free: 10.5 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.005715, allocations: 32.91 kB / 0.8422 GB, free: 10.47 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001974/0.005912, allocations: 181.5 kB / 0.8424 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.005925, allocations: 4.375 kB / 0.8424 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.643e-05/0.005951, allocations: 16.38 kB / 0.8424 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.006115, allocations: 158.3 kB / 0.8425 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.006122, allocations: 192 / 0.8425 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.006135, allocations: 4.375 kB / 0.8425 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.006142, allocations: 7.938 kB / 0.8425 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.912e-05/0.006211, allocations: 83.33 kB / 0.8426 GB, free: 9.965 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003366/0.006548, allocations: 246.9 kB / 0.8429 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.762e-05/0.006645, allocations: 105.9 kB / 0.843 GB, free: 9.582 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.603e-05/0.006711, allocations: 92.38 kB / 0.8431 GB, free: 9.477 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.006726, allocations: 4 kB / 0.8431 GB, free: 9.473 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001401/0.006866, allocations: 202.1 kB / 0.8432 GB, free: 9.238 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.072e-06/0.006867, allocations: 0 / 0.8432 GB, free: 9.238 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0002821/0.007149, allocations: 331.6 kB / 0.8436 GB, free: 8.871 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.007211, allocations: 162.2 kB / 0.8437 GB, free: 8.676 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.007321, allocations: 176.5 kB / 0.8439 GB, free: 8.488 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.007338, allocations: 29.7 kB / 0.8439 GB, free: 8.453 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.161e-05/0.007379, allocations: 104.3 kB / 0.844 GB, free: 8.344 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.007402, allocations: 23.78 kB / 0.844 GB, free: 8.32 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.804e-05/0.00746, allocations: 45.69 kB / 0.8441 GB, free: 8.27 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.059e-05/0.007541, allocations: 330.8 kB / 0.8444 GB, free: 7.938 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.01e-05/0.007621, allocations: 133.6 kB / 0.8445 GB, free: 7.781 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.007723, allocations: 189.6 kB / 0.8447 GB, free: 7.547 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.00788, allocations: 269.5 kB / 0.845 GB, free: 7.219 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.007881, allocations: 0 / 0.845 GB, free: 7.219 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002273/0.008109, allocations: 348.7 kB / 0.8453 GB, free: 6.82 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 6.169e-05/0.00817, allocations: 122.7 kB / 0.8454 GB, free: 6.676 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.008176, allocations: 4.25 kB / 0.8454 GB, free: 6.672 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.008186, allocations: 4 kB / 0.8454 GB, free: 6.668 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.516e-05/0.008252, allocations: 19.92 kB / 0.8454 GB, free: 6.648 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.008256, allocations: 4 kB / 0.8454 GB, free: 6.645 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.354e-05/0.008319, allocations: 15.95 kB / 0.8455 GB, free: 6.629 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.008335, allocations: 8.062 kB / 0.8455 GB, free: 6.621 MB / 0.8073 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.0001153/0.00845, allocations: 196.5 kB / 0.8457 GB, free: 6.406 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.008479, allocations: 19.98 kB / 0.8457 GB, free: 6.387 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.551e-05/0.008504, allocations: 17.41 kB / 0.8457 GB, free: 6.375 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.008506, allocations: 0 / 0.8457 GB, free: 6.375 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.008507, allocations: 0 / 0.8457 GB, free: 6.375 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.00851, allocations: 4 kB / 0.8457 GB, free: 6.371 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003176/0.008827, allocations: 413.4 kB / 0.8461 GB, free: 5.918 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.008829, allocations: 0 / 0.8461 GB, free: 5.918 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.293e-05/0.008862, allocations: 11.98 kB / 0.8461 GB, free: 5.906 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.008864, allocations: 3.938 kB / 0.8461 GB, free: 5.902 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.008876, allocations: 8 kB / 0.8461 GB, free: 5.895 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.008877, allocations: 3.938 kB / 0.8461 GB, free: 5.891 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.008878, allocations: 0 / 0.8461 GB, free: 5.891 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.009082, allocations: 334.2 kB / 0.8464 GB, free: 5.523 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.18e-05/0.009093, allocations: 11.91 kB / 0.8464 GB, free: 5.512 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.00912, allocations: 15.92 kB / 0.8465 GB, free: 5.496 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.993e-05/0.00919, allocations: 12 kB / 0.8465 GB, free: 5.484 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.903e-05/0.009219, allocations: 7.984 kB / 0.8465 GB, free: 5.477 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.00923, allocations: 4 kB / 0.8465 GB, free: 5.473 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.92e-05/0.009269, allocations: 45.66 kB / 0.8465 GB, free: 5.426 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.009269, allocations: 0 / 0.8465 GB, free: 5.426 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002356/0.009504, allocations: 35.94 kB / 0.8466 GB, free: 5.391 MB / 0.8073 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.0001576/0.009662, allocations: 104 kB / 0.8467 GB, free: 5.285 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003299/0.009992, allocations: 476.5 kB / 0.8471 GB, free: 4.73 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.009995, allocations: 4 kB / 0.8471 GB, free: 4.727 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.01011, allocations: 215.3 kB / 0.8473 GB, free: 4.477 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.01029, allocations: 29.64 kB / 0.8474 GB, free: 4.449 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005154/0.01081, allocations: 346 kB / 0.8477 GB, free: 4.07 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.164e-05/0.01085, allocations: 67.33 kB / 0.8477 GB, free: 3.984 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.381e-05/0.01089, allocations: 12.48 kB / 0.8478 GB, free: 3.973 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.01102, allocations: 91.34 kB / 0.8478 GB, free: 3.883 MB / 0.8073 GB Notification: Performance of SimCode: time 4.11e-07/0.01102, allocations: 0 / 0.8478 GB, free: 3.883 MB / 0.8073 GB Notification: Performance of Templates: time 0.004272/0.01529, allocations: 2.327 MB / 0.8501 GB, free: 1.598 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.3505666381679475]