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.001221/0.001221, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001398/0.001398, allocations: 173 kB / 23.49 MB, free: 1.059 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.071/1.071, allocations: 177.1 MB / 203.8 MB, free: 5.645 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.054/2.054, allocations: 429.5 MB / 0.6736 GB, free: 4.008 MB / 0.6355 GB " [Timeout remaining time 177] 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.[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.253e-06/1.253e-06, allocations: 0 / 0.8781 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.722e-05/1.848e-05, allocations: 6.25 kB / 0.8782 GB, free: 6.668 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001849/0.001868, allocations: 1.644 MB / 0.8798 GB, free: 5.035 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009565/0.002824, allocations: 0.7534 MB / 0.8805 GB, free: 4.281 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.138e-05/0.002875, allocations: 0.8438 kB / 0.8805 GB, free: 4.281 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 9.468e-05/0.00297, allocations: 15.8 kB / 0.8805 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.29e-05/0.003013, allocations: 24.48 kB / 0.8805 GB, free: 4.242 MB / 0.8386 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.0003877/0.003401, allocations: 108.4 kB / 0.8806 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000155/0.003556, allocations: 143.5 kB / 0.8808 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.003668, allocations: 25.8 kB / 0.8808 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 9.124e-05/0.003759, allocations: 72.58 kB / 0.8809 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.869e-05/0.003838, allocations: 59.8 kB / 0.8809 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.003856, allocations: 11.97 kB / 0.8809 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.83e-05/0.003945, allocations: 51.91 kB / 0.881 GB, free: 3.785 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.814e-05/0.003993, allocations: 31.89 kB / 0.881 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.643e-05/0.004039, allocations: 35.92 kB / 0.8811 GB, free: 3.719 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.00423, allocations: 151.4 kB / 0.8812 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.004232, allocations: 0 / 0.8812 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.31e-07/0.004233, allocations: 0 / 0.8812 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.506e-06/0.004236, allocations: 0 / 0.8812 GB, free: 3.57 MB / 0.8386 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.0005685/0.004805, allocations: 0.5764 MB / 0.8818 GB, free: 2.941 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.004838, allocations: 8.031 kB / 0.8818 GB, free: 2.934 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.814e-05/0.004896, allocations: 25.84 kB / 0.8818 GB, free: 2.91 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.005057, allocations: 161.1 kB / 0.8819 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.005068, allocations: 5.438 kB / 0.882 GB, free: 2.723 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.005085, allocations: 12.38 kB / 0.882 GB, free: 2.711 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.005256, allocations: 119.3 kB / 0.8821 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.005263, allocations: 192 / 0.8821 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.005276, allocations: 4.375 kB / 0.8821 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.005284, allocations: 7.875 kB / 0.8821 GB, free: 2.566 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.39e-05/0.005328, allocations: 17.11 kB / 0.8821 GB, free: 2.551 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000413/0.005741, allocations: 479.3 kB / 0.8826 GB, free: 2.043 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.957e-05/0.005821, allocations: 74.55 kB / 0.8826 GB, free: 1.945 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.66e-05/0.005857, allocations: 23.36 kB / 0.8827 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.005878, allocations: 9.812 kB / 0.8827 GB, free: 1.906 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/0.006006, allocations: 116.3 kB / 0.8828 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.006008, allocations: 0 / 0.8828 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002231/0.006231, allocations: 118.7 kB / 0.8829 GB, free: 1.648 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.006269, allocations: 81.11 kB / 0.883 GB, free: 1.551 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.006378, allocations: 223.4 kB / 0.8832 GB, free: 1.316 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.006397, allocations: 34.8 kB / 0.8832 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.945e-05/0.006456, allocations: 159 kB / 0.8834 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/0.006487, allocations: 23.86 kB / 0.8834 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.069e-05/0.006527, allocations: 40.02 kB / 0.8834 GB, free: 1.043 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.006639, allocations: 0.4962 MB / 0.8839 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.744e-05/0.006667, allocations: 17.52 kB / 0.8839 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/0.00677, allocations: 201.3 kB / 0.8841 GB, free: 260 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.513e-05/0.006865, allocations: 128 kB / 0.8842 GB, free: 96 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.006867, allocations: 3.938 kB / 0.8842 GB, free: 92 kB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001378/0.007005, allocations: 127.6 kB / 0.8844 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.007016, allocations: 4 kB / 0.8844 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.007022, allocations: 5.656 kB / 0.8844 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.007034, allocations: 4 kB / 0.8844 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.256e-05/0.007097, allocations: 19.92 kB / 0.8844 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.007102, allocations: 0 / 0.8844 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.333e-05/0.007145, allocations: 12.83 kB / 0.8844 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-06/0.007154, allocations: 8 kB / 0.8844 GB, free: 15.91 MB / 0.8542 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.144e-05/0.007235, allocations: 177.1 kB / 0.8846 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.153e-05/0.007257, allocations: 24.19 kB / 0.8846 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.00729, allocations: 21.45 kB / 0.8846 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.007292, allocations: 0 / 0.8846 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.007297, allocations: 4 kB / 0.8846 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.0073, allocations: 0 / 0.8846 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003258/0.007626, allocations: 0.516 MB / 0.8851 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.007628, allocations: 3.984 kB / 0.8851 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.248e-05/0.007661, allocations: 4 kB / 0.8851 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.007663, allocations: 4 kB / 0.8851 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.007671, allocations: 0 / 0.8851 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.007672, allocations: 0 / 0.8851 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.007675, allocations: 11.98 kB / 0.8852 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000176/0.007851, allocations: 379.3 kB / 0.8855 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.154e-05/0.007862, allocations: 15.91 kB / 0.8855 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.007876, allocations: 4 kB / 0.8855 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.504e-05/0.007961, allocations: 11.98 kB / 0.8856 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.007999, allocations: 11.98 kB / 0.8856 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/0.008025, allocations: 12.2 kB / 0.8856 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.923e-05/0.008084, allocations: 155.2 kB / 0.8857 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.008084, allocations: 0 / 0.8857 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002244/0.008309, allocations: 39.94 kB / 0.8858 GB, free: 14.46 MB / 0.8542 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.0003222/0.008631, allocations: 213.9 kB / 0.886 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001371/0.008768, allocations: 67.53 kB / 0.886 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.00877, allocations: 0 / 0.886 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.833e-05/0.008818, allocations: 35.61 kB / 0.8861 GB, free: 14.17 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.00907, allocations: 30.39 kB / 0.8861 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003576/0.009427, allocations: 254.9 kB / 0.8863 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.652e-05/0.009474, allocations: 71.27 kB / 0.8864 GB, free: 13.77 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.25e-05/0.009516, allocations: 24.47 kB / 0.8864 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.823e-05/0.009545, allocations: 16.5 kB / 0.8864 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of SimCode: time 7.21e-07/0.009545, allocations: 0 / 0.8864 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of Templates: time 0.00347/0.01302, allocations: 1.802 MB / 0.8882 GB, free: 11.98 MB / 0.8542 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.472548608900979]