Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001709/0.001709, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002067/0.002067, allocations: 220 kB / 23.01 MB, free: 4.609 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.592/1.592, allocations: 230.6 MB / 256.8 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.872/2.872, allocations: 476.7 MB / 0.7714 GB, free: 4.312 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002164/0.002164, allocations: 70.83 kB / 1.119 GB, free: 40.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4186/0.4208, allocations: 170 MB / 1.285 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003156/0.4239, allocations: 1.634 MB / 1.286 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001546/0.4255, allocations: 0.7498 MB / 1.287 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.474e-05/0.4255, allocations: 4 kB / 1.287 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.4257, allocations: 19.8 kB / 1.287 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.394e-05/0.4257, allocations: 23.8 kB / 1.287 GB, free: 8.848 MB / 0.9825 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.0005774/0.4263, allocations: 111.7 kB / 1.287 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.4265, allocations: 139.5 kB / 1.287 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.4267, allocations: 25.23 kB / 1.287 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.4268, allocations: 67.7 kB / 1.287 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.4269, allocations: 59.77 kB / 1.287 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.933e-05/0.4269, allocations: 12 kB / 1.287 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001364/0.4271, allocations: 51.95 kB / 1.287 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.4272, allocations: 35.84 kB / 1.287 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.76e-05/0.4272, allocations: 59.72 kB / 1.288 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002831/0.4275, allocations: 167.3 kB / 1.288 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4275, allocations: 4 kB / 1.288 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4275, allocations: 0 / 1.288 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.4275, allocations: 0 / 1.288 GB, free: 8.129 MB / 0.9825 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.0009585/0.4285, allocations: 494.5 kB / 1.288 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.4285, allocations: 8.031 kB / 1.288 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.43e-05/0.4286, allocations: 16.84 kB / 1.288 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.4288, allocations: 151.6 kB / 1.288 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.4288, allocations: 8.375 kB / 1.288 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.4289, allocations: 8.375 kB / 1.288 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003436/0.4292, allocations: 143.6 kB / 1.288 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.4292, allocations: 0 / 1.288 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.4292, allocations: 0 / 1.288 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.4293, allocations: 4 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002314/0.4295, allocations: 63.94 kB / 1.289 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007556/0.4302, allocations: 435.8 kB / 1.289 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.4304, allocations: 85.11 kB / 1.289 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.4306, allocations: 49.81 kB / 1.289 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.4306, allocations: 4.109 kB / 1.289 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003687/0.431, allocations: 148.9 kB / 1.289 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 3.576e-06/0.431, allocations: 3.984 kB / 1.289 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005856/0.4316, allocations: 193.4 kB / 1.289 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.4316, allocations: 81.11 kB / 1.289 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.4318, allocations: 171.2 kB / 1.29 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.4318, allocations: 29.7 kB / 1.29 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.758e-05/0.4319, allocations: 112.3 kB / 1.29 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.107e-05/0.4319, allocations: 27.8 kB / 1.29 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.829e-05/0.432, allocations: 45.64 kB / 1.29 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4322, allocations: 326.8 kB / 1.29 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.4323, allocations: 39.95 kB / 1.29 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.4325, allocations: 122.2 kB / 1.29 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.4328, allocations: 139.6 kB / 1.29 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4328, allocations: 0 / 1.29 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000368/0.4332, allocations: 173.3 kB / 1.291 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.4332, allocations: 8 kB / 1.291 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.4332, allocations: 0 / 1.291 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.4332, allocations: 4 kB / 1.291 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.4334, allocations: 15.98 kB / 1.291 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.4334, allocations: 3.938 kB / 1.291 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.4335, allocations: 28.14 kB / 1.291 GB, free: 4.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.4335, allocations: 12 kB / 1.291 GB, free: 4.734 MB / 0.9825 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.0001339/0.4336, allocations: 130.4 kB / 1.291 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.048e-05/0.4337, allocations: 15.91 kB / 1.291 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.648e-05/0.4337, allocations: 21.39 kB / 1.291 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.4337, allocations: 0 / 1.291 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.796e-05/0.4337, allocations: 3.938 kB / 1.291 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.4337, allocations: 3.938 kB / 1.291 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007341/0.4345, allocations: 0.5084 MB / 1.291 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4345, allocations: 0 / 1.291 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.511e-05/0.4345, allocations: 11.98 kB / 1.291 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.4346, allocations: 7.875 kB / 1.291 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.4346, allocations: 8 kB / 1.291 GB, free: 3.961 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.4346, allocations: 0 / 1.291 GB, free: 3.961 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.4346, allocations: 0 / 1.291 GB, free: 3.961 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004325/0.435, allocations: 318.7 kB / 1.292 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.191e-05/0.435, allocations: 11.94 kB / 1.292 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.346e-05/0.435, allocations: 3.938 kB / 1.292 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.4352, allocations: 23.98 kB / 1.292 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.768e-05/0.4353, allocations: 7.984 kB / 1.292 GB, free: 3.586 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.656e-05/0.4353, allocations: 7.984 kB / 1.292 GB, free: 3.578 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.783e-05/0.4354, allocations: 119.2 kB / 1.292 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4354, allocations: 96 / 1.292 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000356/0.4358, allocations: 47.77 kB / 1.292 GB, free: 3.414 MB / 0.9825 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.0005261/0.4363, allocations: 196.5 kB / 1.292 GB, free: 3.246 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003731/0.4367, allocations: 107.8 kB / 1.292 GB, free: 3.141 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.4367, allocations: 4 kB / 1.292 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.4368, allocations: 51.91 kB / 1.292 GB, free: 3.086 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.4372, allocations: 26.47 kB / 1.292 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006604/0.4379, allocations: 285.8 kB / 1.293 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.4382, allocations: 0.7119 MB / 1.293 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.691e-05/0.4383, allocations: 19.53 kB / 1.293 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of SimCode: time 4.5e-07/0.4383, allocations: 0 / 1.293 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of Templates: time 0.004876/0.4432, allocations: 2.053 MB / 1.295 GB, free: 15.95 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 12.148490747000324]