Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005419/0.005419, allocations: 100.2 kB / 15.73 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 199.7 kB / 16.67 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.787/2.787, allocations: 437 MB / 0.7105 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001226, allocations: 59.91 kB / 1.019 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3263, allocations: 151.6 MB / 1.167 GB, free: 6.781 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002818/0.3292, allocations: 1.593 MB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.3306, allocations: 0.6936 MB / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.022e-05/0.3307, allocations: 4 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.3308, allocations: 15.8 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.117e-05/0.3309, allocations: 27.8 kB / 1.169 GB, free: 4.426 MB / 0.92 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.0005063/0.3314, allocations: 107.7 kB / 1.169 GB, free: 4.32 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002019/0.3316, allocations: 135.5 kB / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.3318, allocations: 33.11 kB / 1.169 GB, free: 4.152 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.3319, allocations: 59.77 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.332, allocations: 63.73 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.332, allocations: 8 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.3322, allocations: 55.92 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.503e-05/0.3322, allocations: 31.89 kB / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.714e-05/0.3323, allocations: 59.66 kB / 1.169 GB, free: 3.879 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.3326, allocations: 167.3 kB / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3326, allocations: 3.938 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3326, allocations: 0 / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.3326, allocations: 4 kB / 1.17 GB, free: 3.707 MB / 0.92 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.0008788/0.3335, allocations: 0.5505 MB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3335, allocations: 8.031 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.872e-05/0.3336, allocations: 16.84 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.3338, allocations: 225 kB / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.3339, allocations: 8.375 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.3339, allocations: 8.375 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.3342, allocations: 131.6 kB / 1.17 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3342, allocations: 0 / 1.17 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.3343, allocations: 4 kB / 1.17 GB, free: 2.648 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.3343, allocations: 4 kB / 1.17 GB, free: 2.645 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.3345, allocations: 71.88 kB / 1.171 GB, free: 2.574 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006669/0.3352, allocations: 456.8 kB / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.3354, allocations: 89.11 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.3356, allocations: 45.81 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.3356, allocations: 4 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003024/0.3359, allocations: 149 kB / 1.171 GB, free: 1.75 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.3359, allocations: 0 / 1.171 GB, free: 1.75 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0005809/0.3365, allocations: 185.6 kB / 1.171 GB, free: 1.562 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.3366, allocations: 89.05 kB / 1.172 GB, free: 1.457 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.3367, allocations: 162.4 kB / 1.172 GB, free: 1.289 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/0.3368, allocations: 33.69 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/0.3369, allocations: 108.4 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/0.3369, allocations: 31.78 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.188e-05/0.337, allocations: 37.7 kB / 1.172 GB, free: 1.062 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3371, allocations: 326.8 kB / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.3373, allocations: 39.97 kB / 1.172 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.3374, allocations: 110.3 kB / 1.172 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.3377, allocations: 151.5 kB / 1.172 GB, free: 384 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3377, allocations: 0 / 1.172 GB, free: 384 kB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003471/0.3381, allocations: 165.6 kB / 1.173 GB, free: 212 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.3381, allocations: 8.406 kB / 1.173 GB, free: 204 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.3381, allocations: 7.984 kB / 1.173 GB, free: 196 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.3382, allocations: 4 kB / 1.173 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.3383, allocations: 19.91 kB / 1.173 GB, free: 172 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3383, allocations: 7.938 kB / 1.173 GB, free: 164 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.887e-05/0.3384, allocations: 23.88 kB / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.3384, allocations: 4 kB / 1.173 GB, free: 136 kB / 0.92 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.0001407/0.3386, allocations: 133.9 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.756e-05/0.3386, allocations: 15.95 kB / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.25e-05/0.3387, allocations: 21.39 kB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3387, allocations: 4 kB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3387, allocations: 0 / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3387, allocations: 3.938 kB / 1.173 GB, free: 15.94 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006885/0.3394, allocations: 0.5249 MB / 1.173 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3394, allocations: 11.94 kB / 1.173 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.024e-05/0.3395, allocations: 11.98 kB / 1.173 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.3395, allocations: 7.938 kB / 1.173 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.3395, allocations: 4 kB / 1.173 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3395, allocations: 0 / 1.173 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3395, allocations: 4 kB / 1.173 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004217/0.34, allocations: 322.6 kB / 1.174 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/0.34, allocations: 89.02 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.3401, allocations: 7.938 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.3402, allocations: 15.97 kB / 1.174 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.3403, allocations: 11.98 kB / 1.174 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.672e-05/0.3404, allocations: 8 kB / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.912e-05/0.3404, allocations: 120.2 kB / 1.174 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3405, allocations: 4 kB / 1.174 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003518/0.3408, allocations: 39.92 kB / 1.174 GB, free: 14.68 MB / 0.9356 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.0004451/0.3413, allocations: 208.2 kB / 1.174 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003727/0.3416, allocations: 116 kB / 1.174 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3417, allocations: 0 / 1.174 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.3418, allocations: 51.91 kB / 1.174 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.3422, allocations: 25.48 kB / 1.174 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005142/0.3427, allocations: 247.8 kB / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.3431, allocations: 0.7158 MB / 1.175 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.58e-05/0.3431, allocations: 24.52 kB / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.542e-05/0.3432, allocations: 15.44 kB / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of SimCode: time 2.71e-07/0.3432, allocations: 0 / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of Templates: time 0.00563/0.3488, allocations: 1.789 MB / 1.177 GB, free: 11.5 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches