Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.037/2.037, allocations: 387.4 MB / 394.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000973/0.0009731, allocations: 184.8 kB / 487.4 MB, free: 5.035 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 221.5 MB / 0.7824 GB, free: 0.9414 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008482/0.0008482, allocations: 91.91 kB / 0.9219 GB, free: 2.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.552e-05/1.554e-05, allocations: 7.984 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2244, allocations: 142.3 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7882/1.013, allocations: 150.6 MB / 1.353 GB, free: 18.26 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/1.013, allocations: 80.03 kB / 1.353 GB, free: 18.26 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01241/1.025, allocations: 5.039 MB / 1.358 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.423e-06/1.025, allocations: 0 / 1.358 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.212e-05/1.025, allocations: 0 / 1.358 GB, free: 33.63 MB / 0.8386 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.0004368/1.026, allocations: 0.5124 MB / 1.359 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/1.026, allocations: 11.53 kB / 1.359 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.323e-05/1.026, allocations: 19.47 kB / 1.359 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/1.026, allocations: 233.3 kB / 1.359 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/1.026, allocations: 3.812 kB / 1.359 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.757e-05/1.026, allocations: 11.53 kB / 1.359 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001226/1.026, allocations: 42.2 kB / 1.359 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001456/1.027, allocations: 94.39 kB / 1.359 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/1.027, allocations: 0 / 1.359 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/1.027, allocations: 3.875 kB / 1.359 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/1.027, allocations: 0 / 1.359 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005261/1.027, allocations: 399 kB / 1.359 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/1.027, allocations: 72.52 kB / 1.359 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.804e-05/1.027, allocations: 60.59 kB / 1.359 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/1.027, allocations: 7.844 kB / 1.359 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001514/1.028, allocations: 173.5 kB / 1.36 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/1.028, allocations: 0 / 1.36 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0003556/1.028, allocations: 203.4 kB / 1.36 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/1.028, allocations: 163.5 kB / 1.36 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/1.028, allocations: 156.6 kB / 1.36 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/1.028, allocations: 29.55 kB / 1.36 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.681e-05/1.028, allocations: 112.9 kB / 1.36 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/1.028, allocations: 24.55 kB / 1.36 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.202e-05/1.028, allocations: 3.938 kB / 1.36 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.54e-05/1.028, allocations: 330.3 kB / 1.361 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.538e-05/1.028, allocations: 40.75 kB / 1.361 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.454e-05/1.028, allocations: 81.94 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.809e-05/1.029, allocations: 53.11 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/1.029, allocations: 0 / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002691/1.029, allocations: 202.1 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/1.029, allocations: 113.8 kB / 1.361 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/1.029, allocations: 7.969 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/1.029, allocations: 0 / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/1.029, allocations: 25.95 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/1.029, allocations: 5.391 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.983e-05/1.029, allocations: 9.656 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/1.029, allocations: 15.7 kB / 1.361 GB, free: 31.44 MB / 0.8386 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001082/1.029, allocations: 191.9 kB / 1.361 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.391e-05/1.029, allocations: 15.5 kB / 1.361 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.514e-05/1.029, allocations: 18.64 kB / 1.361 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/1.029, allocations: 3.969 kB / 1.361 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/1.029, allocations: 0 / 1.361 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/1.029, allocations: 0 / 1.361 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/1.03, allocations: 471 kB / 1.362 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/1.03, allocations: 4 kB / 1.362 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.438e-05/1.03, allocations: 15.91 kB / 1.362 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/1.03, allocations: 0 / 1.362 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/1.03, allocations: 9.219 kB / 1.362 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/1.03, allocations: 3.844 kB / 1.362 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/1.03, allocations: 0 / 1.362 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003064/1.03, allocations: 310.4 kB / 1.362 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.186e-05/1.03, allocations: 94.17 kB / 1.362 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.412e-05/1.03, allocations: 5.328 kB / 1.362 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/1.03, allocations: 9.156 kB / 1.362 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.573e-05/1.03, allocations: 9.984 kB / 1.362 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/1.031, allocations: 14.23 kB / 1.362 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.543e-05/1.031, allocations: 118.2 kB / 1.362 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.031, allocations: 3.938 kB / 1.362 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002614/1.031, allocations: 34.91 kB / 1.362 GB, free: 30.63 MB / 0.8386 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002303/1.031, allocations: 127 kB / 1.363 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000262/1.031, allocations: 328.3 kB / 1.363 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/1.031, allocations: 3.969 kB / 1.363 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/1.032, allocations: 186.9 kB / 1.363 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/1.032, allocations: 21.55 kB / 1.363 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003759/1.032, allocations: 194.8 kB / 1.363 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/1.032, allocations: 0.7074 MB / 1.364 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.229e-05/1.032, allocations: 20.27 kB / 1.364 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.71e-05/1.032, allocations: 23.16 kB / 1.364 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of SimCode: time 3.11e-07/1.032, allocations: 0 / 1.364 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of Templates: time 0.003846/1.036, allocations: 1.821 MB / 1.366 GB, free: 29.08 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches