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.00184/0.00184, allocations: 93.47 kB / 19.44 MB, free: 332 kB / 13.93 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.002033/0.002033, allocations: 169.2 kB / 22.76 MB, free: 1.66 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 1.55/1.55, allocations: 177.1 MB / 203.1 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] 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 3.375/3.375, allocations: 429.5 MB / 0.6729 GB, free: 4.004 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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.312e-06/1.312e-06, allocations: 0 / 0.8774 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.309e-05/3.44e-05, allocations: 2.312 kB / 0.8774 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003233/0.003267, allocations: 1.623 MB / 0.879 GB, free: 5.07 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00157/0.004837, allocations: 0.7382 MB / 0.8797 GB, free: 4.332 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.917e-05/0.004886, allocations: 4 kB / 0.8797 GB, free: 4.328 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.005007, allocations: 11.81 kB / 0.8797 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.92e-05/0.005066, allocations: 20.89 kB / 0.8798 GB, free: 4.297 MB / 0.8386 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.00046/0.005526, allocations: 115.5 kB / 0.8799 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002281/0.005754, allocations: 140.1 kB / 0.88 GB, free: 4.047 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.005875, allocations: 23.45 kB / 0.88 GB, free: 4.027 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001567/0.006031, allocations: 75.86 kB / 0.8801 GB, free: 3.953 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.006136, allocations: 55.8 kB / 0.8801 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.194e-05/0.006168, allocations: 12 kB / 0.8802 GB, free: 3.887 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.006305, allocations: 51.89 kB / 0.8802 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.977e-05/0.006365, allocations: 27.91 kB / 0.8802 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.129e-05/0.006436, allocations: 43.25 kB / 0.8803 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.00675, allocations: 187.4 kB / 0.8805 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.006754, allocations: 0 / 0.8805 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.92e-07/0.006755, allocations: 7.938 kB / 0.8805 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.00676, allocations: 0 / 0.8805 GB, free: 3.578 MB / 0.8386 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.001006/0.007766, allocations: 0.5679 MB / 0.881 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.007806, allocations: 13.09 kB / 0.881 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.552e-05/0.007881, allocations: 20.84 kB / 0.881 GB, free: 2.926 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.008168, allocations: 169 kB / 0.8812 GB, free: 2.734 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.008189, allocations: 13.5 kB / 0.8812 GB, free: 2.723 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.294e-05/0.008212, allocations: 8.375 kB / 0.8812 GB, free: 2.715 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.008516, allocations: 113.6 kB / 0.8813 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.00853, allocations: 5.156 kB / 0.8813 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.008548, allocations: 4.375 kB / 0.8813 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.008555, allocations: 3.938 kB / 0.8814 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.008743, allocations: 48.09 kB / 0.8814 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000763/0.009506, allocations: 494.5 kB / 0.8819 GB, free: 2.012 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.009716, allocations: 94.11 kB / 0.882 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.009849, allocations: 39.48 kB / 0.882 GB, free: 1.848 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.009878, allocations: 3.938 kB / 0.882 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003139/0.01019, allocations: 141 kB / 0.8821 GB, free: 1.684 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.01019, allocations: 1.062 kB / 0.8821 GB, free: 1.684 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0005503/0.01074, allocations: 170.3 kB / 0.8823 GB, free: 1.512 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.22e-05/0.01083, allocations: 77.11 kB / 0.8824 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002471/0.01107, allocations: 248.9 kB / 0.8826 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.0111, allocations: 25.7 kB / 0.8826 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.01123, allocations: 163.1 kB / 0.8828 GB, free: 0.9609 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.107e-05/0.01127, allocations: 31.89 kB / 0.8828 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.041e-05/0.01135, allocations: 48.3 kB / 0.8829 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000284/0.01164, allocations: 0.5001 MB / 0.8834 GB, free: 372 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.01175, allocations: 24.7 kB / 0.8834 GB, free: 348 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002732/0.01202, allocations: 227.9 kB / 0.8836 GB, free: 52 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.01233, allocations: 161 kB / 0.8837 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.01233, allocations: 4 kB / 0.8838 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003359/0.01267, allocations: 153.4 kB / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.01269, allocations: 8 kB / 0.8839 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.0127, allocations: 0 / 0.8839 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.01272, allocations: 4 kB / 0.8839 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.01282, allocations: 15.98 kB / 0.8839 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.01283, allocations: 12.22 kB / 0.8839 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.492e-05/0.01292, allocations: 12 kB / 0.8839 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.01293, allocations: 4 kB / 0.884 GB, free: 15.64 MB / 0.8542 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.0001678/0.0131, allocations: 184.7 kB / 0.8841 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.125e-05/0.01314, allocations: 23.89 kB / 0.8841 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.087e-05/0.01319, allocations: 13.47 kB / 0.8842 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.0132, allocations: 4 kB / 0.8842 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.0132, allocations: 7.922 kB / 0.8842 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.01321, allocations: 0 / 0.8842 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008077/0.01401, allocations: 0.559 MB / 0.8847 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.01402, allocations: 0 / 0.8847 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.189e-05/0.01409, allocations: 19.92 kB / 0.8847 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.01409, allocations: 4 kB / 0.8847 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.01411, allocations: 0 / 0.8847 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.01411, allocations: 0 / 0.8847 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.01411, allocations: 0 / 0.8847 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005929/0.0147, allocations: 410.9 kB / 0.8851 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.122e-05/0.01473, allocations: 15.91 kB / 0.8851 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.01476, allocations: 0 / 0.8851 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.01493, allocations: 15.98 kB / 0.8852 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.972e-05/0.01502, allocations: 15.92 kB / 0.8852 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.966e-05/0.01508, allocations: 15.92 kB / 0.8852 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001786/0.01525, allocations: 163.2 kB / 0.8854 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01525, allocations: 0 / 0.8854 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005021/0.01576, allocations: 39.94 kB / 0.8854 GB, free: 14.09 MB / 0.8542 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.001041/0.0168, allocations: 206.2 kB / 0.8856 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001137/0.01793, allocations: 99.77 kB / 0.8857 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.01794, allocations: 7.938 kB / 0.8857 GB, free: 13.8 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.01812, allocations: 55.59 kB / 0.8857 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004807/0.0186, allocations: 22.17 kB / 0.8858 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009416/0.01954, allocations: 254.4 kB / 0.886 GB, free: 13.45 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.01973, allocations: 110.4 kB / 0.8861 GB, free: 13.32 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.705e-05/0.01983, allocations: 24.41 kB / 0.8861 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.632e-05/0.01989, allocations: 16.5 kB / 0.8861 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of SimCode: time 1.283e-06/0.01989, allocations: 0 / 0.8861 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of Templates: time 0.006687/0.02657, allocations: 1.796 MB / 0.8879 GB, free: 11.53 MB / 0.8542 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 -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","/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: 8.502152063068934]