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.001361/0.001361, allocations: 92.7 kB / 19.44 MB, free: 324 kB / 13.93 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.00155/0.00155, allocations: 161.3 kB / 22.75 MB, free: 1.656 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 1.471/1.471, allocations: 177.1 MB / 203.1 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] 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 3.167/3.167, allocations: 429.6 MB / 0.673 GB, free: 3.879 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.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.1.|pri1.x.2.",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.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 0.8776 GB, free: 5.363 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.089e-05/3.281e-05, allocations: 6.859 kB / 0.8776 GB, free: 5.355 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.004538/0.004571, allocations: 1.583 MB / 0.8791 GB, free: 3.789 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.002308/0.006879, allocations: 0.7325 MB / 0.8798 GB, free: 3.059 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.143e-05/0.006971, allocations: 0 / 0.8798 GB, free: 3.059 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.007131, allocations: 17.62 kB / 0.8798 GB, free: 3.043 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.007237, allocations: 24.55 kB / 0.8799 GB, free: 3.02 MB / 0.7917 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.0006804/0.007917, allocations: 115.5 kB / 0.88 GB, free: 2.906 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.008267, allocations: 148.2 kB / 0.8801 GB, free: 2.762 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.008416, allocations: 21.3 kB / 0.8801 GB, free: 2.742 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.008629, allocations: 76.42 kB / 0.8802 GB, free: 2.668 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.008768, allocations: 52.47 kB / 0.8803 GB, free: 2.617 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 4.001e-05/0.008808, allocations: 8 kB / 0.8803 GB, free: 2.609 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.008985, allocations: 56.61 kB / 0.8803 GB, free: 2.555 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 8.087e-05/0.009066, allocations: 35.84 kB / 0.8804 GB, free: 2.523 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 9.565e-05/0.009161, allocations: 35.91 kB / 0.8804 GB, free: 2.488 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.000435/0.009596, allocations: 187.4 kB / 0.8806 GB, free: 2.305 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.0096, allocations: 0 / 0.8806 GB, free: 2.305 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.052e-06/0.009601, allocations: 0 / 0.8806 GB, free: 2.305 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 5.84e-06/0.009607, allocations: 3.938 kB / 0.8806 GB, free: 2.301 MB / 0.7917 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.001293/0.0109, allocations: 480.1 kB / 0.881 GB, free: 1.785 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.01095, allocations: 8.031 kB / 0.881 GB, free: 1.777 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.01106, allocations: 24.84 kB / 0.8811 GB, free: 1.754 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/0.01139, allocations: 159.5 kB / 0.8812 GB, free: 1.574 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.01141, allocations: 12.31 kB / 0.8812 GB, free: 1.562 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.056e-05/0.01144, allocations: 8.375 kB / 0.8812 GB, free: 1.555 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004718/0.01191, allocations: 129 kB / 0.8814 GB, free: 1.418 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.01193, allocations: 4.188 kB / 0.8814 GB, free: 1.414 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.01195, allocations: 5.5 kB / 0.8814 GB, free: 1.41 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.01196, allocations: 3.938 kB / 0.8814 GB, free: 1.406 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003968/0.01236, allocations: 72.97 kB / 0.8814 GB, free: 1.336 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009427/0.0133, allocations: 386.9 kB / 0.8818 GB, free: 0.9258 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.01362, allocations: 81.11 kB / 0.8819 GB, free: 0.8281 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002215/0.01384, allocations: 42.31 kB / 0.8819 GB, free: 0.7812 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.01387, allocations: 5.688 kB / 0.8819 GB, free: 0.7773 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005382/0.01441, allocations: 144.9 kB / 0.8821 GB, free: 0.6172 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=12): time 1.773e-06/0.01441, allocations: 1.188 kB / 0.8821 GB, free: 0.6172 MB / 0.7917 GB Notification: Performance of matching and sorting (n=12): time 0.0009694/0.01538, allocations: 202.4 kB / 0.8823 GB, free: 424 kB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/0.01547, allocations: 82.7 kB / 0.8823 GB, free: 324 kB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.01571, allocations: 163.3 kB / 0.8825 GB, free: 152 kB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.01576, allocations: 37.69 kB / 0.8825 GB, free: 108 kB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.01589, allocations: 100.6 kB / 0.8826 GB, free: 16 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 7.543e-05/0.01597, allocations: 39.73 kB / 0.8827 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.883e-05/0.01607, allocations: 36.69 kB / 0.8827 GB, free: 15.92 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0002343/0.0163, allocations: 326.8 kB / 0.883 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/0.01652, allocations: 35.97 kB / 0.8831 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.01693, allocations: 195.3 kB / 0.8832 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004982/0.01743, allocations: 151.2 kB / 0.8834 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.01743, allocations: 4 kB / 0.8834 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006552/0.01809, allocations: 177.5 kB / 0.8836 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.01811, allocations: 6.031 kB / 0.8836 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.01812, allocations: 4 kB / 0.8836 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.871e-05/0.01815, allocations: 4.281 kB / 0.8836 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.01833, allocations: 19.97 kB / 0.8836 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.709e-05/0.01834, allocations: 7.938 kB / 0.8836 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.01852, allocations: 11.98 kB / 0.8836 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.01855, allocations: 12 kB / 0.8836 GB, free: 14.89 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 0.0002086/0.01876, allocations: 134.6 kB / 0.8837 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.03e-05/0.01884, allocations: 15.91 kB / 0.8838 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.551e-05/0.01892, allocations: 17.47 kB / 0.8838 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.01892, allocations: 4 kB / 0.8838 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.01893, allocations: 7.984 kB / 0.8838 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.01894, allocations: 0 / 0.8838 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/0.02022, allocations: 481.1 kB / 0.8843 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.02022, allocations: 0 / 0.8843 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.02036, allocations: 19.92 kB / 0.8843 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.02037, allocations: 0 / 0.8843 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.02039, allocations: 8 kB / 0.8843 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.0204, allocations: 0 / 0.8843 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.0204, allocations: 7.984 kB / 0.8843 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008522/0.02125, allocations: 326.5 kB / 0.8846 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/0.02129, allocations: 11.95 kB / 0.8846 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.488e-05/0.02133, allocations: 4 kB / 0.8846 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/0.02168, allocations: 15.97 kB / 0.8846 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.304e-05/0.02176, allocations: 19.86 kB / 0.8846 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.169e-05/0.02182, allocations: 8 kB / 0.8847 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0001783/0.02199, allocations: 123.2 kB / 0.8848 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2e-07/0.02199, allocations: 0 / 0.8848 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0006495/0.02264, allocations: 43.89 kB / 0.8848 GB, free: 13.6 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.0007777/0.02342, allocations: 190.5 kB / 0.885 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0006882/0.02411, allocations: 103.8 kB / 0.8851 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.02411, allocations: 0.5625 kB / 0.8851 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0003313/0.02444, allocations: 59.84 kB / 0.8852 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007028/0.02515, allocations: 23.97 kB / 0.8852 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009453/0.02609, allocations: 261.7 kB / 0.8854 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002014/0.02629, allocations: 106.3 kB / 0.8855 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0001219/0.02642, allocations: 24.47 kB / 0.8855 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.408e-05/0.02649, allocations: 16.5 kB / 0.8856 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of SimCode: time 5.61e-07/0.02649, allocations: 0 / 0.8856 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of Templates: time 0.01015/0.03664, allocations: 1.811 MB / 0.8873 GB, free: 11.05 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.983630883041769]