Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001184/0.001184, allocations: 76.55 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.00127/0.00127, allocations: 181.9 kB / 23.22 MB, free: 1.348 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.9019/0.9019, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.747/1.747, allocations: 377.8 MB / 0.6228 GB, free: 8.629 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 0.9822 GB, free: 2.09 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.923e-05/3.084e-05, allocations: 8.891 kB / 0.9822 GB, free: 2.082 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002257/0.002288, allocations: 1.58 MB / 0.9837 GB, free: 0.4922 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.00107/0.003358, allocations: 0.7323 MB / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.518e-05/0.003413, allocations: 4 kB / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.003522, allocations: 15.8 kB / 0.9844 GB, free: 15.73 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 4.542e-05/0.003568, allocations: 19.75 kB / 0.9845 GB, free: 15.71 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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.0004583/0.004026, allocations: 115.6 kB / 0.9846 GB, free: 15.6 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001774/0.004204, allocations: 139.5 kB / 0.9847 GB, free: 15.46 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.00434, allocations: 29.28 kB / 0.9847 GB, free: 15.44 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.004447, allocations: 71.88 kB / 0.9848 GB, free: 15.37 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.361e-05/0.00452, allocations: 51.86 kB / 0.9849 GB, free: 15.32 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.004541, allocations: 12 kB / 0.9849 GB, free: 15.3 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.004654, allocations: 63.77 kB / 0.9849 GB, free: 15.24 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 5.125e-05/0.004705, allocations: 27.91 kB / 0.985 GB, free: 15.21 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.122e-05/0.004756, allocations: 39.91 kB / 0.985 GB, free: 15.18 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.004987, allocations: 187.4 kB / 0.9852 GB, free: 14.99 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.004991, allocations: 4 kB / 0.9852 GB, free: 14.99 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.282e-06/0.004992, allocations: 0 / 0.9852 GB, free: 14.99 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.004997, allocations: 0 / 0.9852 GB, free: 14.99 MB / 0.948 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.0006431/0.00564, allocations: 486.6 kB / 0.9856 GB, free: 14.46 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.005677, allocations: 8.031 kB / 0.9856 GB, free: 14.46 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.203e-05/0.005729, allocations: 20.84 kB / 0.9857 GB, free: 14.44 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.0059, allocations: 165.4 kB / 0.9858 GB, free: 14.25 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.005914, allocations: 12.36 kB / 0.9858 GB, free: 14.24 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.005927, allocations: 4.375 kB / 0.9858 GB, free: 14.23 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.006166, allocations: 129.5 kB / 0.986 GB, free: 14.1 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.006174, allocations: 4.188 kB / 0.986 GB, free: 14.09 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.006188, allocations: 4.375 kB / 0.986 GB, free: 14.09 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.006194, allocations: 3.938 kB / 0.986 GB, free: 14.09 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.006325, allocations: 75.8 kB / 0.9861 GB, free: 14.01 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004494/0.006774, allocations: 376.6 kB / 0.9864 GB, free: 13.61 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.006906, allocations: 89 kB / 0.9865 GB, free: 13.5 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.508e-05/0.006981, allocations: 45.81 kB / 0.9865 GB, free: 13.45 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.007002, allocations: 4 kB / 0.9865 GB, free: 13.45 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002378/0.00724, allocations: 145 kB / 0.9867 GB, free: 13.29 MB / 0.948 GB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.007241, allocations: 0 / 0.9867 GB, free: 13.29 MB / 0.948 GB Notification: Performance of matching and sorting (n=12): time 0.0003629/0.007604, allocations: 189.4 kB / 0.9869 GB, free: 13.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.007647, allocations: 81.11 kB / 0.9869 GB, free: 13 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.886e-05/0.007745, allocations: 171.2 kB / 0.9871 GB, free: 12.82 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.007765, allocations: 33.7 kB / 0.9871 GB, free: 12.79 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.205e-05/0.007817, allocations: 108.3 kB / 0.9872 GB, free: 12.67 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.007854, allocations: 35.73 kB / 0.9873 GB, free: 12.64 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-05/0.007896, allocations: 37.7 kB / 0.9873 GB, free: 12.59 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.105e-05/0.007977, allocations: 326.8 kB / 0.9876 GB, free: 12.27 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.437e-05/0.008052, allocations: 39.97 kB / 0.9877 GB, free: 12.23 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.008182, allocations: 191.4 kB / 0.9878 GB, free: 11.98 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.008349, allocations: 155.5 kB / 0.988 GB, free: 11.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.008352, allocations: 0 / 0.988 GB, free: 11.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002118/0.008563, allocations: 165.5 kB / 0.9881 GB, free: 11.64 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.008577, allocations: 4.109 kB / 0.9881 GB, free: 11.63 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.008582, allocations: 7.938 kB / 0.9882 GB, free: 11.62 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.008597, allocations: 4 kB / 0.9882 GB, free: 11.62 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.507e-05/0.008672, allocations: 15.92 kB / 0.9882 GB, free: 11.61 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.008678, allocations: 4 kB / 0.9882 GB, free: 11.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.575e-05/0.008734, allocations: 15.98 kB / 0.9882 GB, free: 11.59 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-06/0.008743, allocations: 8.234 kB / 0.9882 GB, free: 11.58 MB / 0.948 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 9.474e-05/0.008838, allocations: 154.3 kB / 0.9883 GB, free: 11.42 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.008856, allocations: 19.91 kB / 0.9884 GB, free: 11.4 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.426e-05/0.00889, allocations: 17.45 kB / 0.9884 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.008892, allocations: 0 / 0.9884 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.008897, allocations: 0 / 0.9884 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.008901, allocations: 0 / 0.9884 GB, free: 11.38 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/0.009333, allocations: 477.5 kB / 0.9888 GB, free: 10.88 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.009335, allocations: 0 / 0.9888 GB, free: 10.88 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.925e-05/0.009374, allocations: 15.98 kB / 0.9889 GB, free: 10.86 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.009378, allocations: 4 kB / 0.9889 GB, free: 10.86 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.00939, allocations: 11.98 kB / 0.9889 GB, free: 10.85 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.009392, allocations: 0 / 0.9889 GB, free: 10.85 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.009394, allocations: 4 kB / 0.9889 GB, free: 10.84 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002414/0.009635, allocations: 322.5 kB / 0.9892 GB, free: 10.51 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.326e-05/0.009648, allocations: 11.91 kB / 0.9892 GB, free: 10.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.009664, allocations: 7.984 kB / 0.9892 GB, free: 10.49 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.497e-05/0.009759, allocations: 19.98 kB / 0.9892 GB, free: 10.47 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.029e-05/0.009799, allocations: 11.98 kB / 0.9892 GB, free: 10.46 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/0.009828, allocations: 11.92 kB / 0.9892 GB, free: 10.45 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.769e-05/0.009886, allocations: 119.2 kB / 0.9894 GB, free: 10.33 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.009886, allocations: 0 / 0.9894 GB, free: 10.33 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002391/0.01013, allocations: 35.94 kB / 0.9894 GB, free: 10.3 MB / 0.948 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.0004848/0.01061, allocations: 200.5 kB / 0.9896 GB, free: 10.13 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002291/0.01084, allocations: 108 kB / 0.9897 GB, free: 10.02 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01084, allocations: 0 / 0.9897 GB, free: 10.02 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.938e-05/0.01093, allocations: 51.91 kB / 0.9897 GB, free: 9.973 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.0112, allocations: 15.98 kB / 0.9898 GB, free: 9.957 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004236/0.01162, allocations: 288.7 kB / 0.99 GB, free: 9.637 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.596e-05/0.0117, allocations: 106.6 kB / 0.9901 GB, free: 9.508 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.066e-05/0.01173, allocations: 16.5 kB / 0.9901 GB, free: 9.492 MB / 0.948 GB Notification: Performance of SimCode: time 6.51e-07/0.01173, allocations: 3.938 kB / 0.9901 GB, free: 9.488 MB / 0.948 GB Notification: Performance of Templates: time 0.003059/0.01479, allocations: 2.111 MB / 0.9922 GB, free: 7.379 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 7.097487712278962]