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.001264/0.001264, allocations: 96.42 kB / 19.7 MB, free: 2.129 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.001437/0.001437, allocations: 214.9 kB / 22.99 MB, free: 4.945 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.436/1.436, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.249/3.249, allocations: 0.49 GB / 0.7959 GB, free: 35.54 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.002053/0.002053, allocations: 66.89 kB / 1.155 GB, free: 25.19 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.34, allocations: 176.1 MB / 1.327 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002888/0.3429, allocations: 1.594 MB / 1.329 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.3444, allocations: 0.7287 MB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.407e-05/0.3444, allocations: 7.938 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 9.996e-05/0.3445, allocations: 7.875 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.907e-05/0.3446, allocations: 27.67 kB / 1.329 GB, free: 14.64 MB / 1.029 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.00047/0.3451, allocations: 107.8 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000207/0.3453, allocations: 143.5 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.3454, allocations: 21.3 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.813e-05/0.3455, allocations: 55.84 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.805e-05/0.3456, allocations: 71.67 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.365e-05/0.3456, allocations: 12 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.3457, allocations: 55.95 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.423e-05/0.3458, allocations: 27.92 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.912e-05/0.3459, allocations: 59.64 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.3461, allocations: 167.3 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3461, allocations: 0 / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3461, allocations: 0 / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.3461, allocations: 0 / 1.33 GB, free: 13.93 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.0008819/0.347, allocations: 494.5 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.3471, allocations: 12.03 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.145e-05/0.3471, allocations: 16.84 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.3473, allocations: 158.3 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.3474, allocations: 4.375 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.266e-05/0.3474, allocations: 8.375 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.3477, allocations: 127.7 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3477, allocations: 0 / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.3477, allocations: 8 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3477, allocations: 3.984 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002464/0.348, allocations: 71.88 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006267/0.3486, allocations: 384.5 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.3488, allocations: 81.12 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.349, allocations: 45.81 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.349, allocations: 4 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003191/0.3493, allocations: 152.9 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.3493, allocations: 0 / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006329/0.3499, allocations: 189.7 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.35, allocations: 81.11 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.3502, allocations: 166.8 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.3502, allocations: 29.8 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.318e-05/0.3503, allocations: 116.2 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.999e-05/0.3503, allocations: 31.78 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.3504, allocations: 29.72 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3505, allocations: 334.8 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.3507, allocations: 39.97 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.3509, allocations: 193.5 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003098/0.3512, allocations: 147.5 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3512, allocations: 0 / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003958/0.3516, allocations: 169.5 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3517, allocations: 8 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.3517, allocations: 0 / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.3517, allocations: 4 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.3518, allocations: 19.92 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.3518, allocations: 4.094 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.3519, allocations: 19.94 kB / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.3519, allocations: 8 kB / 1.333 GB, free: 10.52 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.0001363/0.3521, allocations: 146.5 kB / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.3521, allocations: 19.91 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.778e-05/0.3522, allocations: 25.38 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.3522, allocations: 0 / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3522, allocations: 0 / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3522, allocations: 4 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007601/0.3529, allocations: 477.2 kB / 1.334 GB, free: 9.812 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3529, allocations: 0 / 1.334 GB, free: 9.812 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.429e-05/0.353, allocations: 15.97 kB / 1.334 GB, free: 9.797 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.353, allocations: 8 kB / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.353, allocations: 0 / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.353, allocations: 3.938 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.353, allocations: 4 kB / 1.334 GB, free: 9.781 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004595/0.3535, allocations: 318.6 kB / 1.334 GB, free: 9.453 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.261e-05/0.3535, allocations: 15.89 kB / 1.334 GB, free: 9.438 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.3535, allocations: 7.938 kB / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.3537, allocations: 23.92 kB / 1.334 GB, free: 9.406 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.747e-05/0.3538, allocations: 11.98 kB / 1.334 GB, free: 9.395 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.501e-05/0.3538, allocations: 8.078 kB / 1.334 GB, free: 9.387 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001047/0.3539, allocations: 123.2 kB / 1.334 GB, free: 9.266 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3539, allocations: 0 / 1.334 GB, free: 9.266 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000347/0.3543, allocations: 35.94 kB / 1.334 GB, free: 9.23 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.0004865/0.3548, allocations: 204.4 kB / 1.334 GB, free: 9.059 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003866/0.3551, allocations: 108 kB / 1.335 GB, free: 8.953 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3551, allocations: 0 / 1.335 GB, free: 8.953 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.3553, allocations: 51.91 kB / 1.335 GB, free: 8.902 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003713/0.3557, allocations: 17.39 kB / 1.335 GB, free: 8.887 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005812/0.3563, allocations: 247.6 kB / 1.335 GB, free: 8.617 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.3564, allocations: 106.5 kB / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.164e-05/0.3565, allocations: 24.41 kB / 1.335 GB, free: 8.469 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.101e-05/0.3565, allocations: 19.44 kB / 1.335 GB, free: 8.449 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3565, allocations: 0 / 1.335 GB, free: 8.449 MB / 1.029 GB Notification: Performance of Templates: time 0.005901/0.3624, allocations: 1.893 MB / 1.337 GB, free: 6.582 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 -s cvode -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/jenkins1/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.99901804199908]