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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 194.5 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.397/2.397, allocations: 390.2 MB / 0.6643 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 67.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7621/0.764, allocations: 140.4 MB / 0.9491 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003076/0.7671, allocations: 1.658 MB / 0.9507 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009806/0.7681, allocations: 0.6144 MB / 0.9513 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.7682, allocations: 1.469 kB / 0.9513 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002135/0.7685, allocations: 10.84 kB / 0.9513 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002496/0.7688, allocations: 36.3 kB / 0.9514 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.7692, allocations: 104.5 kB / 0.9515 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000252/0.7695, allocations: 205 kB / 0.9517 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.7697, allocations: 29.72 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001783/0.7698, allocations: 85.84 kB / 0.9518 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.77, allocations: 89.16 kB / 0.9518 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.042e-05/0.77, allocations: 12.66 kB / 0.9519 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.564e-05/0.7701, allocations: 25.62 kB / 0.9519 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.867e-05/0.7702, allocations: 26.67 kB / 0.9519 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.001e-05/0.7703, allocations: 80.55 kB / 0.952 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.7706, allocations: 159.6 kB / 0.9521 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.7706, allocations: 0 / 0.9521 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.442e-06/0.7706, allocations: 0 / 0.9521 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.859e-06/0.7706, allocations: 1.188 kB / 0.9521 GB, free: 6.906 MB / 0.7169 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.000711/0.7713, allocations: 0.5599 MB / 0.9527 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.7714, allocations: 8.312 kB / 0.9527 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/0.7714, allocations: 24.88 kB / 0.9527 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.7717, allocations: 233.5 kB / 0.9529 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.7717, allocations: 7.031 kB / 0.9529 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.7718, allocations: 23.48 kB / 0.953 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.7721, allocations: 115.6 kB / 0.9531 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.7721, allocations: 0 / 0.9531 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.7721, allocations: 7 kB / 0.9531 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.7721, allocations: 1.312 kB / 0.9531 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.7723, allocations: 70.72 kB / 0.9532 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005683/0.7729, allocations: 416.4 kB / 0.9536 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.7731, allocations: 87.23 kB / 0.9536 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.7732, allocations: 79.91 kB / 0.9537 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.7733, allocations: 5.188 kB / 0.9537 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002361/0.7735, allocations: 182.7 kB / 0.9539 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.512e-06/0.7735, allocations: 0 / 0.9539 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.000688/0.7742, allocations: 354 kB / 0.9542 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.7743, allocations: 167.6 kB / 0.9544 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.7745, allocations: 182.3 kB / 0.9546 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.7745, allocations: 29.2 kB / 0.9546 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/0.7746, allocations: 107.3 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.7746, allocations: 27.83 kB / 0.9547 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.214e-05/0.7747, allocations: 40.17 kB / 0.9548 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.731e-05/0.7748, allocations: 333.8 kB / 0.9551 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.7749, allocations: 53.31 kB / 0.9551 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.7751, allocations: 100.8 kB / 0.9552 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.7754, allocations: 313.8 kB / 0.9555 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.7754, allocations: 0 / 0.9555 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004641/0.7759, allocations: 348.5 kB / 0.9559 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.414e-05/0.7759, allocations: 123.5 kB / 0.956 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.7759, allocations: 2.812 kB / 0.956 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.776, allocations: 3.562 kB / 0.956 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.7761, allocations: 14.58 kB / 0.956 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.7761, allocations: 7.719 kB / 0.956 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.7762, allocations: 23.16 kB / 0.956 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.7763, allocations: 10.44 kB / 0.956 GB, free: 3.414 MB / 0.7169 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.00013/0.7764, allocations: 197.5 kB / 0.9562 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.868e-05/0.7765, allocations: 13.25 kB / 0.9562 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.573e-05/0.7765, allocations: 14.47 kB / 0.9562 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.7765, allocations: 0 / 0.9562 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.7765, allocations: 1.406 kB / 0.9563 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.7765, allocations: 3.984 kB / 0.9563 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000635/0.7772, allocations: 0.5862 MB / 0.9568 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.7772, allocations: 0 / 0.9568 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.644e-05/0.7772, allocations: 12.8 kB / 0.9568 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.7773, allocations: 3.938 kB / 0.9568 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.7773, allocations: 6.031 kB / 0.9568 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.7773, allocations: 0 / 0.9568 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.7773, allocations: 7.875 kB / 0.9569 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005237/0.7778, allocations: 412 kB / 0.9572 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.422e-05/0.7779, allocations: 88.88 kB / 0.9573 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.087e-05/0.7779, allocations: 11.69 kB / 0.9573 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.778, allocations: 6.625 kB / 0.9574 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.7781, allocations: 11.08 kB / 0.9574 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.7781, allocations: 9.719 kB / 0.9574 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.333e-05/0.7782, allocations: 130.1 kB / 0.9575 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.182e-06/0.7782, allocations: 1.406 kB / 0.9575 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003289/0.7786, allocations: 43.22 kB / 0.9575 GB, free: 2.148 MB / 0.7169 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.0002751/0.7789, allocations: 125.6 kB / 0.9577 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005056/0.7794, allocations: 365.1 kB / 0.958 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.7794, allocations: 0 / 0.958 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.7796, allocations: 205.9 kB / 0.9582 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.78, allocations: 20.67 kB / 0.9582 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005882/0.7806, allocations: 318.7 kB / 0.9585 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.7807, allocations: 0.7111 MB / 0.9592 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.324e-05/0.7808, allocations: 20.91 kB / 0.9592 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.59e-05/0.7809, allocations: 20.86 kB / 0.9593 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of SimCode: time 8.02e-07/0.7809, allocations: 1.375 kB / 0.9593 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of Templates: time 0.005449/0.7863, allocations: 2.054 MB / 0.9613 GB, free: 15.5 MB / 0.7325 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches