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.001306/0.001306, allocations: 85.95 kB / 21.47 MB, free: 3.031 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.00151/0.00151, allocations: 163.8 kB / 24.87 MB, free: 9.285 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.9706/0.9706, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.727/1.727, allocations: 359 MB / 0.6063 GB, free: 10.89 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.643e-06/1.643e-06, allocations: 0 / 0.7883 GB, free: 12.24 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.076e-05/2.24e-05, allocations: 2.312 kB / 0.7883 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00221/0.002232, allocations: 1.635 MB / 0.7899 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.003291, allocations: 0.7462 MB / 0.7906 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.569e-05/0.003347, allocations: 3.938 kB / 0.7906 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.003449, allocations: 11.88 kB / 0.7906 GB, free: 9.84 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.681e-05/0.003496, allocations: 26.95 kB / 0.7906 GB, free: 9.816 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.0004205/0.003917, allocations: 103.7 kB / 0.7907 GB, free: 9.715 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.004076, allocations: 143.5 kB / 0.7909 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.004192, allocations: 29.22 kB / 0.7909 GB, free: 9.547 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 9.789e-05/0.00429, allocations: 75.81 kB / 0.791 GB, free: 9.473 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.006e-05/0.00436, allocations: 55.8 kB / 0.791 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.91e-05/0.004379, allocations: 9 kB / 0.791 GB, free: 9.41 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 9.588e-05/0.004475, allocations: 47.97 kB / 0.7911 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.636e-05/0.004521, allocations: 35.89 kB / 0.7911 GB, free: 9.328 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.154e-05/0.004562, allocations: 40.48 kB / 0.7912 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001809/0.004743, allocations: 147.5 kB / 0.7913 GB, free: 9.145 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.004746, allocations: 1.312 kB / 0.7913 GB, free: 9.145 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.31e-07/0.004747, allocations: 0 / 0.7913 GB, free: 9.145 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.004751, allocations: 0 / 0.7913 GB, free: 9.145 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.0005373/0.005289, allocations: 0.5777 MB / 0.7919 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.005321, allocations: 8.031 kB / 0.7919 GB, free: 8.508 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.227e-05/0.005363, allocations: 24.84 kB / 0.7919 GB, free: 8.484 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.005506, allocations: 154 kB / 0.792 GB, free: 8.309 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.005518, allocations: 4.375 kB / 0.7921 GB, free: 8.305 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.005532, allocations: 16.31 kB / 0.7921 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.005686, allocations: 111.8 kB / 0.7922 GB, free: 8.164 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.005693, allocations: 192 / 0.7922 GB, free: 8.164 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.005705, allocations: 12.3 kB / 0.7922 GB, free: 8.152 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.005712, allocations: 3.938 kB / 0.7922 GB, free: 8.148 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.017e-05/0.005742, allocations: 16.55 kB / 0.7922 GB, free: 8.133 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003889/0.006131, allocations: 444.7 kB / 0.7926 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.617e-05/0.006207, allocations: 70.09 kB / 0.7927 GB, free: 7.574 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.803e-05/0.006235, allocations: 27.44 kB / 0.7927 GB, free: 7.539 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.006256, allocations: 8.484 kB / 0.7927 GB, free: 7.531 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001338/0.006389, allocations: 110.4 kB / 0.7928 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.006391, allocations: 0 / 0.7928 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12): time 0.0002182/0.006609, allocations: 113.5 kB / 0.7929 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.006655, allocations: 77.11 kB / 0.793 GB, free: 7.191 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.006773, allocations: 219.6 kB / 0.7932 GB, free: 6.961 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.006792, allocations: 29.7 kB / 0.7933 GB, free: 6.926 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.828e-05/0.00686, allocations: 163.7 kB / 0.7934 GB, free: 6.758 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.00689, allocations: 27.8 kB / 0.7934 GB, free: 6.73 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.93e-05/0.006939, allocations: 47.78 kB / 0.7935 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.007073, allocations: 0.5016 MB / 0.794 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.921e-05/0.007093, allocations: 4 kB / 0.794 GB, free: 6.16 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.007199, allocations: 207.8 kB / 0.7942 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.007303, allocations: 119.7 kB / 0.7943 GB, free: 5.738 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.007306, allocations: 0.8438 kB / 0.7943 GB, free: 5.738 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001389/0.007445, allocations: 120.8 kB / 0.7944 GB, free: 5.617 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.007458, allocations: 4 kB / 0.7944 GB, free: 5.613 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.007466, allocations: 4 kB / 0.7944 GB, free: 5.609 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.007476, allocations: 0 / 0.7944 GB, free: 5.609 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.009e-05/0.007547, allocations: 23.92 kB / 0.7944 GB, free: 5.586 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.00755, allocations: 0.5312 kB / 0.7944 GB, free: 5.586 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.682e-05/0.007597, allocations: 14.55 kB / 0.7945 GB, free: 5.574 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.007605, allocations: 4 kB / 0.7945 GB, free: 5.57 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 0.0001063/0.007711, allocations: 180.4 kB / 0.7946 GB, free: 5.383 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.299e-05/0.007734, allocations: 23.84 kB / 0.7947 GB, free: 5.359 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.921e-05/0.007774, allocations: 21.45 kB / 0.7947 GB, free: 5.344 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.007776, allocations: 0 / 0.7947 GB, free: 5.344 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.007779, allocations: 1.719 kB / 0.7947 GB, free: 5.344 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.007784, allocations: 4 kB / 0.7947 GB, free: 5.34 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003482/0.008132, allocations: 493 kB / 0.7951 GB, free: 4.824 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.008135, allocations: 3.984 kB / 0.7952 GB, free: 4.82 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.66e-05/0.008172, allocations: 12 kB / 0.7952 GB, free: 4.809 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.008175, allocations: 0.5 kB / 0.7952 GB, free: 4.809 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.008181, allocations: 1.688 kB / 0.7952 GB, free: 4.809 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.008184, allocations: 4 kB / 0.7952 GB, free: 4.805 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.008185, allocations: 288 / 0.7952 GB, free: 4.805 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.008378, allocations: 374.9 kB / 0.7955 GB, free: 4.418 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.504e-05/0.008393, allocations: 19.89 kB / 0.7955 GB, free: 4.398 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.008407, allocations: 4.75 kB / 0.7955 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.579e-05/0.008492, allocations: 12.58 kB / 0.7956 GB, free: 4.383 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.008534, allocations: 13.08 kB / 0.7956 GB, free: 4.371 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.008562, allocations: 11.98 kB / 0.7956 GB, free: 4.359 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.781e-05/0.008629, allocations: 156.1 kB / 0.7957 GB, free: 4.207 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.008629, allocations: 0.6562 kB / 0.7957 GB, free: 4.207 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002468/0.008876, allocations: 35.94 kB / 0.7958 GB, free: 4.172 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.0004312/0.009308, allocations: 208 kB / 0.796 GB, free: 4.004 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001437/0.009451, allocations: 65.66 kB / 0.796 GB, free: 3.938 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.009453, allocations: 4 kB / 0.796 GB, free: 3.934 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.841e-05/0.009502, allocations: 36.72 kB / 0.7961 GB, free: 3.895 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.009784, allocations: 19.98 kB / 0.7961 GB, free: 3.875 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003888/0.01017, allocations: 263.2 kB / 0.7963 GB, free: 3.59 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.734e-05/0.01022, allocations: 67.33 kB / 0.7964 GB, free: 3.504 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.527e-05/0.01027, allocations: 17.64 kB / 0.7964 GB, free: 3.488 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.859e-05/0.01034, allocations: 99.02 kB / 0.7965 GB, free: 3.391 MB / 0.7448 GB Notification: Performance of SimCode: time 6.72e-07/0.01034, allocations: 3.938 kB / 0.7965 GB, free: 3.387 MB / 0.7448 GB Notification: Performance of Templates: time 0.004267/0.01461, allocations: 1.984 MB / 0.7985 GB, free: 1.445 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: 5.006776676047593]