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.000809/0.000809, allocations: 80.8 kB / 20.75 MB, free: 3.738 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.0008512/0.0008512, allocations: 165 kB / 24.17 MB, free: 332 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 1.038/1.038, allocations: 177.2 MB / 204.6 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.838/1.838, allocations: 377.9 MB / 0.624 GB, free: 8.387 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.152e-06/1.152e-06, allocations: 0 / 0.76 GB, free: 6.711 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.422e-05/1.537e-05, allocations: 2.312 kB / 0.76 GB, free: 6.707 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001894/0.001909, allocations: 1.64 MB / 0.7616 GB, free: 5.074 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001009/0.002918, allocations: 0.7671 MB / 0.7623 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.166e-05/0.002969, allocations: 1.594 kB / 0.7623 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.003073, allocations: 8.531 kB / 0.7623 GB, free: 4.301 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 5.133e-05/0.003124, allocations: 27.06 kB / 0.7624 GB, free: 4.281 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.0003636/0.003488, allocations: 109.4 kB / 0.7625 GB, free: 4.176 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.00364, allocations: 137.2 kB / 0.7626 GB, free: 4.047 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.003747, allocations: 43.05 kB / 0.7626 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 9.639e-05/0.003844, allocations: 71.86 kB / 0.7627 GB, free: 3.934 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 7.117e-05/0.003915, allocations: 55.86 kB / 0.7628 GB, free: 3.879 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.003934, allocations: 9.75 kB / 0.7628 GB, free: 3.871 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.01e-05/0.004024, allocations: 51.95 kB / 0.7628 GB, free: 3.82 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 4.374e-05/0.004068, allocations: 27.86 kB / 0.7629 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 4.125e-05/0.004109, allocations: 43.89 kB / 0.7629 GB, free: 3.75 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.004281, allocations: 152.7 kB / 0.763 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.433e-06/0.004283, allocations: 0 / 0.763 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of FrontEnd: time 5.72e-07/0.004283, allocations: 0 / 0.763 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.066e-06/0.004286, allocations: 0 / 0.763 GB, free: 3.602 MB / 0.7136 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.0004931/0.004779, allocations: 459.8 kB / 0.7635 GB, free: 3.113 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.004815, allocations: 12.03 kB / 0.7635 GB, free: 3.102 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.547e-05/0.004881, allocations: 18.17 kB / 0.7635 GB, free: 3.086 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.005033, allocations: 153.5 kB / 0.7637 GB, free: 2.91 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.005046, allocations: 8.359 kB / 0.7637 GB, free: 2.902 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.791e-05/0.005064, allocations: 13.41 kB / 0.7637 GB, free: 2.891 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001502/0.005214, allocations: 102.3 kB / 0.7638 GB, free: 2.777 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.005221, allocations: 0.7188 kB / 0.7638 GB, free: 2.777 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.005231, allocations: 8.375 kB / 0.7638 GB, free: 2.77 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.005238, allocations: 5.156 kB / 0.7638 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.92e-05/0.005267, allocations: 19.92 kB / 0.7638 GB, free: 2.746 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002895/0.005557, allocations: 287.9 kB / 0.7641 GB, free: 2.445 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.129e-05/0.005618, allocations: 54.47 kB / 0.7641 GB, free: 2.375 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.241e-05/0.005641, allocations: 17.66 kB / 0.7642 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.005656, allocations: 7.938 kB / 0.7642 GB, free: 2.344 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001106/0.005767, allocations: 113.1 kB / 0.7643 GB, free: 2.215 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.022e-06/0.005768, allocations: 0 / 0.7643 GB, free: 2.215 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0001409/0.005909, allocations: 90.33 kB / 0.7644 GB, free: 2.121 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.005948, allocations: 85.05 kB / 0.7644 GB, free: 2.02 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.847e-05/0.006026, allocations: 165.4 kB / 0.7646 GB, free: 1.848 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.006041, allocations: 29.7 kB / 0.7646 GB, free: 1.812 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.953e-05/0.006081, allocations: 108.3 kB / 0.7647 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/0.006105, allocations: 23.8 kB / 0.7647 GB, free: 1.676 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.789e-05/0.006143, allocations: 37.69 kB / 0.7648 GB, free: 1.633 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.459e-05/0.006218, allocations: 331.5 kB / 0.7651 GB, free: 1.301 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.461e-05/0.006232, allocations: 8 kB / 0.7651 GB, free: 1.293 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.698e-05/0.006309, allocations: 156.7 kB / 0.7653 GB, free: 1.086 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.304e-05/0.006392, allocations: 109.6 kB / 0.7654 GB, free: 0.9531 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.006394, allocations: 0 / 0.7654 GB, free: 0.9531 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 9.972e-05/0.006494, allocations: 108.4 kB / 0.7655 GB, free: 0.8438 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.719e-06/0.006504, allocations: 4 kB / 0.7655 GB, free: 0.8398 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.006509, allocations: 4 kB / 0.7655 GB, free: 0.8359 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.006521, allocations: 0 / 0.7655 GB, free: 0.8359 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.694e-05/0.006578, allocations: 21.42 kB / 0.7655 GB, free: 0.8164 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.006581, allocations: 0 / 0.7655 GB, free: 0.8164 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.062e-05/0.006622, allocations: 15.94 kB / 0.7655 GB, free: 0.8008 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.826e-06/0.006631, allocations: 4 kB / 0.7655 GB, free: 0.7969 MB / 0.7136 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.436e-05/0.006705, allocations: 130 kB / 0.7656 GB, free: 0.6602 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.006724, allocations: 19.92 kB / 0.7657 GB, free: 0.6406 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.255e-05/0.006756, allocations: 17.41 kB / 0.7657 GB, free: 0.6211 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.00676, allocations: 5.281 kB / 0.7657 GB, free: 0.6172 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-06/0.006761, allocations: 0 / 0.7657 GB, free: 0.6172 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.006766, allocations: 3.984 kB / 0.7657 GB, free: 0.6133 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/0.007014, allocations: 345.8 kB / 0.766 GB, free: 256 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.007015, allocations: 0.75 kB / 0.766 GB, free: 256 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.83e-05/0.007043, allocations: 8.516 kB / 0.766 GB, free: 248 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.007046, allocations: 4 kB / 0.766 GB, free: 244 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-06/0.007052, allocations: 0.6562 kB / 0.766 GB, free: 244 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.007053, allocations: 1.406 kB / 0.766 GB, free: 244 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.007054, allocations: 0 / 0.766 GB, free: 244 kB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.007194, allocations: 254.7 kB / 0.7663 GB, free: 15.97 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.407e-05/0.007208, allocations: 15.89 kB / 0.7663 GB, free: 15.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.00722, allocations: 6.438 kB / 0.7663 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.841e-05/0.007298, allocations: 15.98 kB / 0.7663 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.209e-05/0.00733, allocations: 7.984 kB / 0.7663 GB, free: 15.93 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.007352, allocations: 8 kB / 0.7663 GB, free: 15.92 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.903e-05/0.007381, allocations: 41.81 kB / 0.7664 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.3e-07/0.007381, allocations: 0 / 0.7664 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001888/0.00757, allocations: 42.77 kB / 0.7664 GB, free: 15.84 MB / 0.7292 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.0003779/0.007948, allocations: 206.6 kB / 0.7666 GB, free: 15.68 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001087/0.008056, allocations: 57.95 kB / 0.7667 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.008059, allocations: 0.6562 kB / 0.7667 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 4.042e-05/0.008099, allocations: 41.2 kB / 0.7667 GB, free: 15.58 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000213/0.008312, allocations: 33.47 kB / 0.7667 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003236/0.008636, allocations: 244.5 kB / 0.767 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.316e-05/0.008679, allocations: 73.05 kB / 0.767 GB, free: 15.2 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.846e-05/0.008717, allocations: 16.48 kB / 0.767 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.441e-05/0.008792, allocations: 75.36 kB / 0.7671 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of SimCode: time 3.81e-07/0.008792, allocations: 2.438 kB / 0.7671 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of Templates: time 0.003531/0.01232, allocations: 1.897 MB / 0.769 GB, free: 13.35 MB / 0.7292 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.9088063021190464]