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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009133/0.0009131, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001117/0.001116, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.746/2.746, allocations: 437.7 MB / 0.7117 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006603/0.0006605, allocations: 12 kB / 0.8722 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.759/0.7597, allocations: 153.8 MB / 1.022 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001696/0.7614, allocations: 1.277 MB / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001151/0.7626, allocations: 0.655 MB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.856e-05/0.7627, allocations: 0 / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.603e-05/0.7628, allocations: 7.922 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.922e-05/0.7628, allocations: 23.8 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0004186/0.7633, allocations: 87.84 kB / 1.024 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.7635, allocations: 123.6 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.7636, allocations: 25.02 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.171e-05/0.7637, allocations: 47.78 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.668e-05/0.7638, allocations: 55.75 kB / 1.025 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.7638, allocations: 8 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.7639, allocations: 43.95 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.734e-05/0.764, allocations: 19.92 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.624e-05/0.764, allocations: 41.64 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.7642, allocations: 113.7 kB / 1.025 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.7642, allocations: 0 / 1.025 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.044e-06/0.7642, allocations: 4 kB / 1.025 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.7642, allocations: 0 / 1.025 GB, free: 13.53 MB / 0.7794 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.0007799/0.765, allocations: 0.5272 MB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.7651, allocations: 12.56 kB / 1.025 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.287e-05/0.7651, allocations: 19.81 kB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.7654, allocations: 218.7 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.7654, allocations: 8 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.979e-05/0.7655, allocations: 12 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.7658, allocations: 143 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.7658, allocations: 4 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.7658, allocations: 0 / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.7658, allocations: 0 / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002324/0.7661, allocations: 87.88 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006269/0.7667, allocations: 468.8 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.7669, allocations: 89.12 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.7671, allocations: 57.81 kB / 1.026 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.7671, allocations: 4 kB / 1.026 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003447/0.7674, allocations: 161 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.7675, allocations: 0 / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005386/0.768, allocations: 209.3 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.7681, allocations: 85.05 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.7682, allocations: 159.9 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.7682, allocations: 33.7 kB / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.052e-05/0.7683, allocations: 116.2 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.7684, allocations: 23.72 kB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-06/0.7684, allocations: 0 / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.7685, allocations: 330.8 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.7686, allocations: 43.95 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.7688, allocations: 124.5 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.769, allocations: 55.92 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.769, allocations: 0 / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000368/0.7693, allocations: 189.5 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.7694, allocations: 8 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.7694, allocations: 0 / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.7694, allocations: 4 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.7695, allocations: 23.92 kB / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.7695, allocations: 0 / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.89e-05/0.7697, allocations: 15.98 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.7697, allocations: 16.41 kB / 1.028 GB, free: 10.03 MB / 0.7794 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 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001413/0.7698, allocations: 133.7 kB / 1.028 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.7699, allocations: 19.8 kB / 1.028 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.763e-05/0.7699, allocations: 17.41 kB / 1.028 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.7699, allocations: 11.88 kB / 1.028 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.77, allocations: 0 / 1.028 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.77, allocations: 3.984 kB / 1.028 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007369/0.7707, allocations: 0.5367 MB / 1.029 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.7707, allocations: 4 kB / 1.029 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.702e-05/0.7708, allocations: 23.92 kB / 1.029 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.7708, allocations: 0 / 1.029 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.7708, allocations: 11.92 kB / 1.029 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.7709, allocations: 7.984 kB / 1.029 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7709, allocations: 0 / 1.029 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004293/0.7713, allocations: 334.5 kB / 1.029 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.805e-05/0.7714, allocations: 88.92 kB / 1.029 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.7714, allocations: 4 kB / 1.029 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.7716, allocations: 31.91 kB / 1.029 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/0.7716, allocations: 11.98 kB / 1.029 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.266e-05/0.7717, allocations: 8 kB / 1.029 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.851e-05/0.7718, allocations: 132.2 kB / 1.029 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7718, allocations: 0 / 1.029 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003521/0.7722, allocations: 36 kB / 1.029 GB, free: 8.527 MB / 0.7794 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 (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.0005031/0.7727, allocations: 208.9 kB / 1.03 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003581/0.773, allocations: 120.3 kB / 1.03 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.773, allocations: 3.938 kB / 1.03 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.7732, allocations: 63.89 kB / 1.03 GB, free: 8.168 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.7736, allocations: 15.98 kB / 1.03 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004946/0.7741, allocations: 262.9 kB / 1.03 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.7744, allocations: 0.716 MB / 1.031 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.287e-05/0.7745, allocations: 24.47 kB / 1.031 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/0.7745, allocations: 19.44 kB / 1.031 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.7745, allocations: 0 / 1.031 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of Templates: time 0.005083/0.7796, allocations: 1.576 MB / 1.032 GB, free: 5.52 MB / 0.7794 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/jenkins/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