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.00104/0.00104, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001475/0.001475, allocations: 161 kB / 23.81 MB, free: 0.7539 MB / 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.9513/0.9513, allocations: 177.1 MB / 204.2 MB, free: 5.633 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.85/1.85, allocations: 377.8 MB / 0.6236 GB, free: 8.543 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 2.104e-06/2.104e-06, allocations: 4.703 kB / 0.8115 GB, free: 1.75 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.468e-05/2.678e-05, allocations: 3.312 kB / 0.8115 GB, free: 1.746 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002423/0.00245, allocations: 1.651 MB / 0.8131 GB, free: 104 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001149/0.003598, allocations: 0.7464 MB / 0.8139 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.425e-05/0.003653, allocations: 5.531 kB / 0.8139 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.003768, allocations: 19.8 kB / 0.8139 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.899e-05/0.003817, allocations: 15.75 kB / 0.8139 GB, free: 15.31 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.0004816/0.004298, allocations: 108.5 kB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.004479, allocations: 147.5 kB / 0.8141 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.004605, allocations: 25.97 kB / 0.8142 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.00471, allocations: 75.81 kB / 0.8142 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.788e-05/0.004788, allocations: 49.47 kB / 0.8143 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.374e-05/0.004812, allocations: 12 kB / 0.8143 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.004926, allocations: 47.95 kB / 0.8143 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 5.102e-05/0.004977, allocations: 35.89 kB / 0.8144 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.553e-05/0.005033, allocations: 42.41 kB / 0.8144 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002274/0.00526, allocations: 151.5 kB / 0.8146 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.005264, allocations: 4 kB / 0.8146 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.173e-06/0.005265, allocations: 0 / 0.8146 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.00527, allocations: 0 / 0.8146 GB, free: 14.63 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.0006204/0.00589, allocations: 0.569 MB / 0.8151 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.005927, allocations: 13.69 kB / 0.8151 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.036e-05/0.005987, allocations: 20.78 kB / 0.8152 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.006155, allocations: 160.4 kB / 0.8153 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.006169, allocations: 8.375 kB / 0.8153 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.006186, allocations: 8.375 kB / 0.8153 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.00639, allocations: 114.8 kB / 0.8154 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.006399, allocations: 0.7812 kB / 0.8154 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.006413, allocations: 5.141 kB / 0.8154 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.006423, allocations: 7.938 kB / 0.8154 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.404e-05/0.006467, allocations: 25.08 kB / 0.8155 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004437/0.006911, allocations: 470.5 kB / 0.8159 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.769e-05/0.006999, allocations: 71.42 kB / 0.816 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.683e-05/0.007036, allocations: 27.5 kB / 0.816 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.007054, allocations: 0 / 0.816 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001461/0.0072, allocations: 126.1 kB / 0.8161 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.007201, allocations: 7.938 kB / 0.8161 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12): time 0.0002381/0.007439, allocations: 113.5 kB / 0.8162 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.007476, allocations: 82.14 kB / 0.8163 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.007581, allocations: 211.6 kB / 0.8165 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.007602, allocations: 37.69 kB / 0.8166 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.325e-05/0.007665, allocations: 159.9 kB / 0.8167 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.118e-05/0.007696, allocations: 31.8 kB / 0.8167 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-05/0.007741, allocations: 41.58 kB / 0.8168 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.007854, allocations: 0.4962 MB / 0.8173 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.752e-05/0.007881, allocations: 11.98 kB / 0.8173 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.007983, allocations: 199.7 kB / 0.8175 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.008087, allocations: 131.8 kB / 0.8176 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.00809, allocations: 0 / 0.8176 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001492/0.008239, allocations: 127.5 kB / 0.8177 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.008254, allocations: 8 kB / 0.8177 GB, free: 11.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.008259, allocations: 0.7969 kB / 0.8177 GB, free: 11.03 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.008274, allocations: 4.531 kB / 0.8177 GB, free: 11.03 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.565e-05/0.00835, allocations: 16.55 kB / 0.8177 GB, free: 11.01 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.008355, allocations: 4 kB / 0.8178 GB, free: 11.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.645e-05/0.008402, allocations: 17.3 kB / 0.8178 GB, free: 10.99 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.008413, allocations: 11.98 kB / 0.8178 GB, free: 10.98 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 9.032e-05/0.008503, allocations: 177.1 kB / 0.8179 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.17e-05/0.008525, allocations: 15.91 kB / 0.818 GB, free: 10.78 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.1e-05/0.008566, allocations: 22.52 kB / 0.818 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.008569, allocations: 4 kB / 0.818 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.008573, allocations: 0 / 0.818 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.008577, allocations: 0.6562 kB / 0.818 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003517/0.008928, allocations: 0.5082 MB / 0.8185 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.00893, allocations: 0.7188 kB / 0.8185 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.765e-05/0.008968, allocations: 15.7 kB / 0.8185 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.00897, allocations: 0 / 0.8185 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.008981, allocations: 11.94 kB / 0.8185 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.008982, allocations: 0 / 0.8185 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.008983, allocations: 3.938 kB / 0.8185 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001951/0.009178, allocations: 371 kB / 0.8189 GB, free: 9.797 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.216e-05/0.009191, allocations: 15.91 kB / 0.8189 GB, free: 9.781 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.009206, allocations: 4 kB / 0.8189 GB, free: 9.777 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.584e-05/0.009292, allocations: 11.98 kB / 0.8189 GB, free: 9.766 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.388e-05/0.009336, allocations: 13.45 kB / 0.8189 GB, free: 9.754 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.009366, allocations: 15.92 kB / 0.8189 GB, free: 9.738 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.028e-05/0.009427, allocations: 159.4 kB / 0.8191 GB, free: 9.582 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.009427, allocations: 0 / 0.8191 GB, free: 9.582 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000239/0.009666, allocations: 36.88 kB / 0.8191 GB, free: 9.547 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.0003862/0.01005, allocations: 216 kB / 0.8193 GB, free: 9.367 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001532/0.01021, allocations: 65.19 kB / 0.8194 GB, free: 9.301 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01021, allocations: 1.844 kB / 0.8194 GB, free: 9.301 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.855e-05/0.01026, allocations: 35.61 kB / 0.8194 GB, free: 9.262 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.01051, allocations: 31.83 kB / 0.8194 GB, free: 9.23 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003827/0.0109, allocations: 251.7 kB / 0.8197 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.629e-05/0.01094, allocations: 75.27 kB / 0.8198 GB, free: 8.863 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.832e-05/0.01099, allocations: 21.56 kB / 0.8198 GB, free: 8.84 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.355e-05/0.01102, allocations: 16.5 kB / 0.8198 GB, free: 8.824 MB / 0.7761 GB Notification: Performance of SimCode: time 7.42e-07/0.01102, allocations: 2.844 kB / 0.8198 GB, free: 8.824 MB / 0.7761 GB Notification: Performance of Templates: time 0.004001/0.01503, allocations: 1.922 MB / 0.8217 GB, free: 6.949 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.995824133045971]