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.001228/0.001228, allocations: 80.48 kB / 19.93 MB, free: 4.633 MB / 18.57 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.001484/0.001484, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8472/0.8472, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.737/1.737, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.1.|pri1.x.2.",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.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 1.001 GB, free: 13.04 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.479e-05/2.648e-05, allocations: 5.234 kB / 1.001 GB, free: 13.04 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00243/0.002457, allocations: 1.591 MB / 1.002 GB, free: 11.44 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.00122/0.003677, allocations: 0.7254 MB / 1.003 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.807e-05/0.003735, allocations: 3.938 kB / 1.003 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.003842, allocations: 15.8 kB / 1.003 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.444e-05/0.003897, allocations: 15.81 kB / 1.003 GB, free: 10.67 MB / 0.9636 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.0004664/0.004363, allocations: 119.5 kB / 1.003 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.00455, allocations: 135.5 kB / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.004687, allocations: 25.3 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.004808, allocations: 79.73 kB / 1.004 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 8.984e-05/0.004898, allocations: 59.86 kB / 1.004 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.004919, allocations: 8 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 9.249e-05/0.005012, allocations: 55.89 kB / 1.004 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 4.854e-05/0.00506, allocations: 27.91 kB / 1.004 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.458e-05/0.005105, allocations: 43.84 kB / 1.004 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.005309, allocations: 187.4 kB / 1.004 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.584e-06/0.005312, allocations: 0 / 1.004 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.71e-07/0.005312, allocations: 0 / 1.004 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.005317, allocations: 0 / 1.004 GB, free: 9.941 MB / 0.9636 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.0005606/0.005877, allocations: 486.7 kB / 1.004 GB, free: 9.418 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.005911, allocations: 8.75 kB / 1.004 GB, free: 9.41 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.647e-05/0.005958, allocations: 20.84 kB / 1.004 GB, free: 9.391 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.006114, allocations: 161.4 kB / 1.005 GB, free: 9.207 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.006126, allocations: 8.375 kB / 1.005 GB, free: 9.199 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.00614, allocations: 4.375 kB / 1.005 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.006346, allocations: 130.4 kB / 1.005 GB, free: 9.059 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.006354, allocations: 192 / 1.005 GB, free: 9.059 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.00637, allocations: 12.36 kB / 1.005 GB, free: 9.047 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.006376, allocations: 3.938 kB / 1.005 GB, free: 9.043 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.006499, allocations: 67.88 kB / 1.005 GB, free: 8.977 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004056/0.006905, allocations: 380.6 kB / 1.005 GB, free: 8.57 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.007024, allocations: 85.06 kB / 1.005 GB, free: 8.469 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.046e-05/0.007095, allocations: 45.81 kB / 1.005 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.007115, allocations: 4 kB / 1.005 GB, free: 8.414 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001794/0.007294, allocations: 152.9 kB / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=12): time 1.062e-06/0.007295, allocations: 0 / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of matching and sorting (n=12): time 0.0003396/0.007635, allocations: 189.5 kB / 1.006 GB, free: 8.055 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.007675, allocations: 92.97 kB / 1.006 GB, free: 7.945 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.929e-05/0.007774, allocations: 164.5 kB / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.00779, allocations: 29.7 kB / 1.006 GB, free: 7.742 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.719e-05/0.007837, allocations: 104.4 kB / 1.006 GB, free: 7.633 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.041e-05/0.007868, allocations: 39.72 kB / 1.006 GB, free: 7.594 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.876e-05/0.007906, allocations: 33.72 kB / 1.006 GB, free: 7.555 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.239e-05/0.007989, allocations: 330.8 kB / 1.006 GB, free: 7.223 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.621e-05/0.008055, allocations: 35.97 kB / 1.006 GB, free: 7.188 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/0.008326, allocations: 191.4 kB / 1.007 GB, free: 6.945 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.008485, allocations: 151.5 kB / 1.007 GB, free: 6.77 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.008488, allocations: 0 / 1.007 GB, free: 6.77 MB / 0.9636 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001965/0.008684, allocations: 169.4 kB / 1.007 GB, free: 6.598 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.008698, allocations: 5.719 kB / 1.007 GB, free: 6.594 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.008703, allocations: 4 kB / 1.007 GB, free: 6.59 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.008717, allocations: 4 kB / 1.007 GB, free: 6.586 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.907e-05/0.008786, allocations: 15.92 kB / 1.007 GB, free: 6.57 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.008792, allocations: 7.984 kB / 1.007 GB, free: 6.562 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.961e-05/0.008841, allocations: 12 kB / 1.007 GB, free: 6.551 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.008851, allocations: 12.19 kB / 1.007 GB, free: 6.539 MB / 0.9636 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 7.878e-05/0.008929, allocations: 141.6 kB / 1.007 GB, free: 6.391 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.008945, allocations: 15.91 kB / 1.007 GB, free: 6.375 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.669e-05/0.008982, allocations: 21.45 kB / 1.007 GB, free: 6.352 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.008984, allocations: 0 / 1.007 GB, free: 6.352 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.008988, allocations: 0 / 1.007 GB, free: 6.352 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.008991, allocations: 0 / 1.007 GB, free: 6.352 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003811/0.009372, allocations: 477.2 kB / 1.008 GB, free: 5.848 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.009374, allocations: 4 kB / 1.008 GB, free: 5.844 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.305e-05/0.009407, allocations: 15.97 kB / 1.008 GB, free: 5.828 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.009411, allocations: 4 kB / 1.008 GB, free: 5.824 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.00942, allocations: 8 kB / 1.008 GB, free: 5.816 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.009421, allocations: 0 / 1.008 GB, free: 5.816 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.009423, allocations: 4.469 kB / 1.008 GB, free: 5.812 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002203/0.009643, allocations: 318.5 kB / 1.008 GB, free: 5.484 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.156e-05/0.009655, allocations: 11.91 kB / 1.008 GB, free: 5.473 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.00967, allocations: 15.92 kB / 1.008 GB, free: 5.457 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.01e-05/0.00976, allocations: 15.98 kB / 1.008 GB, free: 5.441 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.009802, allocations: 11.98 kB / 1.008 GB, free: 5.43 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.009827, allocations: 11.92 kB / 1.008 GB, free: 5.418 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.423e-05/0.009882, allocations: 123.5 kB / 1.008 GB, free: 5.297 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.009882, allocations: 0 / 1.008 GB, free: 5.297 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002212/0.0101, allocations: 39.89 kB / 1.008 GB, free: 5.258 MB / 0.9636 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.0002863/0.01039, allocations: 195.5 kB / 1.008 GB, free: 5.094 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002041/0.01059, allocations: 111.7 kB / 1.008 GB, free: 4.984 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.0106, allocations: 0 / 1.008 GB, free: 4.984 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.683e-05/0.01068, allocations: 51.91 kB / 1.008 GB, free: 4.934 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.01093, allocations: 25.22 kB / 1.008 GB, free: 4.91 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003764/0.01131, allocations: 293.1 kB / 1.009 GB, free: 4.59 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.927e-05/0.01137, allocations: 102.2 kB / 1.009 GB, free: 4.465 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.661e-05/0.0114, allocations: 16.5 kB / 1.009 GB, free: 4.449 MB / 0.9636 GB Notification: Performance of SimCode: time 5.11e-07/0.0114, allocations: 4 kB / 1.009 GB, free: 4.445 MB / 0.9636 GB Notification: Performance of Templates: time 0.002754/0.01416, allocations: 2.108 MB / 1.011 GB, free: 2.348 MB / 0.9636 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 6.63500140607357]