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.001176/0.001176, allocations: 93.06 kB / 19.65 MB, free: 280 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.001342/0.001342, allocations: 169.3 kB / 23.02 MB, free: 1.551 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.9158/0.9158, allocations: 177.1 MB / 203.4 MB, free: 5.617 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.083/2.083, allocations: 429.5 MB / 0.6733 GB, free: 4.02 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.723e-06/1.723e-06, allocations: 0 / 0.8781 GB, free: 5.207 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.291e-05/2.464e-05, allocations: 2.312 kB / 0.8781 GB, free: 5.203 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002188/0.002213, allocations: 1.647 MB / 0.8797 GB, free: 3.566 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.003276, allocations: 0.7537 MB / 0.8805 GB, free: 2.816 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.153e-05/0.003327, allocations: 0 / 0.8805 GB, free: 2.816 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.00344, allocations: 15.75 kB / 0.8805 GB, free: 2.801 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 4.895e-05/0.003489, allocations: 23.73 kB / 0.8805 GB, free: 2.777 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.0004583/0.003947, allocations: 111.6 kB / 0.8806 GB, free: 2.668 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.004118, allocations: 150.2 kB / 0.8808 GB, free: 2.523 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.004238, allocations: 21.28 kB / 0.8808 GB, free: 2.504 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.004341, allocations: 75.81 kB / 0.8809 GB, free: 2.43 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 7.339e-05/0.004414, allocations: 51.86 kB / 0.8809 GB, free: 2.379 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.004434, allocations: 8 kB / 0.8809 GB, free: 2.371 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.004547, allocations: 59.83 kB / 0.881 GB, free: 2.312 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 4.439e-05/0.004591, allocations: 27.91 kB / 0.881 GB, free: 2.285 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 5.173e-05/0.004643, allocations: 48.77 kB / 0.8811 GB, free: 2.238 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0002119/0.004855, allocations: 147.5 kB / 0.8812 GB, free: 2.094 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.004858, allocations: 5.047 kB / 0.8812 GB, free: 2.09 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.382e-06/0.00486, allocations: 0 / 0.8812 GB, free: 2.09 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.004864, allocations: 0 / 0.8812 GB, free: 2.09 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.0005966/0.005461, allocations: 0.5626 MB / 0.8817 GB, free: 1.477 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.005498, allocations: 8.031 kB / 0.8818 GB, free: 1.469 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.098e-05/0.005559, allocations: 32.77 kB / 0.8818 GB, free: 1.438 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.005734, allocations: 157.4 kB / 0.8819 GB, free: 1.258 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.005749, allocations: 11.41 kB / 0.8819 GB, free: 1.25 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.005765, allocations: 8.359 kB / 0.882 GB, free: 1.242 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.005959, allocations: 118.2 kB / 0.8821 GB, free: 1.109 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.005968, allocations: 192 / 0.8821 GB, free: 1.109 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.00598, allocations: 384 / 0.8821 GB, free: 1.109 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.005988, allocations: 3.938 kB / 0.8821 GB, free: 1.105 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.123e-05/0.00603, allocations: 15.98 kB / 0.8821 GB, free: 1.09 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004356/0.006465, allocations: 479.2 kB / 0.8825 GB, free: 0.582 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 8.706e-05/0.006552, allocations: 75.7 kB / 0.8826 GB, free: 496 kB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.607e-05/0.006588, allocations: 27.5 kB / 0.8826 GB, free: 460 kB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.006609, allocations: 3.984 kB / 0.8826 GB, free: 456 kB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001429/0.006751, allocations: 117.7 kB / 0.8828 GB, free: 316 kB / 0.7917 GB Notification: Performance of pre-optimization done (n=12): time 1.432e-06/0.006753, allocations: 3.938 kB / 0.8828 GB, free: 312 kB / 0.7917 GB Notification: Performance of matching and sorting (n=12): time 0.0002335/0.006986, allocations: 121.4 kB / 0.8829 GB, free: 184 kB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.007026, allocations: 89.11 kB / 0.883 GB, free: 76 kB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.00714, allocations: 218.9 kB / 0.8832 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.007158, allocations: 29.7 kB / 0.8832 GB, free: 15.81 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.007216, allocations: 155.1 kB / 0.8833 GB, free: 15.65 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.211e-05/0.007249, allocations: 35.77 kB / 0.8834 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.136e-05/0.00729, allocations: 39.38 kB / 0.8834 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.007399, allocations: 0.4962 MB / 0.8839 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.727e-05/0.007426, allocations: 12 kB / 0.8839 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.007526, allocations: 204.8 kB / 0.8841 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.007627, allocations: 129 kB / 0.8842 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.00763, allocations: 0 / 0.8842 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001353/0.007765, allocations: 133.6 kB / 0.8844 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.007779, allocations: 5.562 kB / 0.8844 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.007785, allocations: 4 kB / 0.8844 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.007799, allocations: 0 / 0.8844 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.404e-05/0.007873, allocations: 23.92 kB / 0.8844 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.00788, allocations: 3.984 kB / 0.8844 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.486e-05/0.007925, allocations: 12 kB / 0.8844 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.007935, allocations: 8 kB / 0.8844 GB, free: 14.43 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 8.907e-05/0.008024, allocations: 180.6 kB / 0.8846 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.008045, allocations: 23.89 kB / 0.8846 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.805e-05/0.008083, allocations: 13.47 kB / 0.8846 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.008087, allocations: 4 kB / 0.8846 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.008092, allocations: 0 / 0.8846 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.008096, allocations: 3.984 kB / 0.8846 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003466/0.008443, allocations: 0.5121 MB / 0.8851 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.008445, allocations: 0 / 0.8851 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.562e-05/0.008481, allocations: 8 kB / 0.8851 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.008483, allocations: 0 / 0.8851 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.008494, allocations: 7.984 kB / 0.8851 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.706e-06/0.008497, allocations: 8 kB / 0.8852 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.008498, allocations: 3.938 kB / 0.8852 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002049/0.008703, allocations: 374.8 kB / 0.8855 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.324e-05/0.008716, allocations: 15.91 kB / 0.8855 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.008732, allocations: 4 kB / 0.8855 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.677e-05/0.008819, allocations: 15.98 kB / 0.8855 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.392e-05/0.008863, allocations: 11.97 kB / 0.8856 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.769e-05/0.008891, allocations: 11.94 kB / 0.8856 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.773e-05/0.008948, allocations: 155.2 kB / 0.8857 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8e-08/0.008948, allocations: 4 kB / 0.8857 GB, free: 13 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002313/0.00918, allocations: 43.92 kB / 0.8858 GB, free: 12.96 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.0003773/0.009557, allocations: 197.6 kB / 0.886 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001533/0.00971, allocations: 67.53 kB / 0.886 GB, free: 12.73 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.009712, allocations: 0 / 0.886 GB, free: 12.73 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.839e-05/0.009761, allocations: 43.59 kB / 0.8861 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.01001, allocations: 16.55 kB / 0.8861 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003918/0.0104, allocations: 262.2 kB / 0.8863 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.421e-05/0.01045, allocations: 71.28 kB / 0.8864 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0001938/0.01064, allocations: 20.47 kB / 0.8864 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.275e-05/0.01067, allocations: 20.5 kB / 0.8864 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of SimCode: time 7.52e-07/0.01068, allocations: 0 / 0.8864 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of Templates: time 0.004155/0.01483, allocations: 1.916 MB / 0.8883 GB, free: 10.37 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.182638744357973]