Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.000922/0.000922, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.0008965/0.0008965, allocations: 173.4 kB / 23.36 MB, free: 1.133 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.9354/0.9354, allocations: 177.1 MB / 203.8 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.52/2.52, allocations: 438.8 MB / 0.6826 GB, free: 13.59 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 0.8385 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.977e-05/2.133e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002065/0.002086, allocations: 1.63 MB / 0.8401 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.003187, allocations: 0.7556 MB / 0.8409 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.167e-05/0.003239, allocations: 3.938 kB / 0.8409 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.003346, allocations: 11.81 kB / 0.8409 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 4.96e-05/0.003396, allocations: 27.72 kB / 0.8409 GB, free: 11.78 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.0004859/0.003882, allocations: 107.7 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001585/0.004041, allocations: 139.5 kB / 0.8412 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.004148, allocations: 25.89 kB / 0.8412 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.00425, allocations: 79.8 kB / 0.8413 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 7.394e-05/0.004324, allocations: 59.8 kB / 0.8413 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.004345, allocations: 8 kB / 0.8413 GB, free: 11.37 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 9.799e-05/0.004443, allocations: 51.95 kB / 0.8414 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 4.624e-05/0.004489, allocations: 27.91 kB / 0.8414 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 4.652e-05/0.004536, allocations: 43.84 kB / 0.8414 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.004716, allocations: 155.4 kB / 0.8416 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.004718, allocations: 0 / 0.8416 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.62e-07/0.004719, allocations: 0 / 0.8416 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.004723, allocations: 0 / 0.8416 GB, free: 11.1 MB / 0.8073 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.0004827/0.005206, allocations: 453.3 kB / 0.842 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.005238, allocations: 16.55 kB / 0.842 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.005274, allocations: 12.92 kB / 0.8421 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.00543, allocations: 153.6 kB / 0.8422 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.005443, allocations: 4.375 kB / 0.8422 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.005463, allocations: 16.36 kB / 0.8422 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001729/0.005635, allocations: 107.4 kB / 0.8423 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.005643, allocations: 4.188 kB / 0.8423 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.005653, allocations: 4.375 kB / 0.8423 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.005659, allocations: 3.938 kB / 0.8423 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.922e-05/0.005688, allocations: 19.92 kB / 0.8423 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003098/0.005998, allocations: 295.1 kB / 0.8426 GB, free: 9.93 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.248e-05/0.006061, allocations: 49.14 kB / 0.8427 GB, free: 9.863 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.589e-05/0.006086, allocations: 21.7 kB / 0.8427 GB, free: 9.836 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.006104, allocations: 12.05 kB / 0.8427 GB, free: 9.824 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001185/0.006223, allocations: 119.9 kB / 0.8428 GB, free: 9.688 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.006224, allocations: 0 / 0.8428 GB, free: 9.688 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12): time 0.0001549/0.006379, allocations: 81.59 kB / 0.8429 GB, free: 9.602 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.006418, allocations: 77.11 kB / 0.843 GB, free: 9.508 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.799e-05/0.006496, allocations: 164.1 kB / 0.8431 GB, free: 9.336 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.006514, allocations: 33.7 kB / 0.8432 GB, free: 9.297 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.703e-05/0.006551, allocations: 104.3 kB / 0.8433 GB, free: 9.188 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.006577, allocations: 27.8 kB / 0.8433 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.006613, allocations: 33.69 kB / 0.8433 GB, free: 9.121 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.304e-05/0.006686, allocations: 330.8 kB / 0.8436 GB, free: 8.789 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.828e-05/0.006705, allocations: 11.98 kB / 0.8436 GB, free: 8.777 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.724e-05/0.006782, allocations: 173.7 kB / 0.8438 GB, free: 8.555 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.171e-05/0.006853, allocations: 94.41 kB / 0.8439 GB, free: 8.434 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.006856, allocations: 0 / 0.8439 GB, free: 8.434 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15) (initialization): time 9.859e-05/0.006954, allocations: 105.4 kB / 0.844 GB, free: 8.324 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.006965, allocations: 4 kB / 0.844 GB, free: 8.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.00697, allocations: 4 kB / 0.844 GB, free: 8.316 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.006984, allocations: 4 kB / 0.844 GB, free: 8.312 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.084e-05/0.007045, allocations: 16.22 kB / 0.844 GB, free: 8.297 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.007049, allocations: 11.98 kB / 0.844 GB, free: 8.285 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.896e-05/0.007088, allocations: 7.938 kB / 0.8441 GB, free: 8.277 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.007096, allocations: 8 kB / 0.8441 GB, free: 8.27 MB / 0.8073 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.692e-05/0.007173, allocations: 132.6 kB / 0.8442 GB, free: 8.129 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.007196, allocations: 19.92 kB / 0.8442 GB, free: 8.109 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.471e-05/0.007231, allocations: 21.45 kB / 0.8442 GB, free: 8.094 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.007232, allocations: 0 / 0.8442 GB, free: 8.094 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.007234, allocations: 0 / 0.8442 GB, free: 8.094 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.007239, allocations: 4 kB / 0.8442 GB, free: 8.09 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.007486, allocations: 337.9 kB / 0.8446 GB, free: 7.734 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.007487, allocations: 4 kB / 0.8446 GB, free: 7.73 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.034e-05/0.007517, allocations: 15.92 kB / 0.8446 GB, free: 7.715 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.007519, allocations: 0 / 0.8446 GB, free: 7.715 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.007525, allocations: 4 kB / 0.8446 GB, free: 7.711 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.007528, allocations: 7.938 kB / 0.8446 GB, free: 7.703 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.007529, allocations: 0 / 0.8446 GB, free: 7.703 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.007641, allocations: 238.7 kB / 0.8448 GB, free: 7.453 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.307e-05/0.007654, allocations: 15.91 kB / 0.8448 GB, free: 7.438 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.007667, allocations: 11.92 kB / 0.8448 GB, free: 7.426 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.485e-05/0.007742, allocations: 15.98 kB / 0.8449 GB, free: 7.41 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.007772, allocations: 11.98 kB / 0.8449 GB, free: 7.398 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.007791, allocations: 4 kB / 0.8449 GB, free: 7.395 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.891e-05/0.00782, allocations: 41.81 kB / 0.8449 GB, free: 7.352 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.00782, allocations: 0 / 0.8449 GB, free: 7.352 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001973/0.008018, allocations: 39.94 kB / 0.8449 GB, free: 7.312 MB / 0.8073 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.0003873/0.008405, allocations: 208.5 kB / 0.8451 GB, free: 7.152 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001141/0.008519, allocations: 69.12 kB / 0.8452 GB, free: 7.082 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.008522, allocations: 0 / 0.8452 GB, free: 7.082 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.925e-05/0.008561, allocations: 36.84 kB / 0.8452 GB, free: 7.043 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.00876, allocations: 23.92 kB / 0.8453 GB, free: 7.02 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003337/0.009094, allocations: 248.5 kB / 0.8455 GB, free: 6.746 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.67e-05/0.009141, allocations: 71.25 kB / 0.8456 GB, free: 6.656 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.27e-05/0.009183, allocations: 24.41 kB / 0.8456 GB, free: 6.633 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.379e-05/0.009247, allocations: 75.36 kB / 0.8457 GB, free: 6.559 MB / 0.8073 GB Notification: Performance of SimCode: time 6.21e-07/0.009248, allocations: 4 kB / 0.8457 GB, free: 6.555 MB / 0.8073 GB Notification: Performance of Templates: time 0.003842/0.01309, allocations: 1.894 MB / 0.8475 GB, free: 4.703 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.366806428879499]