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.0009936/0.0009936, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001023/0.001023, allocations: 181 kB / 23.36 MB, free: 1.133 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.9865/0.9865, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.518/2.518, allocations: 438.8 MB / 0.6826 GB, free: 13.61 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 6.011e-06/6.011e-06, allocations: 3.938 kB / 0.8386 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.017e-05/2.618e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002332/0.002358, allocations: 1.72 MB / 0.8403 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0008523/0.003211, allocations: 0.6698 MB / 0.841 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.32e-05/0.003274, allocations: 3.938 kB / 0.841 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.003397, allocations: 27.72 kB / 0.841 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.003559, allocations: 43.75 kB / 0.841 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.003828, allocations: 115.7 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002075/0.004036, allocations: 191.5 kB / 0.8413 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 8.637e-05/0.004122, allocations: 30.2 kB / 0.8413 GB, free: 11.36 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.004317, allocations: 115.8 kB / 0.8415 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 9.814e-05/0.004415, allocations: 75.78 kB / 0.8415 GB, free: 11.17 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.004441, allocations: 12 kB / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 7.215e-05/0.004513, allocations: 31.98 kB / 0.8416 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 6.145e-05/0.004574, allocations: 27.91 kB / 0.8416 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 5.344e-05/0.004628, allocations: 55.89 kB / 0.8416 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.004803, allocations: 151.5 kB / 0.8418 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.004805, allocations: 0 / 0.8418 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.41e-07/0.004805, allocations: 0 / 0.8418 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.004809, allocations: 4 kB / 0.8418 GB, free: 10.89 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.0004063/0.005215, allocations: 471 kB / 0.8422 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.005244, allocations: 8.625 kB / 0.8423 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.005365, allocations: 36.91 kB / 0.8423 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.00555, allocations: 169.5 kB / 0.8425 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.005565, allocations: 16.31 kB / 0.8425 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.586e-05/0.005581, allocations: 12.38 kB / 0.8425 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.00573, allocations: 158.3 kB / 0.8426 GB, free: 9.949 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.005736, allocations: 4.188 kB / 0.8426 GB, free: 9.945 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.005747, allocations: 4.375 kB / 0.8426 GB, free: 9.941 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.005751, allocations: 3.938 kB / 0.8426 GB, free: 9.938 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.558e-05/0.005807, allocations: 79.39 kB / 0.8427 GB, free: 9.848 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000316/0.006123, allocations: 246.9 kB / 0.843 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.871e-05/0.006211, allocations: 102 kB / 0.8431 GB, free: 9.469 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.743e-05/0.006269, allocations: 92.23 kB / 0.8431 GB, free: 9.363 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.006284, allocations: 4.031 kB / 0.8431 GB, free: 9.359 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/0.006411, allocations: 214.3 kB / 0.8433 GB, free: 9.113 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.006413, allocations: 0 / 0.8433 GB, free: 9.113 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0002371/0.00665, allocations: 324 kB / 0.8437 GB, free: 8.754 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.00671, allocations: 162.2 kB / 0.8438 GB, free: 8.559 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.84e-05/0.006808, allocations: 176.5 kB / 0.844 GB, free: 8.371 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.006825, allocations: 29.7 kB / 0.844 GB, free: 8.336 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.985e-05/0.006864, allocations: 100.3 kB / 0.8441 GB, free: 8.23 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/0.006891, allocations: 23.78 kB / 0.8441 GB, free: 8.207 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-05/0.00694, allocations: 41.69 kB / 0.8442 GB, free: 8.16 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.311e-05/0.007024, allocations: 330.8 kB / 0.8445 GB, free: 7.828 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.842e-05/0.007102, allocations: 133.6 kB / 0.8446 GB, free: 7.672 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003539/0.007456, allocations: 193.6 kB / 0.8448 GB, free: 7.434 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001321/0.007588, allocations: 265.4 kB / 0.845 GB, free: 7.109 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.00759, allocations: 3.938 kB / 0.845 GB, free: 7.105 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001947/0.007785, allocations: 356.7 kB / 0.8454 GB, free: 6.699 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 5.263e-05/0.007837, allocations: 122.7 kB / 0.8455 GB, free: 6.555 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.007848, allocations: 4 kB / 0.8455 GB, free: 6.551 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.00786, allocations: 4 kB / 0.8455 GB, free: 6.547 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.899e-05/0.007929, allocations: 19.92 kB / 0.8455 GB, free: 6.527 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-06/0.007932, allocations: 0 / 0.8455 GB, free: 6.527 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.86e-05/0.00798, allocations: 15.95 kB / 0.8455 GB, free: 6.512 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.007994, allocations: 12.23 kB / 0.8456 GB, free: 6.5 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 9.561e-05/0.00809, allocations: 201.2 kB / 0.8458 GB, free: 6.281 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.124e-05/0.008111, allocations: 19.97 kB / 0.8458 GB, free: 6.262 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.36e-05/0.008135, allocations: 21.34 kB / 0.8458 GB, free: 6.246 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.008137, allocations: 4 kB / 0.8458 GB, free: 6.242 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.008139, allocations: 0 / 0.8458 GB, free: 6.242 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.008141, allocations: 0 / 0.8458 GB, free: 6.242 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.008387, allocations: 397.5 kB / 0.8462 GB, free: 5.805 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.008388, allocations: 4 kB / 0.8462 GB, free: 5.801 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.422e-05/0.008422, allocations: 15.92 kB / 0.8462 GB, free: 5.785 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.008425, allocations: 7.938 kB / 0.8462 GB, free: 5.777 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.008436, allocations: 8 kB / 0.8462 GB, free: 5.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.008437, allocations: 0 / 0.8462 GB, free: 5.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.008438, allocations: 0 / 0.8462 GB, free: 5.77 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.008608, allocations: 330.3 kB / 0.8465 GB, free: 5.406 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.27e-05/0.008621, allocations: 15.91 kB / 0.8465 GB, free: 5.391 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.008642, allocations: 11.92 kB / 0.8466 GB, free: 5.379 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.823e-05/0.00869, allocations: 7.938 kB / 0.8466 GB, free: 5.371 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.92e-05/0.008719, allocations: 11.98 kB / 0.8466 GB, free: 5.359 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.00873, allocations: 4 kB / 0.8466 GB, free: 5.355 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.35e-05/0.008763, allocations: 45.66 kB / 0.8466 GB, free: 5.309 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.008763, allocations: 4 kB / 0.8466 GB, free: 5.305 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001629/0.008926, allocations: 31.94 kB / 0.8467 GB, free: 5.273 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.0001622/0.009088, allocations: 105.5 kB / 0.8468 GB, free: 5.168 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002499/0.009338, allocations: 484.8 kB / 0.8472 GB, free: 4.605 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.009343, allocations: 4 kB / 0.8472 GB, free: 4.602 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.009446, allocations: 211 kB / 0.8474 GB, free: 4.355 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.009607, allocations: 31.92 kB / 0.8474 GB, free: 4.324 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005243/0.01013, allocations: 341.5 kB / 0.8478 GB, free: 3.949 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.662e-05/0.01017, allocations: 71.28 kB / 0.8478 GB, free: 3.859 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.266e-05/0.0102, allocations: 12.61 kB / 0.8479 GB, free: 3.848 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.01032, allocations: 99.33 kB / 0.8479 GB, free: 3.75 MB / 0.8073 GB Notification: Performance of SimCode: time 7.31e-07/0.01032, allocations: 0 / 0.8479 GB, free: 3.75 MB / 0.8073 GB Notification: Performance of Templates: time 0.003887/0.0142, allocations: 2.318 MB / 0.8502 GB, free: 1.473 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 -s gbode -gbm=radauIIA3 -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.515111148823053]