Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.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.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_9_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_9_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.009/2.009, allocations: 387.4 MB / 394.9 MB, free: 13.45 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.0009942/0.0009942, allocations: 188.6 kB / 487.4 MB, free: 5.074 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.298/1.298, allocations: 221.5 MB / 0.7824 GB, free: 1.031 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.0008415/0.0008415, allocations: 94.16 kB / 0.9219 GB, free: 2.27 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.494e-05/1.497e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2186, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7233/0.9419, allocations: 150.3 MB / 1.353 GB, free: 18.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/0.9421, allocations: 91.05 kB / 1.353 GB, free: 18.49 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008734/0.9509, allocations: 3.015 MB / 1.356 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.132e-06/0.9509, allocations: 0 / 1.356 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.133e-05/0.9509, allocations: 3.844 kB / 1.356 GB, free: 34.02 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005432/0.9515, allocations: 0.51 MB / 1.356 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.9515, allocations: 7.844 kB / 1.356 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.9516, allocations: 16.11 kB / 1.356 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.9518, allocations: 221.7 kB / 1.356 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.9518, allocations: 0 / 1.356 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.037e-05/0.9518, allocations: 8.422 kB / 1.356 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.981e-05/0.9519, allocations: 32.06 kB / 1.356 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001493/0.9521, allocations: 100.3 kB / 1.357 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.9521, allocations: 3.984 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.9521, allocations: 0.75 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.9521, allocations: 3.844 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000528/0.9526, allocations: 452 kB / 1.357 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.258e-05/0.9527, allocations: 67.72 kB / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.817e-05/0.9528, allocations: 29.3 kB / 1.357 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.9528, allocations: 7.938 kB / 1.357 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/0.953, allocations: 120.8 kB / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.953, allocations: 0 / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002014/0.9532, allocations: 107.7 kB / 1.357 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/0.9532, allocations: 85.73 kB / 1.357 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.585e-05/0.9533, allocations: 145.6 kB / 1.358 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.9533, allocations: 30.14 kB / 1.358 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.253e-05/0.9534, allocations: 105.9 kB / 1.358 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.9534, allocations: 28.23 kB / 1.358 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-06/0.9534, allocations: 0 / 1.358 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.9535, allocations: 323.2 kB / 1.358 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.089e-05/0.9536, allocations: 15.36 kB / 1.358 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.023e-05/0.9537, allocations: 101.8 kB / 1.358 GB, free: 32 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.844e-05/0.9537, allocations: 34.25 kB / 1.358 GB, free: 32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.9537, allocations: 0 / 1.358 GB, free: 32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001395/0.9539, allocations: 117 kB / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.9539, allocations: 3.906 kB / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.9539, allocations: 8.188 kB / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.9539, allocations: 4.609 kB / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.954, allocations: 19.75 kB / 1.358 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.954, allocations: 4.578 kB / 1.358 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.451e-05/0.9541, allocations: 18.59 kB / 1.358 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.9542, allocations: 3.844 kB / 1.358 GB, free: 31.94 MB / 0.8386 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 () * 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 8.32e-05/0.9542, allocations: 127.7 kB / 1.358 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.955e-05/0.9543, allocations: 15.62 kB / 1.358 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.895e-05/0.9543, allocations: 15.86 kB / 1.358 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.9543, allocations: 0.7031 kB / 1.358 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.9543, allocations: 3.656 kB / 1.358 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.9543, allocations: 0.7031 kB / 1.358 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00039/0.9547, allocations: 478.4 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.9547, allocations: 4.188 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.012e-05/0.9548, allocations: 19.25 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.9548, allocations: 4.453 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.9549, allocations: 0.75 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.9549, allocations: 3.875 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.9549, allocations: 4.656 kB / 1.359 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001869/0.9551, allocations: 302.5 kB / 1.359 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.265e-05/0.9551, allocations: 85.48 kB / 1.359 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.9551, allocations: 4.656 kB / 1.359 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.9553, allocations: 26.06 kB / 1.359 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.9553, allocations: 9.672 kB / 1.359 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.9554, allocations: 18.02 kB / 1.359 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.661e-05/0.9554, allocations: 111.6 kB / 1.36 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9555, allocations: 0 / 1.36 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003087/0.9558, allocations: 47.34 kB / 1.36 GB, free: 31.01 MB / 0.8386 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 () * 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.0003409/0.9561, allocations: 201.3 kB / 1.36 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001302/0.9563, allocations: 65.92 kB / 1.36 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.9563, allocations: 0 / 1.36 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.249e-05/0.9563, allocations: 36.98 kB / 1.36 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.9565, allocations: 17.41 kB / 1.36 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002757/0.9568, allocations: 152.1 kB / 1.36 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.9571, allocations: 0.7212 MB / 1.361 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.826e-05/0.9571, allocations: 24.97 kB / 1.361 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.474e-05/0.9572, allocations: 15.31 kB / 1.361 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.9572, allocations: 0 / 1.361 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of Templates: time 0.003597/0.9608, allocations: 1.539 MB / 1.362 GB, free: 29.9 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches