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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 87.03 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.00153/0.00153, 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.462/1.462, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.072/3.072, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0003998, allocations: 9.156 kB / 0.9021 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3845, allocations: 159.6 MB / 1.058 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001859/0.3864, allocations: 1.288 MB / 1.059 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.3876, allocations: 0.6587 MB / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.489e-05/0.3877, allocations: 0 / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.3878, allocations: 7.922 kB / 1.06 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.244e-05/0.3878, allocations: 19.81 kB / 1.06 GB, free: 3.355 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.000437/0.3883, allocations: 91.81 kB / 1.06 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001797/0.3885, allocations: 119.6 kB / 1.06 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.3886, allocations: 29.09 kB / 1.06 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.219e-05/0.3887, allocations: 47.78 kB / 1.06 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.692e-05/0.3888, allocations: 51.75 kB / 1.06 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.3888, allocations: 4 kB / 1.06 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.389, allocations: 47.95 kB / 1.06 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.417e-05/0.389, allocations: 23.91 kB / 1.06 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.125e-05/0.3891, allocations: 45.64 kB / 1.06 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.3893, allocations: 104 kB / 1.06 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.3893, allocations: 0 / 1.06 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3893, allocations: 0 / 1.06 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.3893, allocations: 0 / 1.06 GB, free: 2.797 MB / 0.8106 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.0007968/0.3901, allocations: 0.5389 MB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.3902, allocations: 12.03 kB / 1.061 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.346e-05/0.3902, allocations: 15.81 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.3904, allocations: 210.8 kB / 1.061 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.3905, allocations: 4 kB / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.203e-05/0.3905, allocations: 19.94 kB / 1.061 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003127/0.3908, allocations: 131.3 kB / 1.061 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3908, allocations: 0 / 1.061 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.3909, allocations: 11.98 kB / 1.061 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.3909, allocations: 0 / 1.061 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002424/0.3911, allocations: 83.88 kB / 1.061 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006216/0.3918, allocations: 472.7 kB / 1.062 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.392, allocations: 89.12 kB / 1.062 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.3921, allocations: 57.81 kB / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.3921, allocations: 0 / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003212/0.3925, allocations: 161 kB / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.3925, allocations: 0 / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0005581/0.393, allocations: 209.3 kB / 1.062 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.3931, allocations: 81.05 kB / 1.062 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.3932, allocations: 163.9 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.3933, allocations: 33.7 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.243e-05/0.3933, allocations: 108.7 kB / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.193e-05/0.3934, allocations: 31.7 kB / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.164e-06/0.3934, allocations: 4 kB / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.3935, allocations: 330.8 kB / 1.063 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.3936, allocations: 43.91 kB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.3938, allocations: 130.2 kB / 1.063 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.394, allocations: 55.91 kB / 1.063 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.394, allocations: 0 / 1.063 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003499/0.3944, allocations: 185.4 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3944, allocations: 4 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.3944, allocations: 4 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.3944, allocations: 4 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.3945, allocations: 19.92 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.3945, allocations: 4 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.545e-05/0.3946, allocations: 24.11 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.3947, allocations: 4 kB / 1.064 GB, free: 15.29 MB / 0.8262 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.0001144/0.3948, allocations: 134.3 kB / 1.064 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.3948, allocations: 15.81 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.611e-05/0.3949, allocations: 17.41 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3949, allocations: 7.984 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3949, allocations: 3.938 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.3949, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006866/0.3956, allocations: 0.5406 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3956, allocations: 3.938 kB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.539e-05/0.3957, allocations: 31.92 kB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.3957, allocations: 4.281 kB / 1.064 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.3957, allocations: 0 / 1.064 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3957, allocations: 0 / 1.064 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.832e-06/0.3957, allocations: 7.953 kB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000392/0.3961, allocations: 330.6 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.102e-05/0.3962, allocations: 96.86 kB / 1.065 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.3962, allocations: 3.984 kB / 1.065 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.3964, allocations: 27.98 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.3965, allocations: 15.88 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.711e-05/0.3965, allocations: 7.984 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.779e-05/0.3966, allocations: 119.2 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3966, allocations: 0 / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003411/0.3969, allocations: 36 kB / 1.065 GB, free: 13.8 MB / 0.8262 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.0004281/0.3974, allocations: 216.2 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003529/0.3977, allocations: 124 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3978, allocations: 0 / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.3979, allocations: 59.91 kB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.3983, allocations: 19.98 kB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004981/0.3988, allocations: 275.2 kB / 1.066 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.3991, allocations: 0.716 MB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.728e-05/0.3992, allocations: 16.55 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.389e-05/0.3992, allocations: 23.36 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3992, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of Templates: time 0.005063/0.4043, allocations: 1.577 MB / 1.068 GB, free: 10.79 MB / 0.8262 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches