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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.218/2.218, allocations: 390.5 MB / 398 MB, free: 10.99 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.001075/0.001075, allocations: 184 kB / 491.2 MB, free: 1.625 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.622/1.622, allocations: 221.5 MB / 0.7868 GB, free: 13.37 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.0009958/0.0009958, allocations: 95.88 kB / 0.9269 GB, free: 13.87 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.894e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2871, allocations: 143 MB / 1.212 GB, free: 39.59 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.983/1.27, allocations: 151.1 MB / 1.36 GB, free: 17.56 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/1.27, allocations: 88.56 kB / 1.36 GB, free: 17.56 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01273/1.283, allocations: 3.017 MB / 1.363 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.044e-06/1.283, allocations: 0 / 1.363 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.628e-05/1.283, allocations: 3.844 kB / 1.363 GB, free: 33.08 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.0008335/1.284, allocations: 0.508 MB / 1.363 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/1.284, allocations: 7.656 kB / 1.363 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.128e-05/1.284, allocations: 11.59 kB / 1.363 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/1.285, allocations: 228.9 kB / 1.364 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/1.285, allocations: 0 / 1.364 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/1.285, allocations: 13.12 kB / 1.364 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001367/1.285, allocations: 34.94 kB / 1.364 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/1.285, allocations: 99.61 kB / 1.364 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/1.285, allocations: 0 / 1.364 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/1.285, allocations: 0 / 1.364 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/1.285, allocations: 3.281 kB / 1.364 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007566/1.286, allocations: 452.3 kB / 1.364 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/1.286, allocations: 60.12 kB / 1.364 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.625e-05/1.286, allocations: 29.59 kB / 1.364 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/1.286, allocations: 5.188 kB / 1.364 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/1.286, allocations: 118.6 kB / 1.364 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.713e-06/1.286, allocations: 0 / 1.364 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0003135/1.287, allocations: 117.8 kB / 1.364 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/1.287, allocations: 78.89 kB / 1.365 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/1.287, allocations: 143.9 kB / 1.365 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/1.287, allocations: 35.34 kB / 1.365 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.508e-05/1.287, allocations: 109.3 kB / 1.365 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.943e-05/1.287, allocations: 20.91 kB / 1.365 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/1.287, allocations: 0 / 1.365 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001204/1.287, allocations: 326.6 kB / 1.365 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.33e-05/1.287, allocations: 17.97 kB / 1.365 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.962e-05/1.287, allocations: 98.05 kB / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.018e-05/1.288, allocations: 33.72 kB / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/1.288, allocations: 112 / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002425/1.288, allocations: 119.9 kB / 1.365 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/1.288, allocations: 5.109 kB / 1.365 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/1.288, allocations: 3.844 kB / 1.365 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/1.288, allocations: 4.094 kB / 1.365 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/1.288, allocations: 27.03 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/1.288, allocations: 5.359 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/1.288, allocations: 18.09 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/1.288, allocations: 7.719 kB / 1.365 GB, free: 31 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 0.0001072/1.288, allocations: 114.8 kB / 1.366 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/1.288, allocations: 15.44 kB / 1.366 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.508e-05/1.288, allocations: 15.52 kB / 1.366 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/1.288, allocations: 3.906 kB / 1.366 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.288, allocations: 0 / 1.366 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/1.289, allocations: 5.453 kB / 1.366 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005822/1.289, allocations: 478.8 kB / 1.366 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/1.289, allocations: 1.828 kB / 1.366 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/1.289, allocations: 22.83 kB / 1.366 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/1.289, allocations: 0 / 1.366 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/1.289, allocations: 3.875 kB / 1.366 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/1.289, allocations: 5.547 kB / 1.366 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/1.289, allocations: 0 / 1.366 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002863/1.29, allocations: 295 kB / 1.366 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/1.29, allocations: 88.8 kB / 1.366 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/1.29, allocations: 5.5 kB / 1.366 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000279/1.29, allocations: 24.36 kB / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.439e-05/1.29, allocations: 16.08 kB / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-05/1.29, allocations: 9.578 kB / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.066e-05/1.29, allocations: 120.5 kB / 1.367 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.51e-07/1.29, allocations: 0 / 1.367 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005853/1.291, allocations: 40.55 kB / 1.367 GB, free: 30.07 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.0004857/1.291, allocations: 203.4 kB / 1.367 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001978/1.292, allocations: 65.44 kB / 1.367 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.292, allocations: 8.062 kB / 1.367 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.197e-05/1.292, allocations: 31.25 kB / 1.367 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/1.292, allocations: 17.52 kB / 1.367 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004312/1.292, allocations: 157.8 kB / 1.367 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/1.293, allocations: 0.7205 MB / 1.368 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.469e-05/1.293, allocations: 28.94 kB / 1.368 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.844e-05/1.293, allocations: 14.5 kB / 1.368 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of SimCode: time 3.4e-07/1.293, allocations: 0 / 1.368 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of Templates: time 0.00625/1.299, allocations: 1.538 MB / 1.369 GB, free: 28.96 MB / 0.8386 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","../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches