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.503/2.503, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001384/0.001384, allocations: 178.7 kB / 498.1 MB, free: 5.758 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.456/1.456, allocations: 223.2 MB / 0.7948 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008658/0.0008658, allocations: 88.39 kB / 0.9346 GB, free: 6.293 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003526, allocations: 7.531 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3142, allocations: 142.3 MB / 1.223 GB, free: 114.4 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1915/0.5058, allocations: 151 MB / 1.37 GB, free: 11.18 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003446/0.5062, allocations: 79.95 kB / 1.37 GB, free: 11.11 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009407/0.5157, allocations: 3.055 MB / 1.373 GB, free: 8.035 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.144e-06/0.5157, allocations: 0 / 1.373 GB, free: 8.035 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.337e-05/0.5157, allocations: 4 kB / 1.373 GB, free: 8.031 MB / 0.8698 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.0007731/0.5165, allocations: 0.5311 MB / 1.374 GB, free: 7.434 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.419e-05/0.5166, allocations: 16.02 kB / 1.374 GB, free: 7.418 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.198e-05/0.5166, allocations: 15.81 kB / 1.374 GB, free: 7.402 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.5169, allocations: 223.7 kB / 1.374 GB, free: 7.145 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.5169, allocations: 4 kB / 1.374 GB, free: 7.141 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.517, allocations: 8 kB / 1.374 GB, free: 7.133 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.5173, allocations: 131.3 kB / 1.374 GB, free: 6.992 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.5173, allocations: 3.938 kB / 1.374 GB, free: 6.988 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.5174, allocations: 4 kB / 1.374 GB, free: 6.984 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.5174, allocations: 0 / 1.374 GB, free: 6.984 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/0.5176, allocations: 83.94 kB / 1.374 GB, free: 6.902 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006879/0.5183, allocations: 472.8 kB / 1.375 GB, free: 6.387 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.5186, allocations: 94.56 kB / 1.375 GB, free: 6.277 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.5186, allocations: 11.92 kB / 1.375 GB, free: 6.266 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.5189, allocations: 149 kB / 1.375 GB, free: 6.102 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=12): time 1.482e-06/0.5189, allocations: 0 / 1.375 GB, free: 6.102 MB / 0.8698 GB Notification: Performance of matching and sorting (n=12): time 0.0005914/0.5195, allocations: 213.3 kB / 1.375 GB, free: 5.887 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.5196, allocations: 85.09 kB / 1.375 GB, free: 5.785 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.5197, allocations: 141.5 kB / 1.375 GB, free: 5.637 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.5198, allocations: 33.7 kB / 1.376 GB, free: 5.598 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.829e-05/0.5198, allocations: 112.3 kB / 1.376 GB, free: 5.48 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.376e-05/0.5199, allocations: 28.06 kB / 1.376 GB, free: 5.453 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-06/0.5199, allocations: 8 kB / 1.376 GB, free: 5.445 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.52, allocations: 322.8 kB / 1.376 GB, free: 5.121 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.5202, allocations: 43.97 kB / 1.376 GB, free: 5.078 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.5204, allocations: 126.2 kB / 1.376 GB, free: 4.918 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.5205, allocations: 55.91 kB / 1.376 GB, free: 4.863 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.5205, allocations: 0 / 1.376 GB, free: 4.863 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000366/0.5209, allocations: 181.2 kB / 1.376 GB, free: 4.68 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.5209, allocations: 12.28 kB / 1.376 GB, free: 4.668 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.5209, allocations: 0 / 1.376 GB, free: 4.668 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.521, allocations: 4 kB / 1.376 GB, free: 4.664 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.5211, allocations: 31.86 kB / 1.376 GB, free: 4.633 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.5211, allocations: 0 / 1.376 GB, free: 4.633 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.5212, allocations: 19.98 kB / 1.376 GB, free: 4.613 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.5213, allocations: 8 kB / 1.376 GB, free: 4.605 MB / 0.8698 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.0001228/0.5214, allocations: 135.3 kB / 1.377 GB, free: 4.465 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.431e-05/0.5214, allocations: 15.81 kB / 1.377 GB, free: 4.449 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.965e-05/0.5215, allocations: 21.39 kB / 1.377 GB, free: 4.426 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.5215, allocations: 7.938 kB / 1.377 GB, free: 4.418 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.5215, allocations: 3.953 kB / 1.377 GB, free: 4.414 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.5215, allocations: 0 / 1.377 GB, free: 4.414 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000797/0.5223, allocations: 0.5483 MB / 1.377 GB, free: 3.809 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.5223, allocations: 0 / 1.377 GB, free: 3.809 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.264e-05/0.5224, allocations: 23.98 kB / 1.377 GB, free: 3.785 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.5224, allocations: 3.953 kB / 1.377 GB, free: 3.781 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.5225, allocations: 4 kB / 1.377 GB, free: 3.777 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.5225, allocations: 7.984 kB / 1.377 GB, free: 3.77 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.5225, allocations: 0 / 1.377 GB, free: 3.77 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004414/0.5229, allocations: 340.3 kB / 1.377 GB, free: 3.414 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.694e-05/0.523, allocations: 93.16 kB / 1.378 GB, free: 3.305 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.523, allocations: 0 / 1.378 GB, free: 3.305 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.5232, allocations: 31.97 kB / 1.378 GB, free: 3.273 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/0.5233, allocations: 7.984 kB / 1.378 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/0.5233, allocations: 11.98 kB / 1.378 GB, free: 3.254 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 9.637e-05/0.5234, allocations: 116.2 kB / 1.378 GB, free: 3.141 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5234, allocations: 7.938 kB / 1.378 GB, free: 3.133 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000364/0.5238, allocations: 43.98 kB / 1.378 GB, free: 3.09 MB / 0.8698 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.0005216/0.5243, allocations: 220.7 kB / 1.378 GB, free: 2.902 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003867/0.5247, allocations: 116.3 kB / 1.378 GB, free: 2.789 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5248, allocations: 4 kB / 1.378 GB, free: 2.785 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.5249, allocations: 59.89 kB / 1.378 GB, free: 2.727 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.5252, allocations: 16.92 kB / 1.378 GB, free: 2.711 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004871/0.5257, allocations: 269.1 kB / 1.378 GB, free: 2.426 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.526, allocations: 0.7276 MB / 1.379 GB, free: 1.672 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0001043/0.5261, allocations: 24.47 kB / 1.379 GB, free: 1.648 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.661e-05/0.5261, allocations: 15.44 kB / 1.379 GB, free: 1.633 MB / 0.8698 GB Notification: Performance of SimCode: time 2.4e-07/0.5261, allocations: 0 / 1.379 GB, free: 1.633 MB / 0.8698 GB Notification: Performance of Templates: time 0.005003/0.5311, allocations: 1.615 MB / 1.381 GB, free: 32 kB / 0.8698 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