Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001072/0.001072, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001534/0.002606, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001186/0.001186, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00143/0.002616, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.074/1.074, allocations: 177.1 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09/1.164, allocations: 53.67 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.365/2.365, allocations: 446.7 MB / 0.6745 GB, free: 6.199 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2447/2.61, allocations: 145.9 MB / 0.817 GB, free: 4.203 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 0.8183 GB, free: 2.918 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.179e-05/1.31e-05, allocations: 4.422 kB / 0.8183 GB, free: 2.914 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001778/0.001791, allocations: 1.681 MB / 0.8199 GB, free: 1.215 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0008592/0.002651, allocations: 0.771 MB / 0.8207 GB, free: 448 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.334e-05/0.002694, allocations: 3.938 kB / 0.8207 GB, free: 444 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 5.007e-05/0.002744, allocations: 11.86 kB / 0.8207 GB, free: 432 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 3.361e-05/0.002778, allocations: 23.75 kB / 0.8207 GB, free: 408 kB / 0.7917 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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.0002813/0.003059, allocations: 107.7 kB / 0.8208 GB, free: 300 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0001491/0.003208, allocations: 139.5 kB / 0.8209 GB, free: 160 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 9.442e-05/0.003302, allocations: 25.83 kB / 0.821 GB, free: 136 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.00342, allocations: 95.66 kB / 0.8211 GB, free: 40 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 8.184e-05/0.003502, allocations: 55.86 kB / 0.8211 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.00352, allocations: 8 kB / 0.8211 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.003623, allocations: 47.91 kB / 0.8212 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 4.198e-05/0.003665, allocations: 31.86 kB / 0.8212 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.908e-05/0.003704, allocations: 35.94 kB / 0.8212 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.003865, allocations: 127.6 kB / 0.8214 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.163e-05/0.003877, allocations: 0 / 0.8214 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.62e-07/0.003878, allocations: 0 / 0.8214 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.003889, allocations: 0 / 0.8214 GB, free: 15.74 MB / 0.8073 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.0005238/0.004413, allocations: 484.8 kB / 0.8218 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.004444, allocations: 12.62 kB / 0.8218 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.896e-05/0.004483, allocations: 20.92 kB / 0.8218 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.004619, allocations: 149.5 kB / 0.822 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.115e-06/0.004627, allocations: 4.375 kB / 0.822 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.004644, allocations: 20.3 kB / 0.822 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.004788, allocations: 103.4 kB / 0.8221 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.004795, allocations: 192 / 0.8221 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.004804, allocations: 4.375 kB / 0.8221 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.004809, allocations: 3.938 kB / 0.8221 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.803e-05/0.004837, allocations: 15.98 kB / 0.8221 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005781/0.005415, allocations: 303 kB / 0.8224 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.883e-05/0.005474, allocations: 49.16 kB / 0.8225 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.498e-05/0.005499, allocations: 21.7 kB / 0.8225 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.00552, allocations: 7.938 kB / 0.8225 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001138/0.005633, allocations: 103.9 kB / 0.8226 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=12): time 9.82e-07/0.005634, allocations: 0 / 0.8226 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12): time 0.000139/0.005773, allocations: 85.59 kB / 0.8227 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.00581, allocations: 85.11 kB / 0.8228 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.687e-05/0.005887, allocations: 166.5 kB / 0.8229 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.005903, allocations: 25.7 kB / 0.8229 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.736e-05/0.005941, allocations: 104.4 kB / 0.823 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.005967, allocations: 31.8 kB / 0.8231 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-05/0.006006, allocations: 37.69 kB / 0.8231 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.878e-05/0.006075, allocations: 326.8 kB / 0.8234 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.478e-05/0.00609, allocations: 11.94 kB / 0.8234 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.987e-05/0.00618, allocations: 224.8 kB / 0.8236 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.839e-05/0.006248, allocations: 97.52 kB / 0.8237 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.00625, allocations: 0 / 0.8237 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15) (initialization): time 8.938e-05/0.00634, allocations: 101.7 kB / 0.8238 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.006351, allocations: 7.938 kB / 0.8238 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.006355, allocations: 0 / 0.8238 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.254e-06/0.006363, allocations: 4.062 kB / 0.8238 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.535e-05/0.006428, allocations: 19.98 kB / 0.8239 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/0.006431, allocations: 0 / 0.8239 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.349e-05/0.006474, allocations: 12 kB / 0.8239 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.006491, allocations: 4 kB / 0.8239 GB, free: 12.84 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 6.932e-05/0.00656, allocations: 132.6 kB / 0.824 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.716e-05/0.006577, allocations: 19.92 kB / 0.824 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.058e-05/0.006608, allocations: 17.53 kB / 0.824 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.006611, allocations: 3.984 kB / 0.824 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.006613, allocations: 0 / 0.824 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.006617, allocations: 4.188 kB / 0.8241 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.006857, allocations: 345.8 kB / 0.8244 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.006858, allocations: 0 / 0.8244 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.152e-05/0.006889, allocations: 11.98 kB / 0.8244 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.288e-05/0.006902, allocations: 15.84 kB / 0.8244 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.006904, allocations: 4 kB / 0.8244 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.006911, allocations: 7.984 kB / 0.8244 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.006913, allocations: 4 kB / 0.8244 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.006913, allocations: 0 / 0.8244 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001145/0.007028, allocations: 266.5 kB / 0.8247 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.007041, allocations: 4 kB / 0.8247 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.603e-05/0.007117, allocations: 11.98 kB / 0.8247 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.633e-05/0.007143, allocations: 11.98 kB / 0.8247 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.007157, allocations: 7.984 kB / 0.8247 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.934e-05/0.007187, allocations: 41.83 kB / 0.8248 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007187, allocations: 0 / 0.8248 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001964/0.007383, allocations: 47.92 kB / 0.8248 GB, free: 11.84 MB / 0.8073 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.0003759/0.007759, allocations: 226.1 kB / 0.825 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.593e-05/0.007855, allocations: 48.78 kB / 0.8251 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/0.007862, allocations: 4 kB / 0.8251 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.561e-05/0.007898, allocations: 36.72 kB / 0.8251 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.008093, allocations: 31.91 kB / 0.8251 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004482/0.008541, allocations: 261.2 kB / 0.8254 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.123e-05/0.008582, allocations: 71.83 kB / 0.8254 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.823e-05/0.008621, allocations: 16.48 kB / 0.8255 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.591e-05/0.008687, allocations: 75.34 kB / 0.8255 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of SimCode: time 4.01e-07/0.008687, allocations: 0 / 0.8255 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of Templates: time 0.003643/0.01233, allocations: 2.037 MB / 0.8275 GB, free: 9.086 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.249877328053117]