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.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.00167/0.00167, allocations: 113.8 kB / 17.61 MB, free: 4.703 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.00186/0.00186, allocations: 186 kB / 20.78 MB, free: 1.547 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.49/1.49, allocations: 225.6 MB / 249.4 MB, free: 3.191 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.805/2.805, allocations: 476.7 MB / 0.7629 GB, free: 15.15 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_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: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 63.89 kB / 1.107 GB, free: 4.617 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9927/0.9946, allocations: 168.7 MB / 1.272 GB, free: 8.125 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002499/0.9971, allocations: 1.607 MB / 1.274 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001162/0.9983, allocations: 0.718 MB / 1.274 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.029e-05/0.9983, allocations: 1.031 kB / 1.274 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 9.463e-05/0.9984, allocations: 13.64 kB / 1.274 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.811e-05/0.9985, allocations: 16.78 kB / 1.274 GB, free: 6.523 MB / 0.9981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.0003925/0.9988, allocations: 115.8 kB / 1.274 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.999, allocations: 135.3 kB / 1.274 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.9991, allocations: 25.34 kB / 1.274 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.459e-05/0.9992, allocations: 50.53 kB / 1.275 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.231e-05/0.9993, allocations: 69.48 kB / 1.275 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.302e-05/0.9993, allocations: 14.28 kB / 1.275 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.9994, allocations: 48.33 kB / 1.275 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.889e-05/0.9995, allocations: 33.78 kB / 1.275 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.686e-05/0.9995, allocations: 58.25 kB / 1.275 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002128/0.9998, allocations: 169.4 kB / 1.275 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.9998, allocations: 4 kB / 1.275 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.173e-06/0.9998, allocations: 0.9062 kB / 1.275 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.9998, allocations: 0 / 1.275 GB, free: 6.195 MB / 0.9981 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.0007198/1, allocations: 0.5497 MB / 1.275 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/1.001, allocations: 8.969 kB / 1.275 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/1.001, allocations: 17.89 kB / 1.275 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/1.001, allocations: 226.3 kB / 1.276 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/1.001, allocations: 4.719 kB / 1.276 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/1.001, allocations: 10.28 kB / 1.276 GB, free: 5.434 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/1.001, allocations: 133 kB / 1.276 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/1.001, allocations: 0 / 1.276 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/1.001, allocations: 1.969 kB / 1.276 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/1.001, allocations: 9.062 kB / 1.276 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/1.001, allocations: 74.53 kB / 1.276 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005561/1.002, allocations: 460.2 kB / 1.276 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/1.002, allocations: 81.02 kB / 1.276 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/1.002, allocations: 46.27 kB / 1.276 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/1.002, allocations: 3.875 kB / 1.276 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/1.002, allocations: 148.3 kB / 1.277 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/1.002, allocations: 0 / 1.277 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12): time 0.0005524/1.003, allocations: 194.8 kB / 1.277 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/1.003, allocations: 90.47 kB / 1.277 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.985e-05/1.003, allocations: 158.9 kB / 1.277 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/1.003, allocations: 32.42 kB / 1.277 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.782e-05/1.003, allocations: 115 kB / 1.277 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/1.003, allocations: 31.84 kB / 1.277 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.699e-05/1.003, allocations: 33.12 kB / 1.277 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.927e-05/1.003, allocations: 331.3 kB / 1.278 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/1.004, allocations: 36.45 kB / 1.278 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/1.004, allocations: 117.2 kB / 1.278 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002693/1.004, allocations: 151.9 kB / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/1.004, allocations: 4.719 kB / 1.278 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003417/1.004, allocations: 165.4 kB / 1.278 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/1.004, allocations: 6.797 kB / 1.278 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/1.004, allocations: 1.906 kB / 1.278 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/1.004, allocations: 3.297 kB / 1.278 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/1.004, allocations: 19.78 kB / 1.278 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/1.004, allocations: 3.469 kB / 1.278 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.469e-05/1.005, allocations: 19.69 kB / 1.278 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/1.005, allocations: 5.344 kB / 1.278 GB, free: 3.629 MB / 0.9981 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 8.101e-05/1.005, allocations: 145.1 kB / 1.278 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/1.005, allocations: 16.31 kB / 1.278 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.335e-05/1.005, allocations: 17.3 kB / 1.278 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/1.005, allocations: 0.8438 kB / 1.278 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/1.005, allocations: 0.875 kB / 1.278 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/1.005, allocations: 6.828 kB / 1.278 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006096/1.005, allocations: 0.5314 MB / 1.279 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/1.005, allocations: 1 kB / 1.279 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.68e-05/1.005, allocations: 14.34 kB / 1.279 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/1.005, allocations: 4.906 kB / 1.279 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/1.005, allocations: 0.9688 kB / 1.279 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/1.005, allocations: 1.688 kB / 1.279 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/1.005, allocations: 0 / 1.279 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003426/1.006, allocations: 331.2 kB / 1.279 GB, free: 2.773 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.73e-05/1.006, allocations: 91.08 kB / 1.279 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/1.006, allocations: 4.844 kB / 1.279 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/1.006, allocations: 19.2 kB / 1.279 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/1.006, allocations: 8.328 kB / 1.279 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.542e-05/1.006, allocations: 18.02 kB / 1.279 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.412e-05/1.006, allocations: 117.3 kB / 1.279 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5e-08/1.006, allocations: 0.8438 kB / 1.279 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000343/1.006, allocations: 39.86 kB / 1.279 GB, free: 2.562 MB / 0.9981 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.0004357/1.007, allocations: 210.3 kB / 1.28 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000347/1.007, allocations: 104.1 kB / 1.28 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/1.007, allocations: 0 / 1.28 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/1.007, allocations: 56.59 kB / 1.28 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/1.008, allocations: 25.45 kB / 1.28 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005474/1.008, allocations: 267 kB / 1.28 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/1.009, allocations: 0.7106 MB / 1.281 GB, free: 1.484 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.963e-05/1.009, allocations: 21.31 kB / 1.281 GB, free: 1.484 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/1.009, allocations: 14.69 kB / 1.281 GB, free: 1.477 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/1.009, allocations: 4 kB / 1.281 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of Templates: time 0.006495/1.015, allocations: 1.811 MB / 1.283 GB, free: 1.281 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/jenkins/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: 8.885916871018708]