Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.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.00154/0.00154, allocations: 77.55 kB / 19.76 MB, free: 2.027 MB / 14.72 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.001658/0.001658, allocations: 159.3 kB / 23.01 MB, free: 4.949 MB / 14.72 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.469/1.469, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 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 2.923/2.923, allocations: 394.2 MB / 0.6387 GB, free: 11.92 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.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.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration") translateModel(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002143/0.002143, allocations: 63.91 kB / 1.009 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8539/0.856, allocations: 181.8 MB / 1.187 GB, free: 16.2 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.00188/0.8579, allocations: 0.5998 MB / 1.187 GB, free: 15.84 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0002419/0.8581, allocations: 34.03 kB / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.488e-05/0.8582, allocations: 1.312 kB / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.061e-05/0.8582, allocations: 0 / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 3.294e-05/0.8582, allocations: 2.188 kB / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.8584, allocations: 15.28 kB / 1.187 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 7.259e-05/0.8585, allocations: 7.312 kB / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.377e-05/0.8585, allocations: 1.984 kB / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 1.911e-05/0.8585, allocations: 6.922 kB / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 4.016e-05/0.8586, allocations: 2.094 kB / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.8586, allocations: 3.938 kB / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 7.952e-05/0.8587, allocations: 29.72 kB / 1.187 GB, free: 15.78 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.787e-05/0.8587, allocations: 2.875 kB / 1.187 GB, free: 15.78 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.845e-05/0.8587, allocations: 6.031 kB / 1.187 GB, free: 15.78 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 9.626e-05/0.8588, allocations: 31.52 kB / 1.187 GB, free: 15.77 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.8588, allocations: 0 / 1.187 GB, free: 15.77 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.222e-06/0.8588, allocations: 0 / 1.187 GB, free: 15.77 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.8588, allocations: 0 / 1.187 GB, free: 15.77 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002512/0.8591, allocations: 272.3 kB / 1.188 GB, free: 15.48 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.8591, allocations: 13.69 kB / 1.188 GB, free: 15.47 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.848e-05/0.8592, allocations: 6.734 kB / 1.188 GB, free: 15.47 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.775e-05/0.8592, allocations: 109.4 kB / 1.188 GB, free: 15.34 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.8592, allocations: 1.406 kB / 1.188 GB, free: 15.34 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.8592, allocations: 1.25 kB / 1.188 GB, free: 15.34 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.8594, allocations: 82.69 kB / 1.188 GB, free: 15.27 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.8594, allocations: 192 / 1.188 GB, free: 15.27 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.8594, allocations: 3.938 kB / 1.188 GB, free: 15.27 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.532e-05/0.8594, allocations: 10.45 kB / 1.188 GB, free: 15.27 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.912e-05/0.8595, allocations: 51.58 kB / 1.188 GB, free: 15.23 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002589/0.8597, allocations: 222.2 kB / 1.188 GB, free: 15.01 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 4.624e-05/0.8598, allocations: 45.09 kB / 1.188 GB, free: 14.95 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.895e-05/0.8598, allocations: 32.88 kB / 1.188 GB, free: 14.91 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 8.737e-06/0.8598, allocations: 1.406 kB / 1.188 GB, free: 14.91 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.8598, allocations: 36.75 kB / 1.188 GB, free: 14.87 MB / 1.076 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.8598, allocations: 0 / 1.188 GB, free: 14.87 MB / 1.076 GB Notification: Performance of matching and sorting (n=1): time 0.0001663/0.86, allocations: 123.1 kB / 1.188 GB, free: 14.74 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/0.86, allocations: 79.92 kB / 1.188 GB, free: 14.64 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.75e-05/0.8601, allocations: 116.2 kB / 1.189 GB, free: 14.54 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 7.454e-06/0.8601, allocations: 29.7 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.215e-05/0.8601, allocations: 100.9 kB / 1.189 GB, free: 14.41 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 8.175e-06/0.8602, allocations: 10.64 kB / 1.189 GB, free: 14.4 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.8602, allocations: 21.83 kB / 1.189 GB, free: 14.38 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.103e-05/0.8602, allocations: 322 kB / 1.189 GB, free: 14.06 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.285e-05/0.8603, allocations: 39.05 kB / 1.189 GB, free: 14.02 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.618e-05/0.8603, allocations: 89.98 kB / 1.189 GB, free: 13.92 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.13e-05/0.8604, allocations: 133.2 kB / 1.189 GB, free: 13.78 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.8604, allocations: 1.375 kB / 1.189 GB, free: 13.78 MB / 1.076 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000142/0.8605, allocations: 151.5 kB / 1.189 GB, free: 13.66 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.8606, allocations: 31.94 kB / 1.189 GB, free: 13.62 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.8606, allocations: 2.25 kB / 1.189 GB, free: 13.62 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.8606, allocations: 7.484 kB / 1.189 GB, free: 13.62 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.522e-05/0.8607, allocations: 18.86 kB / 1.189 GB, free: 13.61 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.8607, allocations: 3.359 kB / 1.189 GB, free: 13.61 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.643e-05/0.8607, allocations: 5.375 kB / 1.189 GB, free: 13.61 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.8607, allocations: 5.906 kB / 1.189 GB, free: 13.61 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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 5.802e-05/0.8608, allocations: 147.2 kB / 1.19 GB, free: 13.46 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.8608, allocations: 6.828 kB / 1.19 GB, free: 13.46 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.159e-05/0.8608, allocations: 5.422 kB / 1.19 GB, free: 13.45 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.8608, allocations: 0.6562 kB / 1.19 GB, free: 13.45 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.8608, allocations: 0 / 1.19 GB, free: 13.45 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.8608, allocations: 5.656 kB / 1.19 GB, free: 13.45 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.063e-05/0.8609, allocations: 108.2 kB / 1.19 GB, free: 13.32 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.8609, allocations: 4 kB / 1.19 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.8609, allocations: 0.7031 kB / 1.19 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.8609, allocations: 1.656 kB / 1.19 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.8609, allocations: 0 / 1.19 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.8609, allocations: 6.188 kB / 1.19 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.8609, allocations: 0 / 1.19 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.838e-05/0.861, allocations: 191.4 kB / 1.19 GB, free: 13.11 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 8.636e-06/0.861, allocations: 2.109 kB / 1.19 GB, free: 13.11 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.8611, allocations: 5.125 kB / 1.19 GB, free: 13.11 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.793e-05/0.8611, allocations: 1.828 kB / 1.19 GB, free: 13.11 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.203e-05/0.8611, allocations: 2.141 kB / 1.19 GB, free: 13.11 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.8611, allocations: 1.656 kB / 1.19 GB, free: 13.11 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.136e-05/0.8612, allocations: 95.2 kB / 1.19 GB, free: 13.02 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.8612, allocations: 0 / 1.19 GB, free: 13.02 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002561/0.8614, allocations: 12.98 kB / 1.19 GB, free: 13.02 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001279/0.8615, allocations: 100.6 kB / 1.19 GB, free: 12.93 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001408/0.8617, allocations: 147.1 kB / 1.19 GB, free: 12.79 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.8617, allocations: 1.375 kB / 1.19 GB, free: 12.79 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 2.715e-05/0.8617, allocations: 86.78 kB / 1.19 GB, free: 12.69 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.8619, allocations: 6.688 kB / 1.19 GB, free: 12.69 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002208/0.8622, allocations: 135.6 kB / 1.19 GB, free: 12.55 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.069e-05/0.8622, allocations: 64.19 kB / 1.191 GB, free: 12.48 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 8.553e-05/0.8623, allocations: 11.19 kB / 1.191 GB, free: 12.48 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.497e-05/0.8623, allocations: 14.66 kB / 1.191 GB, free: 12.46 MB / 1.076 GB Notification: Performance of SimCode: time 4.61e-07/0.8623, allocations: 0 / 1.191 GB, free: 12.46 MB / 1.076 GB Notification: Performance of Templates: time 0.003185/0.8655, allocations: 0.5469 MB / 1.191 GB, free: 12.38 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.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.616333664976992]