Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 106.6 kB / 16.41 MB, free: 6.441 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.001908/0.001908, allocations: 189.6 kB / 17.34 MB, free: 5.742 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.676/2.676, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 59.91 kB / 1.055 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9426/0.9441, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003345/0.9475, allocations: 1.591 MB / 1.21 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001592/0.9491, allocations: 0.6936 MB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.9493, allocations: 0 / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.9494, allocations: 19.81 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.684e-05/0.9495, allocations: 19.78 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/Utilities/IO/Files/BaseClasses/printRealArray.mo:2:1-45:19:writable] Warning: Pure function 'Buildings.Utilities.IO.Files.BaseClasses.printRealArray' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006573/0.9502, allocations: 107.7 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.9505, allocations: 139.5 kB / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.9507, allocations: 29.12 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.9508, allocations: 59.81 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.9509, allocations: 51.77 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.94e-05/0.951, allocations: 19.98 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.9511, allocations: 55.91 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.521e-05/0.9512, allocations: 35.83 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.016e-05/0.9513, allocations: 55.67 kB / 1.211 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003159/0.9516, allocations: 167.3 kB / 1.211 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.9516, allocations: 3.938 kB / 1.211 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.096e-06/0.9516, allocations: 4 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.164e-06/0.9516, allocations: 0 / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009996/0.9527, allocations: 0.5446 MB / 1.212 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.9527, allocations: 12.03 kB / 1.212 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.488e-05/0.9528, allocations: 16.83 kB / 1.212 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.9531, allocations: 217.2 kB / 1.212 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.9531, allocations: 8.375 kB / 1.212 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.9531, allocations: 8.375 kB / 1.212 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003552/0.9535, allocations: 131.7 kB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.9535, allocations: 0 / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.9535, allocations: 11.98 kB / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.9535, allocations: 0 / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002512/0.9538, allocations: 71.88 kB / 1.212 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007092/0.9545, allocations: 464.7 kB / 1.213 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002057/0.9547, allocations: 81.11 kB / 1.213 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.9549, allocations: 53.81 kB / 1.213 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.9549, allocations: 0 / 1.213 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000306/0.9552, allocations: 141 kB / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 3.878e-06/0.9553, allocations: 7.984 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0006074/0.9559, allocations: 185.3 kB / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.9559, allocations: 85.09 kB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.9561, allocations: 167.4 kB / 1.213 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.9561, allocations: 29.64 kB / 1.214 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.9562, allocations: 116.3 kB / 1.214 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.052e-05/0.9563, allocations: 31.59 kB / 1.214 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.764e-05/0.9563, allocations: 37.7 kB / 1.214 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.9564, allocations: 326.8 kB / 1.214 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.9566, allocations: 39.97 kB / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.9568, allocations: 114.3 kB / 1.214 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002986/0.9571, allocations: 143.5 kB / 1.214 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.9571, allocations: 4 kB / 1.214 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003933/0.9575, allocations: 165.2 kB / 1.214 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.9576, allocations: 8.375 kB / 1.214 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.9576, allocations: 0 / 1.214 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.9576, allocations: 8 kB / 1.214 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.9577, allocations: 24.2 kB / 1.214 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.9577, allocations: 7.938 kB / 1.214 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.9578, allocations: 19.92 kB / 1.215 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.9579, allocations: 4 kB / 1.215 GB, free: 7.02 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 (pri2.firstTrigger,$PRE.pri2.firstTrigger,pri1.firstTrigger,$PRE.pri1.firstTrigger,$whenCondition4,pri1.sampleTrigger,$whenCondition2,pri2.sampleTrigger,$whenCondition3,pri3.firstTrigger,$PRE.pri3.firstTrigger,pri3.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001307/0.958, allocations: 137.8 kB / 1.215 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.102e-05/0.958, allocations: 15.84 kB / 1.215 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.9581, allocations: 21.39 kB / 1.215 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.9581, allocations: 0 / 1.215 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.9581, allocations: 8 kB / 1.215 GB, free: 6.824 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-06/0.9581, allocations: 3.938 kB / 1.215 GB, free: 6.82 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007153/0.9589, allocations: 0.5249 MB / 1.215 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.9589, allocations: 0 / 1.215 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.486e-05/0.9589, allocations: 11.98 kB / 1.215 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.959, allocations: 3.938 kB / 1.215 GB, free: 6.223 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.959, allocations: 12 kB / 1.215 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.959, allocations: 0 / 1.215 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.959, allocations: 0 / 1.215 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000436/0.9594, allocations: 318.5 kB / 1.216 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.427e-05/0.9595, allocations: 89 kB / 1.216 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.9595, allocations: 7.938 kB / 1.216 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.9597, allocations: 15.98 kB / 1.216 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.624e-05/0.9598, allocations: 11.98 kB / 1.216 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.824e-05/0.9598, allocations: 11.92 kB / 1.216 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.736e-05/0.9599, allocations: 119.2 kB / 1.216 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9599, allocations: 0 / 1.216 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003623/0.9603, allocations: 35.91 kB / 1.216 GB, free: 5.578 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (pri3.sampleTrigger,$whenCondition1,pri3.firstTrigger,pri2.sampleTrigger,pri1.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,pri1.firstTrigger,pri2.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004926/0.9608, allocations: 231.7 kB / 1.216 GB, free: 5.387 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003865/0.9612, allocations: 103.8 kB / 1.216 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.9612, allocations: 0 / 1.216 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.9614, allocations: 60.47 kB / 1.216 GB, free: 5.227 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.9618, allocations: 19.98 kB / 1.216 GB, free: 5.207 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005337/0.9623, allocations: 265.4 kB / 1.216 GB, free: 4.914 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.9626, allocations: 0.7274 MB / 1.217 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.335e-05/0.9627, allocations: 19.38 kB / 1.217 GB, free: 4.141 MB / 0.9356 GB Notification: Performance of SimCode: time 4.91e-07/0.9627, allocations: 0 / 1.217 GB, free: 4.141 MB / 0.9356 GB Notification: Performance of Templates: time 0.004912/0.9676, allocations: 2.061 MB / 1.219 GB, free: 2.082 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches