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.001406/0.001406, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001491/0.001491, allocations: 213.5 kB / 22.25 MB, free: 5.262 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.661/1.661, allocations: 230.6 MB / 256 MB, free: 7.785 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.338/3.338, allocations: 0.4892 GB / 0.7943 GB, free: 35.61 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.002056/0.002056, allocations: 64.28 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3399, allocations: 176.1 MB / 1.326 GB, free: 1.887 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.004374/0.3442, allocations: 1.575 MB / 1.327 GB, free: 312 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002689/0.3469, allocations: 0.7403 MB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.794e-05/0.347, allocations: 4 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.3471, allocations: 15.8 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.018e-05/0.3472, allocations: 15.8 kB / 1.328 GB, free: 15.52 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.0007584/0.348, allocations: 111.8 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003219/0.3483, allocations: 139.5 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.3485, allocations: 17.31 kB / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.3486, allocations: 59.77 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.3488, allocations: 67.67 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.503e-05/0.3488, allocations: 8 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002021/0.349, allocations: 51.97 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.745e-05/0.3491, allocations: 27.92 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.3492, allocations: 55.7 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004795/0.3497, allocations: 171.3 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3497, allocations: 0 / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3497, allocations: 4 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.3497, allocations: 0 / 1.328 GB, free: 14.82 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.001342/0.3511, allocations: 490.5 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3511, allocations: 8.031 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.92e-05/0.3512, allocations: 16.84 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.3515, allocations: 158.3 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.3515, allocations: 4.375 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.223e-05/0.3516, allocations: 8.375 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.3521, allocations: 135.6 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.3521, allocations: 3.938 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.241e-05/0.3521, allocations: 7.984 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.3521, allocations: 0 / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005124/0.3526, allocations: 67.94 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001066/0.3537, allocations: 388.5 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000385/0.3541, allocations: 85.11 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.3544, allocations: 45.81 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.3544, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005666/0.355, allocations: 149 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 2.374e-06/0.355, allocations: 3.938 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.001034/0.356, allocations: 193.4 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.3561, allocations: 81.11 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003091/0.3564, allocations: 158.8 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.197e-05/0.3565, allocations: 33.7 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.3566, allocations: 116.3 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.265e-05/0.3567, allocations: 27.83 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.3568, allocations: 37.7 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002364/0.357, allocations: 330.8 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.3573, allocations: 35.97 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004419/0.3577, allocations: 202 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006059/0.3583, allocations: 151.5 kB / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3583, allocations: 0 / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007229/0.359, allocations: 169.3 kB / 1.331 GB, free: 11.46 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.3591, allocations: 4 kB / 1.331 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.3591, allocations: 7.984 kB / 1.331 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.3591, allocations: 4 kB / 1.331 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.3593, allocations: 16.27 kB / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.398e-05/0.3593, allocations: 7.938 kB / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001925/0.3595, allocations: 15.98 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.438e-05/0.3595, allocations: 8 kB / 1.332 GB, free: 11.4 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.0002256/0.3597, allocations: 138.2 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.767e-05/0.3598, allocations: 15.89 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.959e-05/0.3599, allocations: 17.41 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3599, allocations: 4 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.3599, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3599, allocations: 4 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/0.3612, allocations: 481.2 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3612, allocations: 0 / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.3613, allocations: 16.39 kB / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.286e-06/0.3613, allocations: 4.281 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.3613, allocations: 0 / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.406e-06/0.3613, allocations: 3.938 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3613, allocations: 3.984 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008409/0.3622, allocations: 342.5 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.509e-05/0.3622, allocations: 11.91 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.3623, allocations: 4 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003466/0.3626, allocations: 23.91 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.3627, allocations: 11.98 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.013e-05/0.3627, allocations: 4 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002436/0.363, allocations: 123.2 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.21e-07/0.363, allocations: 4 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00063/0.3636, allocations: 39.92 kB / 1.333 GB, free: 10.11 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.0006936/0.3643, allocations: 186.4 kB / 1.333 GB, free: 9.949 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006194/0.3649, allocations: 107.8 kB / 1.333 GB, free: 9.844 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3649, allocations: 0 / 1.333 GB, free: 9.844 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002965/0.3652, allocations: 56.45 kB / 1.333 GB, free: 9.789 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006804/0.3659, allocations: 21.39 kB / 1.333 GB, free: 9.77 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008674/0.3668, allocations: 246.2 kB / 1.333 GB, free: 9.504 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001887/0.3669, allocations: 106 kB / 1.333 GB, free: 9.379 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001284/0.3671, allocations: 24.47 kB / 1.333 GB, free: 9.355 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.063e-05/0.3671, allocations: 23.38 kB / 1.333 GB, free: 9.332 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3671, allocations: 0 / 1.333 GB, free: 9.332 MB / 1.029 GB Notification: Performance of Templates: time 0.01003/0.3772, allocations: 1.873 MB / 1.335 GB, free: 7.492 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: 9.29446773789823]