Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0009212/0.0009212, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.0008582/0.0008582, allocations: 161 kB / 23.82 MB, free: 0.7539 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.9209/0.9209, allocations: 177.1 MB / 204.2 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.745/1.745, allocations: 359 MB / 0.6052 GB, free: 11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.22e-05/2.412e-05, allocations: 2.312 kB / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002224/0.002248, allocations: 1.642 MB / 0.7887 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.003314, allocations: 0.7465 MB / 0.7894 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.525e-05/0.00337, allocations: 4 kB / 0.7894 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.003474, allocations: 15.8 kB / 0.7894 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.901e-05/0.003523, allocations: 20.77 kB / 0.7894 GB, free: 10.05 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.0004835/0.004007, allocations: 112.9 kB / 0.7895 GB, free: 9.941 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001672/0.004174, allocations: 139.5 kB / 0.7897 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.004292, allocations: 21.25 kB / 0.7897 GB, free: 9.785 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.0044, allocations: 83.78 kB / 0.7898 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.035e-05/0.004471, allocations: 49.34 kB / 0.7898 GB, free: 9.656 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.004494, allocations: 12 kB / 0.7898 GB, free: 9.645 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.004602, allocations: 51.89 kB / 0.7899 GB, free: 9.594 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.37e-05/0.004656, allocations: 32.97 kB / 0.7899 GB, free: 9.562 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 5.034e-05/0.004706, allocations: 39.91 kB / 0.79 GB, free: 9.523 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.004971, allocations: 159.4 kB / 0.7901 GB, free: 9.367 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.004974, allocations: 0.9688 kB / 0.7901 GB, free: 9.367 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.423e-06/0.004976, allocations: 0 / 0.7901 GB, free: 9.367 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.918e-06/0.00498, allocations: 0 / 0.7901 GB, free: 9.367 MB / 0.7448 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.0005834/0.005563, allocations: 0.566 MB / 0.7907 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.005602, allocations: 12.03 kB / 0.7907 GB, free: 8.738 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.229e-05/0.005664, allocations: 22.16 kB / 0.7907 GB, free: 8.719 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.005823, allocations: 160.4 kB / 0.7909 GB, free: 8.535 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.005834, allocations: 4.375 kB / 0.7909 GB, free: 8.531 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.005851, allocations: 12.38 kB / 0.7909 GB, free: 8.52 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001985/0.00605, allocations: 113.2 kB / 0.791 GB, free: 8.395 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.006057, allocations: 192 / 0.791 GB, free: 8.395 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.006071, allocations: 4.375 kB / 0.791 GB, free: 8.391 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.006079, allocations: 7.938 kB / 0.791 GB, free: 8.383 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.257e-05/0.006121, allocations: 15.98 kB / 0.791 GB, free: 8.367 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004578/0.006579, allocations: 470.5 kB / 0.7915 GB, free: 7.867 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.598e-05/0.006665, allocations: 74.77 kB / 0.7915 GB, free: 7.77 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.802e-05/0.006703, allocations: 33.14 kB / 0.7916 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.006722, allocations: 4 kB / 0.7916 GB, free: 7.727 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001405/0.006862, allocations: 120.4 kB / 0.7917 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.006864, allocations: 1.75 kB / 0.7917 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12): time 0.0002421/0.007106, allocations: 117.5 kB / 0.7918 GB, free: 7.465 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.007146, allocations: 85.09 kB / 0.7919 GB, free: 7.363 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.007248, allocations: 211.1 kB / 0.7921 GB, free: 7.141 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.007267, allocations: 30.89 kB / 0.7921 GB, free: 7.105 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.405e-05/0.007331, allocations: 167 kB / 0.7923 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.919e-05/0.00736, allocations: 27.8 kB / 0.7923 GB, free: 6.906 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.393e-05/0.007404, allocations: 43.36 kB / 0.7923 GB, free: 6.855 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.007512, allocations: 0.4939 MB / 0.7928 GB, free: 6.352 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.309e-05/0.007545, allocations: 11.98 kB / 0.7928 GB, free: 6.34 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.007645, allocations: 212.8 kB / 0.793 GB, free: 6.066 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.851e-05/0.007743, allocations: 128.1 kB / 0.7931 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.007746, allocations: 0 / 0.7931 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001382/0.007884, allocations: 128 kB / 0.7933 GB, free: 5.777 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.0079, allocations: 8 kB / 0.7933 GB, free: 5.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.007905, allocations: 0.5312 kB / 0.7933 GB, free: 5.77 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.007918, allocations: 5.375 kB / 0.7933 GB, free: 5.766 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.512e-05/0.007993, allocations: 16.16 kB / 0.7933 GB, free: 5.75 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.007999, allocations: 4 kB / 0.7933 GB, free: 5.746 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.347e-05/0.008043, allocations: 13.16 kB / 0.7933 GB, free: 5.734 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.008051, allocations: 4 kB / 0.7933 GB, free: 5.73 MB / 0.7448 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.604e-05/0.008137, allocations: 184.4 kB / 0.7935 GB, free: 5.539 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.977e-05/0.008157, allocations: 21.06 kB / 0.7935 GB, free: 5.52 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.743e-05/0.008195, allocations: 17.45 kB / 0.7935 GB, free: 5.508 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.008198, allocations: 4 kB / 0.7935 GB, free: 5.504 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.008203, allocations: 0.8125 kB / 0.7935 GB, free: 5.504 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.008206, allocations: 0 / 0.7935 GB, free: 5.504 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003504/0.008557, allocations: 0.5246 MB / 0.794 GB, free: 4.938 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.008559, allocations: 0 / 0.794 GB, free: 4.938 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.807e-05/0.008597, allocations: 13.33 kB / 0.7941 GB, free: 4.926 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.0086, allocations: 0 / 0.7941 GB, free: 4.926 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.008611, allocations: 4 kB / 0.7941 GB, free: 4.922 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.008613, allocations: 0 / 0.7941 GB, free: 4.922 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.008614, allocations: 0.875 kB / 0.7941 GB, free: 4.922 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001834/0.008798, allocations: 378.9 kB / 0.7944 GB, free: 4.531 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.344e-05/0.008811, allocations: 17.94 kB / 0.7944 GB, free: 4.516 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.008825, allocations: 0 / 0.7944 GB, free: 4.516 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-05/0.008907, allocations: 15.98 kB / 0.7945 GB, free: 4.5 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.008951, allocations: 7.984 kB / 0.7945 GB, free: 4.492 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.008979, allocations: 11.94 kB / 0.7945 GB, free: 4.48 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.052e-05/0.00904, allocations: 164.8 kB / 0.7946 GB, free: 4.32 MB / 0.7448 GB Notification: Performance of sort global known variables: time 4e-08/0.00904, allocations: 3.438 kB / 0.7946 GB, free: 4.32 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002348/0.009275, allocations: 39.94 kB / 0.7947 GB, free: 4.281 MB / 0.7448 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.000398/0.009673, allocations: 204.6 kB / 0.7949 GB, free: 4.113 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001471/0.00982, allocations: 68.16 kB / 0.7949 GB, free: 4.043 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.009822, allocations: 0.6562 kB / 0.7949 GB, free: 4.043 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.809e-05/0.00987, allocations: 40.25 kB / 0.795 GB, free: 4 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.01011, allocations: 22.42 kB / 0.795 GB, free: 3.98 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003948/0.01051, allocations: 260.4 kB / 0.7952 GB, free: 3.695 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.578e-05/0.01055, allocations: 75.27 kB / 0.7953 GB, free: 3.602 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.574e-05/0.0106, allocations: 23.38 kB / 0.7953 GB, free: 3.582 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.023e-05/0.01063, allocations: 20.5 kB / 0.7954 GB, free: 3.559 MB / 0.7448 GB Notification: Performance of SimCode: time 6.41e-07/0.01063, allocations: 0 / 0.7954 GB, free: 3.559 MB / 0.7448 GB Notification: Performance of Templates: time 0.00422/0.01485, allocations: 1.92 MB / 0.7972 GB, free: 1.688 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.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: 4.807277441956103]