Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001309/0.001309, allocations: 108 kB / 16.45 MB, free: 6.508 MB / 14.72 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.001391/0.001391, allocations: 213.7 kB / 19.43 MB, free: 3.648 MB / 14.72 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 1.446/1.446, allocations: 230.6 MB / 252.8 MB, free: 9.113 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.309/3.309, allocations: 0.4899 GB / 0.7915 GB, free: 33.18 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.1.|pri1.x.2.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 65.28 kB / 1.149 GB, free: 26.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.345, allocations: 176.1 MB / 1.321 GB, free: 2.863 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003495/0.3485, allocations: 1.603 MB / 1.323 GB, free: 1.25 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.3501, allocations: 0.7713 MB / 1.324 GB, free: 484 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.557e-05/0.3501, allocations: 0 / 1.324 GB, free: 484 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.3502, allocations: 19.81 kB / 1.324 GB, free: 464 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.986e-05/0.3503, allocations: 19.78 kB / 1.324 GB, free: 444 kB / 1.014 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.0004941/0.3508, allocations: 103.8 kB / 1.324 GB, free: 340 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.351, allocations: 143.5 kB / 1.324 GB, free: 196 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.3512, allocations: 25.11 kB / 1.324 GB, free: 168 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.3513, allocations: 59.7 kB / 1.324 GB, free: 108 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.3514, allocations: 67.75 kB / 1.324 GB, free: 40 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.3514, allocations: 12 kB / 1.324 GB, free: 28 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.3515, allocations: 51.95 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.959e-05/0.3516, allocations: 27.91 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.834e-05/0.3517, allocations: 63.66 kB / 1.324 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.3519, allocations: 179.2 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3519, allocations: 0 / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3519, allocations: 0 / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.352, allocations: 0 / 1.324 GB, free: 15.71 MB / 1.029 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.000942/0.3529, allocations: 0.5505 MB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3529, allocations: 11.98 kB / 1.325 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.839e-05/0.353, allocations: 16.84 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002411/0.3532, allocations: 220.1 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.3532, allocations: 4.375 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/0.3533, allocations: 16.38 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.3536, allocations: 135.6 kB / 1.325 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3536, allocations: 0 / 1.325 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.3536, allocations: 0 / 1.325 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3536, allocations: 4 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.3539, allocations: 63.94 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007002/0.3546, allocations: 468.7 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.3548, allocations: 89.11 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.355, allocations: 41.81 kB / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.355, allocations: 4 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003003/0.3553, allocations: 145.1 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.3553, allocations: 0 / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006189/0.3559, allocations: 197.3 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.356, allocations: 77.11 kB / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.3561, allocations: 166.4 kB / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.3562, allocations: 37.7 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.932e-05/0.3562, allocations: 112.3 kB / 1.327 GB, free: 13.13 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.814e-05/0.3563, allocations: 27.84 kB / 1.327 GB, free: 13.1 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.03e-05/0.3563, allocations: 33.7 kB / 1.327 GB, free: 13.06 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3565, allocations: 330.8 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.3566, allocations: 35.97 kB / 1.327 GB, free: 12.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.3569, allocations: 122.2 kB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003246/0.3572, allocations: 147.5 kB / 1.327 GB, free: 12.37 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3572, allocations: 4 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004042/0.3576, allocations: 161.3 kB / 1.327 GB, free: 12.2 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3576, allocations: 8 kB / 1.327 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3576, allocations: 288 / 1.327 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.3576, allocations: 8 kB / 1.327 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.3577, allocations: 15.98 kB / 1.327 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3577, allocations: 3.938 kB / 1.327 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.3579, allocations: 23.92 kB / 1.327 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.3579, allocations: 4 kB / 1.327 GB, free: 12.14 MB / 1.029 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.0001426/0.358, allocations: 133.8 kB / 1.328 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.358, allocations: 19.91 kB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.154e-05/0.3581, allocations: 17.39 kB / 1.328 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.3581, allocations: 4 kB / 1.328 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3581, allocations: 0 / 1.328 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.3581, allocations: 7.938 kB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007758/0.3589, allocations: 0.5249 MB / 1.328 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3589, allocations: 4.469 kB / 1.328 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.304e-05/0.359, allocations: 19.92 kB / 1.328 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.359, allocations: 11.88 kB / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.359, allocations: 4 kB / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.359, allocations: 0 / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.359, allocations: 3.938 kB / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004633/0.3595, allocations: 326.7 kB / 1.328 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.3595, allocations: 89.02 kB / 1.329 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.3595, allocations: 3.938 kB / 1.329 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.3597, allocations: 24.25 kB / 1.329 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.3598, allocations: 4 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.364e-05/0.3598, allocations: 7.984 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.017e-05/0.3599, allocations: 119.2 kB / 1.329 GB, free: 10.72 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3599, allocations: 0 / 1.329 GB, free: 10.72 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003592/0.3603, allocations: 43.92 kB / 1.329 GB, free: 10.68 MB / 1.029 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.0004666/0.3607, allocations: 202.8 kB / 1.329 GB, free: 10.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003909/0.3611, allocations: 103.8 kB / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3611, allocations: 0 / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.3613, allocations: 52.45 kB / 1.329 GB, free: 10.35 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.3617, allocations: 27.98 kB / 1.329 GB, free: 10.32 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005638/0.3622, allocations: 247.5 kB / 1.329 GB, free: 10.05 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.3626, allocations: 0.7156 MB / 1.33 GB, free: 9.312 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.765e-05/0.3627, allocations: 24.53 kB / 1.33 GB, free: 9.289 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.63e-05/0.3627, allocations: 15.44 kB / 1.33 GB, free: 9.273 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3627, allocations: 0 / 1.33 GB, free: 9.273 MB / 1.029 GB Notification: Performance of Templates: time 0.00804/0.3708, allocations: 1.779 MB / 1.332 GB, free: 7.512 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.86606863886118]