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.001005/0.001005, allocations: 67.75 kB / 20.97 MB, free: 3.582 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.00155/0.00155, allocations: 169.3 kB / 24.28 MB, free: 280 kB / 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.968/0.968, allocations: 177.1 MB / 204.6 MB, free: 5.656 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.698/1.698, allocations: 359 MB / 0.6055 GB, free: 11.02 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 3.176e-06/3.176e-06, allocations: 3.984 kB / 0.7871 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.915e-05/3.232e-05, allocations: 8.781 kB / 0.7871 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002169/0.002201, allocations: 1.638 MB / 0.7887 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.003325, allocations: 0.7502 MB / 0.7894 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.686e-05/0.003391, allocations: 4.5 kB / 0.7894 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.003512, allocations: 11.86 kB / 0.7894 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.682e-05/0.003559, allocations: 20.66 kB / 0.7894 GB, free: 10.4 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.0004777/0.004036, allocations: 108.3 kB / 0.7895 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001916/0.004228, allocations: 143.5 kB / 0.7897 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.004374, allocations: 26.5 kB / 0.7897 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.004486, allocations: 75.8 kB / 0.7898 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.875e-05/0.004564, allocations: 51.86 kB / 0.7898 GB, free: 10 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.004587, allocations: 13.62 kB / 0.7898 GB, free: 9.992 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.004696, allocations: 55.89 kB / 0.7899 GB, free: 9.938 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.103e-05/0.004747, allocations: 27.91 kB / 0.7899 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 5.396e-05/0.004801, allocations: 39.91 kB / 0.79 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002212/0.005022, allocations: 152.7 kB / 0.7901 GB, free: 9.723 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.005026, allocations: 0 / 0.7901 GB, free: 9.723 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.342e-06/0.005027, allocations: 0 / 0.7901 GB, free: 9.723 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.005033, allocations: 0.6875 kB / 0.7901 GB, free: 9.723 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.0006694/0.005702, allocations: 0.5735 MB / 0.7907 GB, free: 9.098 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.005743, allocations: 8.031 kB / 0.7907 GB, free: 9.09 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.708e-05/0.00581, allocations: 20.84 kB / 0.7907 GB, free: 9.07 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001884/0.005998, allocations: 163.8 kB / 0.7908 GB, free: 8.887 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.006011, allocations: 4.375 kB / 0.7908 GB, free: 8.883 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.00603, allocations: 16.31 kB / 0.7909 GB, free: 8.867 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002009/0.006231, allocations: 108.5 kB / 0.791 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.006241, allocations: 192 / 0.791 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.006256, allocations: 4.375 kB / 0.791 GB, free: 8.742 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.006267, allocations: 3.938 kB / 0.791 GB, free: 8.738 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.761e-05/0.006314, allocations: 23.92 kB / 0.791 GB, free: 8.715 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005486/0.006863, allocations: 475.2 kB / 0.7915 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001101/0.006973, allocations: 79.7 kB / 0.7915 GB, free: 8.109 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.165e-05/0.007015, allocations: 23.36 kB / 0.7916 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.00704, allocations: 4 kB / 0.7916 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/0.007221, allocations: 117.9 kB / 0.7917 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=12): time 1.603e-06/0.007223, allocations: 0 / 0.7917 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12): time 0.0002781/0.007501, allocations: 121.4 kB / 0.7918 GB, free: 7.812 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.007548, allocations: 81.64 kB / 0.7919 GB, free: 7.715 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.00767, allocations: 216.5 kB / 0.7921 GB, free: 7.488 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.00769, allocations: 29.7 kB / 0.7921 GB, free: 7.453 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.34e-05/0.007763, allocations: 163 kB / 0.7923 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.007795, allocations: 27.8 kB / 0.7923 GB, free: 7.258 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.72e-05/0.007843, allocations: 48.64 kB / 0.7923 GB, free: 7.203 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.007968, allocations: 0.4962 MB / 0.7928 GB, free: 6.695 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.448e-05/0.008002, allocations: 11.98 kB / 0.7928 GB, free: 6.684 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.008108, allocations: 197.9 kB / 0.793 GB, free: 6.422 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001114/0.00822, allocations: 132.1 kB / 0.7931 GB, free: 6.258 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.008222, allocations: 0 / 0.7931 GB, free: 6.258 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001402/0.008363, allocations: 119.7 kB / 0.7932 GB, free: 6.137 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.008379, allocations: 12.47 kB / 0.7933 GB, free: 6.125 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.008385, allocations: 1.375 kB / 0.7933 GB, free: 6.125 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.008401, allocations: 4 kB / 0.7933 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.207e-05/0.008493, allocations: 19.92 kB / 0.7933 GB, free: 6.102 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.008502, allocations: 4 kB / 0.7933 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.37e-05/0.008545, allocations: 9.156 kB / 0.7933 GB, free: 6.09 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.008557, allocations: 8 kB / 0.7933 GB, free: 6.082 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 9.756e-05/0.008654, allocations: 181.2 kB / 0.7935 GB, free: 5.895 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.008689, allocations: 20.14 kB / 0.7935 GB, free: 5.875 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.452e-05/0.008733, allocations: 22.02 kB / 0.7935 GB, free: 5.859 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.008737, allocations: 4.797 kB / 0.7935 GB, free: 5.855 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.008742, allocations: 0 / 0.7935 GB, free: 5.855 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.008747, allocations: 4 kB / 0.7935 GB, free: 5.852 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005859/0.009333, allocations: 0.513 MB / 0.794 GB, free: 5.297 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.009335, allocations: 0 / 0.794 GB, free: 5.297 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.415e-05/0.009379, allocations: 17.27 kB / 0.794 GB, free: 5.281 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.009383, allocations: 4 kB / 0.794 GB, free: 5.277 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.009392, allocations: 0 / 0.794 GB, free: 5.277 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.009394, allocations: 0.9688 kB / 0.794 GB, free: 5.277 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.009396, allocations: 0 / 0.794 GB, free: 5.277 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002007/0.009596, allocations: 378.9 kB / 0.7944 GB, free: 4.887 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.683e-05/0.009613, allocations: 26.2 kB / 0.7944 GB, free: 4.863 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.009628, allocations: 0 / 0.7944 GB, free: 4.863 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.816e-05/0.009716, allocations: 11.98 kB / 0.7944 GB, free: 4.852 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.99e-05/0.009766, allocations: 11.98 kB / 0.7945 GB, free: 4.84 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.009797, allocations: 11.94 kB / 0.7945 GB, free: 4.828 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.851e-05/0.009865, allocations: 167.6 kB / 0.7946 GB, free: 4.668 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9e-08/0.009865, allocations: 0 / 0.7946 GB, free: 4.668 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002485/0.01011, allocations: 35.94 kB / 0.7947 GB, free: 4.633 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.0005266/0.01064, allocations: 205.9 kB / 0.7949 GB, free: 4.465 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001752/0.01082, allocations: 68.88 kB / 0.7949 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.01082, allocations: 0.9062 kB / 0.7949 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.259e-05/0.01087, allocations: 35.61 kB / 0.795 GB, free: 4.355 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.0112, allocations: 20.61 kB / 0.795 GB, free: 4.336 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004403/0.01165, allocations: 264.7 kB / 0.7952 GB, free: 4.047 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.905e-05/0.01169, allocations: 71.27 kB / 0.7953 GB, free: 3.957 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.662e-05/0.01174, allocations: 24.47 kB / 0.7953 GB, free: 3.934 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.18e-05/0.01177, allocations: 19.84 kB / 0.7953 GB, free: 3.914 MB / 0.7448 GB Notification: Performance of SimCode: time 1.132e-06/0.01177, allocations: 0 / 0.7953 GB, free: 3.914 MB / 0.7448 GB Notification: Performance of Templates: time 0.004113/0.01589, allocations: 1.802 MB / 0.7971 GB, free: 2.164 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.996163736097515]