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.002008/0.002008, allocations: 110 kB / 18.93 MB, free: 2.945 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.002343/0.002343, allocations: 190.8 kB / 22.23 MB, free: 5.16 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.553/1.553, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.64/2.64, allocations: 443.5 MB / 0.7321 GB, free: 12.28 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-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.00202/0.00202, allocations: 71.89 kB / 1.061 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7774/0.7794, allocations: 160.8 MB / 1.218 GB, free: 3.688 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00344/0.7828, allocations: 1.613 MB / 1.22 GB, free: 2.426 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.7844, allocations: 0.7124 MB / 1.221 GB, free: 1.879 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.119e-05/0.7845, allocations: 9.156 kB / 1.221 GB, free: 1.871 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.7846, allocations: 7.875 kB / 1.221 GB, free: 1.863 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.281e-05/0.7847, allocations: 23.14 kB / 1.221 GB, free: 1.844 MB / 0.92 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-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.0004852/0.7852, allocations: 112.6 kB / 1.221 GB, free: 1.762 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002143/0.7854, allocations: 135.6 kB / 1.221 GB, free: 1.684 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.7855, allocations: 25.78 kB / 1.221 GB, free: 1.668 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.938e-05/0.7856, allocations: 54.56 kB / 1.221 GB, free: 1.637 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.7858, allocations: 71.33 kB / 1.221 GB, free: 1.586 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.125e-05/0.7858, allocations: 13.91 kB / 1.221 GB, free: 1.582 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.7859, allocations: 49.59 kB / 1.221 GB, free: 1.562 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.289e-05/0.786, allocations: 32.38 kB / 1.221 GB, free: 1.539 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.61e-05/0.7861, allocations: 58.22 kB / 1.221 GB, free: 1.496 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.7864, allocations: 175.2 kB / 1.221 GB, free: 1.379 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.7864, allocations: 0 / 1.221 GB, free: 1.379 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.413e-06/0.7864, allocations: 0 / 1.221 GB, free: 1.379 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.7864, allocations: 1.156 kB / 1.221 GB, free: 1.379 MB / 0.92 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.001021/0.7874, allocations: 0.5501 MB / 1.222 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.7875, allocations: 9.312 kB / 1.222 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.292e-05/0.7875, allocations: 17.41 kB / 1.222 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002599/0.7878, allocations: 224 kB / 1.222 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.7878, allocations: 8.719 kB / 1.222 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.765e-05/0.7878, allocations: 5.688 kB / 1.222 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.7882, allocations: 143.3 kB / 1.222 GB, free: 480 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.7882, allocations: 1.281 kB / 1.222 GB, free: 480 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.7882, allocations: 3.938 kB / 1.222 GB, free: 476 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.7882, allocations: 2.094 kB / 1.222 GB, free: 476 kB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002384/0.7884, allocations: 65.53 kB / 1.222 GB, free: 448 kB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007383/0.7892, allocations: 461.9 kB / 1.223 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.7894, allocations: 81.14 kB / 1.223 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.7895, allocations: 49.25 kB / 1.223 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.7895, allocations: 1.062 kB / 1.223 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003642/0.7899, allocations: 152.1 kB / 1.223 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.7899, allocations: 0.75 kB / 1.223 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0005721/0.7905, allocations: 185.6 kB / 1.223 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/0.7905, allocations: 79.8 kB / 1.223 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.7907, allocations: 162.1 kB / 1.224 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.7907, allocations: 32.81 kB / 1.224 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.7908, allocations: 119.4 kB / 1.224 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/0.7909, allocations: 24.25 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.157e-05/0.7909, allocations: 38.45 kB / 1.224 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.7911, allocations: 326.7 kB / 1.224 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.7912, allocations: 36.22 kB / 1.224 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.7914, allocations: 124.6 kB / 1.224 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/0.7917, allocations: 148.3 kB / 1.224 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7917, allocations: 1.375 kB / 1.224 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003602/0.792, allocations: 168.9 kB / 1.225 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.7921, allocations: 5.5 kB / 1.225 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.7921, allocations: 2.094 kB / 1.225 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.7921, allocations: 3.766 kB / 1.225 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.7922, allocations: 26.28 kB / 1.225 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/0.7922, allocations: 2.969 kB / 1.225 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.7923, allocations: 24.38 kB / 1.225 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.7923, allocations: 5.375 kB / 1.225 GB, free: 14.52 MB / 0.9356 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.000141/0.7925, allocations: 138 kB / 1.225 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.7925, allocations: 10.55 kB / 1.225 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.425e-05/0.7926, allocations: 21.77 kB / 1.225 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.7926, allocations: 6.219 kB / 1.225 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.7926, allocations: 4.688 kB / 1.225 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.7926, allocations: 4.688 kB / 1.225 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007551/0.7933, allocations: 0.5244 MB / 1.225 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.7933, allocations: 1.219 kB / 1.225 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.656e-05/0.7934, allocations: 20.98 kB / 1.225 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.7934, allocations: 9.125 kB / 1.225 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.7934, allocations: 0.75 kB / 1.225 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.7934, allocations: 1.75 kB / 1.225 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.7934, allocations: 0 / 1.225 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004419/0.7939, allocations: 325.5 kB / 1.226 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.254e-05/0.794, allocations: 96.98 kB / 1.226 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.794, allocations: 6.062 kB / 1.226 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.7942, allocations: 21.62 kB / 1.226 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.7942, allocations: 15.08 kB / 1.226 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.7942, allocations: 6.5 kB / 1.226 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.623e-05/0.7943, allocations: 123.5 kB / 1.226 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.7943, allocations: 0 / 1.226 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003603/0.7947, allocations: 40.2 kB / 1.226 GB, free: 13.33 MB / 0.9356 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.0005289/0.7952, allocations: 217.3 kB / 1.226 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003691/0.7956, allocations: 105.1 kB / 1.226 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.7956, allocations: 0.5625 kB / 1.226 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.7958, allocations: 57.52 kB / 1.226 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003881/0.7962, allocations: 20.7 kB / 1.226 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005523/0.7967, allocations: 254.1 kB / 1.227 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.7971, allocations: 0.7104 MB / 1.227 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.718e-05/0.7971, allocations: 22.22 kB / 1.227 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.7972, allocations: 14.41 kB / 1.227 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of SimCode: time 3.11e-07/0.7972, allocations: 7.875 kB / 1.227 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of Templates: time 0.005583/0.8028, allocations: 1.834 MB / 1.229 GB, free: 11.25 MB / 0.9356 GB " [Timeout remaining time 299] 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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.728955812752247]