Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_10_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_10_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.001577/0.001577, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001815/0.001815, allocations: 186.2 kB / 17.34 MB, free: 5.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.349/1.349, 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 10.1.1-maint.10.0.x/package.mo): time 2.426/2.426, allocations: 437 MB / 0.7112 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 68.14 kB / 1.019 GB, free: 9.441 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8426/0.8447, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.0029/0.8477, allocations: 1.594 MB / 1.169 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00128/0.849, allocations: 0.6974 MB / 1.17 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.678e-05/0.8491, allocations: 4 kB / 1.17 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000105/0.8492, allocations: 11.81 kB / 1.17 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.481e-05/0.8493, allocations: 19.78 kB / 1.17 GB, free: 1.504 MB / 0.8887 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.00053/0.8498, allocations: 111.7 kB / 1.17 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002039/0.8501, allocations: 139.5 kB / 1.17 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.8502, allocations: 33.11 kB / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.8504, allocations: 55.77 kB / 1.17 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.395e-05/0.8505, allocations: 63.75 kB / 1.17 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.8505, allocations: 8 kB / 1.17 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.8506, allocations: 55.95 kB / 1.17 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.677e-05/0.8507, allocations: 31.86 kB / 1.17 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.06e-05/0.8508, allocations: 59.64 kB / 1.17 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.851, allocations: 171.3 kB / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.851, allocations: 0 / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.583e-06/0.851, allocations: 0 / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.851, allocations: 0 / 1.17 GB, free: 0.7891 MB / 0.8887 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.0008486/0.8519, allocations: 0.5523 MB / 1.171 GB, free: 176 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.8519, allocations: 8.922 kB / 1.171 GB, free: 168 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.11e-05/0.852, allocations: 16.84 kB / 1.171 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.8522, allocations: 220 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.8523, allocations: 8.359 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.8523, allocations: 12.38 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/0.8526, allocations: 128.5 kB / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.8526, allocations: 3.938 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.8527, allocations: 8 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.8527, allocations: 4 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002302/0.8529, allocations: 59.94 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006341/0.8535, allocations: 472.6 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.8537, allocations: 81.19 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.8539, allocations: 45.81 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.8539, allocations: 7.875 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/0.8542, allocations: 145 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.8542, allocations: 0 / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.0005861/0.8548, allocations: 197.3 kB / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.8549, allocations: 81.11 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.855, allocations: 158.4 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.8551, allocations: 33.7 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.638e-05/0.8551, allocations: 108.3 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/0.8552, allocations: 31.61 kB / 1.173 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.385e-05/0.8552, allocations: 29.72 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.8553, allocations: 338.8 kB / 1.173 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.8555, allocations: 35.97 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.8557, allocations: 114.3 kB / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.8559, allocations: 147.5 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.856, allocations: 0 / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003591/0.8563, allocations: 169.3 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.8563, allocations: 7.938 kB / 1.173 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.8564, allocations: 4 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.8564, allocations: 4 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.8565, allocations: 11.98 kB / 1.173 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.016e-06/0.8565, allocations: 4 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.8566, allocations: 20.14 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.8566, allocations: 8.109 kB / 1.173 GB, free: 13.23 MB / 0.9044 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.0001159/0.8568, allocations: 141.6 kB / 1.174 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.8568, allocations: 11.91 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.612e-05/0.8568, allocations: 17.41 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.8568, allocations: 4 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.8569, allocations: 0 / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.8569, allocations: 7.922 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006744/0.8575, allocations: 0.5292 MB / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.8576, allocations: 0 / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.412e-05/0.8576, allocations: 16.06 kB / 1.174 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.8577, allocations: 11.88 kB / 1.174 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.8577, allocations: 4 kB / 1.174 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.8577, allocations: 4 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.8577, allocations: 3.938 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003951/0.8581, allocations: 318.5 kB / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.371e-05/0.8581, allocations: 85.02 kB / 1.174 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.8582, allocations: 15.92 kB / 1.175 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.8584, allocations: 11.98 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.066e-05/0.8585, allocations: 19.92 kB / 1.175 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.8585, allocations: 8 kB / 1.175 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.324e-05/0.8586, allocations: 124.2 kB / 1.175 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8586, allocations: 0 / 1.175 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003528/0.859, allocations: 43.91 kB / 1.175 GB, free: 11.76 MB / 0.9044 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.0004448/0.8594, allocations: 215.6 kB / 1.175 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003591/0.8598, allocations: 107.8 kB / 1.175 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.8598, allocations: 0 / 1.175 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.86, allocations: 51.95 kB / 1.175 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.8603, allocations: 28.53 kB / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005103/0.8609, allocations: 272 kB / 1.175 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.8611, allocations: 0.7195 MB / 1.176 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.328e-05/0.8612, allocations: 19.44 kB / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of SimCode: time 4.91e-07/0.8612, allocations: 0 / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of Templates: time 0.003977/0.8652, allocations: 2.066 MB / 1.178 GB, free: 8.273 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches