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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 118.7 kB / 17.13 MB, free: 5.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 194.2 kB / 20.08 MB, free: 3.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 225.6 MB / 248.5 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.605/2.605, allocations: 443.5 MB / 0.7293 GB, free: 14.54 MB / 0.5762 GB " [Timeout remaining time 177] 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=2500,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=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 59.91 kB / 1.057 GB, free: 2.035 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3247, allocations: 160.7 MB / 1.214 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003085/0.3278, allocations: 1.597 MB / 1.216 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001518/0.3293, allocations: 0.7177 MB / 1.216 GB, free: 14.67 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.425e-05/0.3294, allocations: 3.938 kB / 1.216 GB, free: 14.67 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.3295, allocations: 7.875 kB / 1.216 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.22e-05/0.3296, allocations: 23.78 kB / 1.216 GB, free: 14.64 MB / 0.9669 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.0005182/0.3301, allocations: 103.7 kB / 1.216 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002281/0.3303, allocations: 139.6 kB / 1.217 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.3305, allocations: 21.12 kB / 1.217 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.3306, allocations: 67.69 kB / 1.217 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.3307, allocations: 59.77 kB / 1.217 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.92e-05/0.3307, allocations: 15.94 kB / 1.217 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001452/0.3308, allocations: 51.95 kB / 1.217 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.196e-05/0.3309, allocations: 27.91 kB / 1.217 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.099e-05/0.331, allocations: 67.64 kB / 1.217 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002761/0.3313, allocations: 171.2 kB / 1.217 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.3313, allocations: 0 / 1.217 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.42e-07/0.3313, allocations: 0 / 1.217 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.3313, allocations: 0 / 1.217 GB, free: 13.92 MB / 0.9669 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.000925/0.3322, allocations: 0.5505 MB / 1.218 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.3322, allocations: 12.03 kB / 1.218 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.278e-05/0.3323, allocations: 20.84 kB / 1.218 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.3326, allocations: 221.1 kB / 1.218 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.3326, allocations: 8.375 kB / 1.218 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.653e-05/0.3326, allocations: 8.375 kB / 1.218 GB, free: 13 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.333, allocations: 135.6 kB / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.333, allocations: 0 / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.333, allocations: 4 kB / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.333, allocations: 0 / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002575/0.3333, allocations: 67.94 kB / 1.218 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006805/0.3339, allocations: 464.8 kB / 1.218 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.3342, allocations: 81.17 kB / 1.219 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.3343, allocations: 45.75 kB / 1.219 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.3343, allocations: 7.984 kB / 1.219 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003132/0.3346, allocations: 145.1 kB / 1.219 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.3346, allocations: 0 / 1.219 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.000617/0.3352, allocations: 193.4 kB / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.3353, allocations: 77.11 kB / 1.219 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.3355, allocations: 166.9 kB / 1.219 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.3355, allocations: 33.69 kB / 1.219 GB, free: 11.46 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.247e-05/0.3356, allocations: 116.3 kB / 1.219 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.104e-05/0.3356, allocations: 27.8 kB / 1.219 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.327e-05/0.3357, allocations: 37.7 kB / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3358, allocations: 326.8 kB / 1.22 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.336, allocations: 36.34 kB / 1.22 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.3362, allocations: 122.2 kB / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.3365, allocations: 151.5 kB / 1.22 GB, free: 10.58 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3365, allocations: 0 / 1.22 GB, free: 10.58 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000393/0.3369, allocations: 165.3 kB / 1.22 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.3369, allocations: 8.281 kB / 1.22 GB, free: 10.4 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.3369, allocations: 4 kB / 1.22 GB, free: 10.4 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.337, allocations: 4 kB / 1.22 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.3371, allocations: 19.97 kB / 1.22 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.3371, allocations: 0 / 1.22 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.3372, allocations: 27.83 kB / 1.22 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.3372, allocations: 7.984 kB / 1.22 GB, free: 10.34 MB / 0.9669 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.0001338/0.3373, allocations: 129.8 kB / 1.22 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.3373, allocations: 15.91 kB / 1.22 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.22e-05/0.3374, allocations: 25.39 kB / 1.22 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3374, allocations: 0 / 1.22 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3374, allocations: 0 / 1.22 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3374, allocations: 7.938 kB / 1.22 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007587/0.3382, allocations: 0.5249 MB / 1.221 GB, free: 9.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3382, allocations: 0 / 1.221 GB, free: 9.57 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.034e-05/0.3383, allocations: 19.98 kB / 1.221 GB, free: 9.551 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.3383, allocations: 3.938 kB / 1.221 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.3383, allocations: 4 kB / 1.221 GB, free: 9.543 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.3383, allocations: 11.92 kB / 1.221 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3383, allocations: 0 / 1.221 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004512/0.3387, allocations: 322.7 kB / 1.221 GB, free: 9.199 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.3388, allocations: 89.02 kB / 1.221 GB, free: 9.094 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.3388, allocations: 3.938 kB / 1.221 GB, free: 9.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.339, allocations: 19.97 kB / 1.221 GB, free: 9.07 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.828e-05/0.339, allocations: 8 kB / 1.221 GB, free: 9.062 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.3391, allocations: 7.984 kB / 1.221 GB, free: 9.055 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.184e-05/0.3392, allocations: 120.2 kB / 1.221 GB, free: 8.938 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3392, allocations: 4 kB / 1.221 GB, free: 8.934 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0005162/0.3397, allocations: 39.92 kB / 1.221 GB, free: 8.895 MB / 0.9669 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.000608/0.3403, allocations: 217.3 kB / 1.222 GB, free: 8.719 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003808/0.3407, allocations: 108.2 kB / 1.222 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3407, allocations: 4.188 kB / 1.222 GB, free: 8.609 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.3408, allocations: 51.91 kB / 1.222 GB, free: 8.559 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.3412, allocations: 19.98 kB / 1.222 GB, free: 8.539 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005319/0.3417, allocations: 269.1 kB / 1.222 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.3421, allocations: 0.7196 MB / 1.223 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.187e-05/0.3421, allocations: 19.44 kB / 1.223 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of SimCode: time 4.81e-07/0.3421, allocations: 0 / 1.223 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of Templates: time 0.004653/0.3468, allocations: 2.073 MB / 1.225 GB, free: 5.406 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (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=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 10.962513861944899]