Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009609/0.0009609, allocations: 81.95 kB / 20.68 MB, free: 3.816 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 185.3 kB / 24.09 MB, free: 416 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9766/0.9766, allocations: 177.1 MB / 204.5 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.897/1.897, allocations: 377.9 MB / 0.624 GB, free: 8.391 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0.6562 kB / 0.812 GB, free: 1.469 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.248e-05/1.369e-05, allocations: 2.312 kB / 0.812 GB, free: 1.465 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001954/0.001968, allocations: 1.645 MB / 0.8136 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0009302/0.002898, allocations: 0.7501 MB / 0.8143 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.578e-05/0.002944, allocations: 0 / 0.8143 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 9.22e-05/0.003036, allocations: 11.81 kB / 0.8143 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.827e-05/0.003084, allocations: 24.56 kB / 0.8143 GB, free: 15.04 MB / 0.7761 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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.000351/0.003435, allocations: 113.4 kB / 0.8144 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000144/0.003579, allocations: 143.4 kB / 0.8146 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.003684, allocations: 25.23 kB / 0.8146 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 9.813e-05/0.003782, allocations: 75.86 kB / 0.8147 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.775e-05/0.003849, allocations: 53.39 kB / 0.8147 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.00387, allocations: 8 kB / 0.8147 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 9.075e-05/0.00396, allocations: 51.95 kB / 0.8148 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.287e-05/0.004003, allocations: 27.86 kB / 0.8148 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.098e-05/0.004044, allocations: 45.48 kB / 0.8149 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.004228, allocations: 151.4 kB / 0.815 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.004231, allocations: 4 kB / 0.815 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.51e-07/0.004232, allocations: 0 / 0.815 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.377e-06/0.004235, allocations: 0.5312 kB / 0.815 GB, free: 14.36 MB / 0.7761 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.0004959/0.004731, allocations: 0.5734 MB / 0.8156 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.004764, allocations: 11.97 kB / 0.8156 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.21e-05/0.004806, allocations: 21.78 kB / 0.8156 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.004938, allocations: 156.4 kB / 0.8158 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.004949, allocations: 9.531 kB / 0.8158 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.004962, allocations: 12.38 kB / 0.8158 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001469/0.005109, allocations: 110.3 kB / 0.8159 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.005118, allocations: 5.5 kB / 0.8159 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.005126, allocations: 384 / 0.8159 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.005136, allocations: 7.938 kB / 0.8159 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.822e-05/0.005164, allocations: 13.73 kB / 0.8159 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003281/0.005492, allocations: 451 kB / 0.8163 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 6.108e-05/0.005553, allocations: 66.17 kB / 0.8164 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.777e-05/0.005581, allocations: 32.48 kB / 0.8164 GB, free: 12.76 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.0056, allocations: 3.938 kB / 0.8164 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001118/0.005712, allocations: 123 kB / 0.8165 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=12): time 1.012e-06/0.005713, allocations: 0 / 0.8165 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12): time 0.0001746/0.005888, allocations: 113.4 kB / 0.8167 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002972/0.006185, allocations: 85.11 kB / 0.8167 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.363e-05/0.006278, allocations: 207.6 kB / 0.8169 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.006297, allocations: 33.7 kB / 0.817 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.898e-05/0.006356, allocations: 168.8 kB / 0.8171 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.006382, allocations: 31.78 kB / 0.8172 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/0.006421, allocations: 35.36 kB / 0.8172 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.006526, allocations: 0.5001 MB / 0.8177 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.627e-05/0.006542, allocations: 11.98 kB / 0.8177 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.695e-05/0.006629, allocations: 197.8 kB / 0.8179 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.81e-05/0.006727, allocations: 125.9 kB / 0.818 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.006729, allocations: 0 / 0.818 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001165/0.006846, allocations: 122 kB / 0.8181 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.006857, allocations: 5.125 kB / 0.8181 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.006862, allocations: 4 kB / 0.8181 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.006874, allocations: 4 kB / 0.8181 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.568e-05/0.00693, allocations: 12.8 kB / 0.8181 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.006936, allocations: 7.938 kB / 0.8181 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.528e-05/0.006981, allocations: 8.531 kB / 0.8182 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-06/0.00699, allocations: 8.953 kB / 0.8182 GB, free: 10.78 MB / 0.7761 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 (pri2.firstTrigger,$PRE.pri2.firstTrigger,pri1.firstTrigger,$PRE.pri1.firstTrigger,$whenCondition4,pri1.sampleTrigger,$whenCondition2,pri2.sampleTrigger,$whenCondition3,pri3.firstTrigger,$PRE.pri3.firstTrigger,pri3.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.411e-05/0.007064, allocations: 174.5 kB / 0.8183 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.167e-05/0.007086, allocations: 27.84 kB / 0.8184 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.243e-05/0.007118, allocations: 13.47 kB / 0.8184 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.007121, allocations: 4 kB / 0.8184 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-06/0.007123, allocations: 3.938 kB / 0.8184 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.007127, allocations: 3.984 kB / 0.8184 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002889/0.007416, allocations: 493.6 kB / 0.8189 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.007417, allocations: 1.094 kB / 0.8189 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.99e-05/0.007447, allocations: 15.94 kB / 0.8189 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.007449, allocations: 0 / 0.8189 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.007458, allocations: 13.05 kB / 0.8189 GB, free: 10 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.007459, allocations: 0 / 0.8189 GB, free: 10 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.00746, allocations: 0 / 0.8189 GB, free: 10 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001488/0.007609, allocations: 364.1 kB / 0.8192 GB, free: 9.629 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.059e-05/0.007619, allocations: 11.91 kB / 0.8192 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.007633, allocations: 7.984 kB / 0.8192 GB, free: 9.609 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.86e-05/0.007712, allocations: 12.78 kB / 0.8193 GB, free: 9.598 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.127e-05/0.007743, allocations: 21.78 kB / 0.8193 GB, free: 9.578 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.007763, allocations: 8 kB / 0.8193 GB, free: 9.57 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.171e-05/0.007815, allocations: 151.4 kB / 0.8194 GB, free: 9.422 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.007815, allocations: 4 kB / 0.8194 GB, free: 9.418 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002337/0.008049, allocations: 39.92 kB / 0.8195 GB, free: 9.379 MB / 0.7761 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003097/0.008358, allocations: 202.4 kB / 0.8197 GB, free: 9.215 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001088/0.008467, allocations: 67.41 kB / 0.8197 GB, free: 9.145 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.008469, allocations: 0 / 0.8197 GB, free: 9.145 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.99e-05/0.008509, allocations: 37.44 kB / 0.8198 GB, free: 9.105 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.008746, allocations: 25.77 kB / 0.8198 GB, free: 9.082 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003228/0.009068, allocations: 255.4 kB / 0.82 GB, free: 8.805 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.301e-05/0.009111, allocations: 67.34 kB / 0.8201 GB, free: 8.719 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.207e-05/0.009153, allocations: 30.95 kB / 0.8201 GB, free: 8.688 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.471e-05/0.009218, allocations: 90.19 kB / 0.8202 GB, free: 8.598 MB / 0.7761 GB Notification: Performance of SimCode: time 6.31e-07/0.009219, allocations: 0 / 0.8202 GB, free: 8.598 MB / 0.7761 GB Notification: Performance of Templates: time 0.003433/0.01265, allocations: 1.953 MB / 0.8221 GB, free: 6.691 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9657440460287035]