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.001443/0.001443, allocations: 80.39 kB / 21.47 MB, free: 3.031 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.001046/0.001046, allocations: 171.5 kB / 24.87 MB, free: 9.258 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.941/0.941, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.89/1.89, allocations: 377.9 MB / 0.6247 GB, free: 8.426 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.373e-06/1.373e-06, allocations: 0.5469 kB / 0.8127 GB, free: 1.504 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.086e-05, allocations: 2.312 kB / 0.8127 GB, free: 1.5 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002124/0.002145, allocations: 1.634 MB / 0.8143 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.003183, allocations: 0.7416 MB / 0.8151 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.808e-05/0.003241, allocations: 3.938 kB / 0.8151 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 9.878e-05/0.003339, allocations: 13.45 kB / 0.8151 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.793e-05/0.003387, allocations: 27.73 kB / 0.8151 GB, free: 15.08 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.0004548/0.003842, allocations: 112.3 kB / 0.8152 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000162/0.004004, allocations: 139.5 kB / 0.8153 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.004113, allocations: 22.34 kB / 0.8154 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.004218, allocations: 87.72 kB / 0.8155 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.235e-05/0.00429, allocations: 47.88 kB / 0.8155 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.912e-05/0.004309, allocations: 9.156 kB / 0.8155 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.004423, allocations: 51.95 kB / 0.8156 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.553e-05/0.004469, allocations: 31.91 kB / 0.8156 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.141e-05/0.00451, allocations: 37.28 kB / 0.8156 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001924/0.004703, allocations: 155.4 kB / 0.8158 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.004705, allocations: 3.938 kB / 0.8158 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.72e-07/0.004705, allocations: 1.75 kB / 0.8158 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.00471, allocations: 0 / 0.8158 GB, free: 14.4 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.0005626/0.005272, allocations: 0.5685 MB / 0.8163 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.005313, allocations: 8.031 kB / 0.8163 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/0.005363, allocations: 21.34 kB / 0.8164 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.005523, allocations: 170.2 kB / 0.8165 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.005537, allocations: 4.375 kB / 0.8165 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.005551, allocations: 12.38 kB / 0.8165 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001622/0.005714, allocations: 109.5 kB / 0.8166 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.005722, allocations: 2.688 kB / 0.8166 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.005734, allocations: 4.375 kB / 0.8166 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.00574, allocations: 3.938 kB / 0.8167 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.247e-05/0.005773, allocations: 19.92 kB / 0.8167 GB, free: 13.4 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.006455, allocations: 447.1 kB / 0.8171 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.544e-05/0.00653, allocations: 66.83 kB / 0.8172 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.803e-05/0.006559, allocations: 27.83 kB / 0.8172 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.006578, allocations: 8.125 kB / 0.8172 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001234/0.006701, allocations: 121.9 kB / 0.8173 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.006702, allocations: 0 / 0.8173 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12): time 0.0001988/0.006901, allocations: 109.5 kB / 0.8174 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.006946, allocations: 86.19 kB / 0.8175 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.007048, allocations: 211.6 kB / 0.8177 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.007068, allocations: 33.69 kB / 0.8177 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.134e-05/0.007129, allocations: 163.8 kB / 0.8179 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.115e-05/0.00716, allocations: 35.73 kB / 0.8179 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/0.007203, allocations: 40.02 kB / 0.818 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.007334, allocations: 0.4962 MB / 0.8184 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.159e-05/0.007356, allocations: 8.828 kB / 0.8185 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.007456, allocations: 200.1 kB / 0.8186 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.762e-05/0.007554, allocations: 130 kB / 0.8188 GB, free: 10.99 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.007556, allocations: 0 / 0.8188 GB, free: 10.99 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001291/0.007685, allocations: 119.2 kB / 0.8189 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.007697, allocations: 6.812 kB / 0.8189 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.007703, allocations: 4 kB / 0.8189 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-06/0.007713, allocations: 0 / 0.8189 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.565e-05/0.007778, allocations: 24.42 kB / 0.8189 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.076e-06/0.007782, allocations: 1.125 kB / 0.8189 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.473e-05/0.007826, allocations: 8 kB / 0.8189 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.007834, allocations: 4 kB / 0.8189 GB, free: 10.83 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.858e-05/0.007923, allocations: 181.5 kB / 0.8191 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.007944, allocations: 23.84 kB / 0.8191 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.548e-05/0.00798, allocations: 22.33 kB / 0.8191 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.007982, allocations: 0 / 0.8191 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.007984, allocations: 1.781 kB / 0.8191 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.007989, allocations: 4 kB / 0.8192 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003297/0.008318, allocations: 493 kB / 0.8196 GB, free: 10.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.00832, allocations: 0 / 0.8196 GB, free: 10.08 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.752e-05/0.008358, allocations: 11.98 kB / 0.8196 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.008361, allocations: 5.344 kB / 0.8196 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.008368, allocations: 0 / 0.8196 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.00837, allocations: 4 kB / 0.8196 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.008371, allocations: 0 / 0.8196 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001765/0.008548, allocations: 375.6 kB / 0.82 GB, free: 9.672 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.359e-05/0.008561, allocations: 15.89 kB / 0.82 GB, free: 9.656 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.008574, allocations: 4.656 kB / 0.82 GB, free: 9.652 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.464e-05/0.008659, allocations: 15.67 kB / 0.82 GB, free: 9.641 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.275e-05/0.008692, allocations: 11.98 kB / 0.82 GB, free: 9.629 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.008716, allocations: 8.281 kB / 0.8201 GB, free: 9.621 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.545e-05/0.008772, allocations: 155.4 kB / 0.8202 GB, free: 9.469 MB / 0.7761 GB Notification: Performance of sort global known variables: time 4e-08/0.008772, allocations: 0 / 0.8202 GB, free: 9.469 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002483/0.00902, allocations: 39.94 kB / 0.8202 GB, free: 9.43 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.0003967/0.009417, allocations: 201 kB / 0.8204 GB, free: 9.258 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001365/0.009553, allocations: 69.78 kB / 0.8205 GB, free: 9.188 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.009555, allocations: 4 kB / 0.8205 GB, free: 9.184 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.897e-05/0.009594, allocations: 27.67 kB / 0.8205 GB, free: 9.152 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.00985, allocations: 29.38 kB / 0.8206 GB, free: 9.125 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003383/0.01019, allocations: 260.1 kB / 0.8208 GB, free: 8.844 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.227e-05/0.01023, allocations: 67.33 kB / 0.8209 GB, free: 8.758 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.299e-05/0.01027, allocations: 17.05 kB / 0.8209 GB, free: 8.738 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.072e-05/0.01034, allocations: 95.62 kB / 0.821 GB, free: 8.645 MB / 0.7761 GB Notification: Performance of SimCode: time 5.51e-07/0.01035, allocations: 0 / 0.821 GB, free: 8.645 MB / 0.7761 GB Notification: Performance of Templates: time 0.003848/0.01419, allocations: 1.992 MB / 0.8229 GB, free: 6.699 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.058770332019776]