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.0009146/0.0009146, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.0009263/0.0009263, allocations: 169.3 kB / 24.28 MB, free: 280 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.9461/0.9461, allocations: 177.1 MB / 204.6 MB, free: 5.586 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.877/1.877, allocations: 377.8 MB / 0.6239 GB, free: 8.566 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.433e-06/1.433e-06, allocations: 0 / 0.8115 GB, free: 2.094 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.102e-05/2.245e-05, allocations: 2.312 kB / 0.8115 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001912/0.001934, allocations: 1.64 MB / 0.8131 GB, free: 472 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009992/0.002933, allocations: 0.7505 MB / 0.8138 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.797e-05/0.002991, allocations: 0 / 0.8138 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.003092, allocations: 7.875 kB / 0.8138 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.202e-05/0.003134, allocations: 24.89 kB / 0.8139 GB, free: 15.68 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.0003989/0.003533, allocations: 111.6 kB / 0.814 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.003693, allocations: 140.8 kB / 0.8141 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.003816, allocations: 29.23 kB / 0.8141 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 9.9e-05/0.003915, allocations: 79.8 kB / 0.8142 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003344/0.004249, allocations: 53.11 kB / 0.8143 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.004271, allocations: 8 kB / 0.8143 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 9.677e-05/0.004368, allocations: 51.95 kB / 0.8143 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.89e-05/0.004417, allocations: 27.91 kB / 0.8143 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.217e-05/0.004469, allocations: 44.53 kB / 0.8144 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.004667, allocations: 152.8 kB / 0.8145 GB, free: 15 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.004669, allocations: 0 / 0.8145 GB, free: 15 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.094e-06/0.004671, allocations: 3.984 kB / 0.8145 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.004675, allocations: 0 / 0.8145 GB, free: 14.99 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.0005849/0.00526, allocations: 0.5619 MB / 0.8151 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.005295, allocations: 8.031 kB / 0.8151 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.018e-05/0.005355, allocations: 30.67 kB / 0.8151 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.005517, allocations: 160.3 kB / 0.8153 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.005529, allocations: 4.375 kB / 0.8153 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.005548, allocations: 20.34 kB / 0.8153 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.005734, allocations: 113.4 kB / 0.8154 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.005743, allocations: 4.188 kB / 0.8154 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.005757, allocations: 4.906 kB / 0.8154 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.005766, allocations: 3.938 kB / 0.8154 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.521e-05/0.005811, allocations: 20.64 kB / 0.8154 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004473/0.006258, allocations: 476.3 kB / 0.8159 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.765e-05/0.006346, allocations: 74.11 kB / 0.816 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.777e-05/0.006384, allocations: 23.5 kB / 0.816 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.006404, allocations: 8.891 kB / 0.816 GB, free: 13.34 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001426/0.006547, allocations: 117.1 kB / 0.8161 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.006549, allocations: 0 / 0.8161 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12): time 0.0002427/0.006791, allocations: 122.7 kB / 0.8162 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.006836, allocations: 85.11 kB / 0.8163 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.006949, allocations: 215 kB / 0.8165 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.006967, allocations: 33.64 kB / 0.8165 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.853e-05/0.007025, allocations: 159.9 kB / 0.8167 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.007055, allocations: 23.81 kB / 0.8167 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.416e-05/0.007099, allocations: 48.58 kB / 0.8168 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.007216, allocations: 0.4962 MB / 0.8173 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.923e-05/0.007246, allocations: 8 kB / 0.8173 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.007346, allocations: 202.6 kB / 0.8175 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.007446, allocations: 129.3 kB / 0.8176 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.007448, allocations: 0 / 0.8176 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001341/0.007582, allocations: 129.8 kB / 0.8177 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.007595, allocations: 8 kB / 0.8177 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.0076, allocations: 5.031 kB / 0.8177 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.007613, allocations: 0 / 0.8177 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.09e-05/0.007684, allocations: 13.06 kB / 0.8177 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.007691, allocations: 7.922 kB / 0.8177 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.445e-05/0.007736, allocations: 12 kB / 0.8177 GB, free: 11.35 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.455e-06/0.007744, allocations: 4.5 kB / 0.8177 GB, free: 11.35 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 8.75e-05/0.007832, allocations: 173.9 kB / 0.8179 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.565e-05/0.007857, allocations: 27.89 kB / 0.8179 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/0.007892, allocations: 13.47 kB / 0.818 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.007895, allocations: 0.7812 kB / 0.818 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.007899, allocations: 0 / 0.818 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.007904, allocations: 9.328 kB / 0.818 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003641/0.008268, allocations: 0.5162 MB / 0.8185 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.00827, allocations: 4.047 kB / 0.8185 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.882e-05/0.008309, allocations: 12.83 kB / 0.8185 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.008313, allocations: 4 kB / 0.8185 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.008322, allocations: 3.984 kB / 0.8185 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.008324, allocations: 0.6562 kB / 0.8185 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.008326, allocations: 4.656 kB / 0.8185 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002007/0.008527, allocations: 374.9 kB / 0.8189 GB, free: 10.15 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.112e-05/0.008538, allocations: 14.94 kB / 0.8189 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.008553, allocations: 0 / 0.8189 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.595e-05/0.008639, allocations: 19.98 kB / 0.8189 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.008682, allocations: 11.97 kB / 0.8189 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/0.008709, allocations: 7.938 kB / 0.8189 GB, free: 10.1 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.623e-05/0.008775, allocations: 160.2 kB / 0.8191 GB, free: 9.941 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.008775, allocations: 3.938 kB / 0.8191 GB, free: 9.938 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002358/0.009011, allocations: 50.42 kB / 0.8191 GB, free: 9.891 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.0003583/0.009369, allocations: 198.6 kB / 0.8193 GB, free: 9.727 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001506/0.00952, allocations: 73.22 kB / 0.8194 GB, free: 9.652 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.009522, allocations: 0 / 0.8194 GB, free: 9.652 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.353e-05/0.009576, allocations: 43.59 kB / 0.8194 GB, free: 9.605 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.009854, allocations: 22.39 kB / 0.8194 GB, free: 9.586 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000409/0.01026, allocations: 254.3 kB / 0.8197 GB, free: 9.309 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.877e-05/0.01031, allocations: 71.28 kB / 0.8197 GB, free: 9.219 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.893e-05/0.01036, allocations: 21.09 kB / 0.8198 GB, free: 9.195 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.01039, allocations: 22.16 kB / 0.8198 GB, free: 9.176 MB / 0.7761 GB Notification: Performance of SimCode: time 6.01e-07/0.01039, allocations: 0 / 0.8198 GB, free: 9.176 MB / 0.7761 GB Notification: Performance of Templates: time 0.004178/0.01457, allocations: 1.804 MB / 0.8215 GB, free: 7.422 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: 5.019509084057063]