Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 113 kB / 17.6 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 186.8 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 225.6 MB / 249.4 MB, free: 3.121 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.753/2.753, allocations: 476.7 MB / 0.7628 GB, free: 15.17 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 63.91 kB / 1.107 GB, free: 4.594 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9664/0.9684, allocations: 168.7 MB / 1.272 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003232/0.9716, allocations: 1.846 MB / 1.274 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008747/0.9725, allocations: 0.54 MB / 1.274 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.473e-05/0.9726, allocations: 2.25 kB / 1.274 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.9727, allocations: 26.94 kB / 1.274 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.233e-05/0.9728, allocations: 29.48 kB / 1.274 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.9731, allocations: 73.66 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002736/0.9734, allocations: 174.2 kB / 1.275 GB, free: 6.094 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.9735, allocations: 39.09 kB / 1.275 GB, free: 6.074 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.132e-05/0.9736, allocations: 55.03 kB / 1.275 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.445e-05/0.9737, allocations: 57.52 kB / 1.275 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.131e-05/0.9737, allocations: 9.5 kB / 1.275 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.769e-05/0.9738, allocations: 10.97 kB / 1.275 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.67e-05/0.9738, allocations: 24.33 kB / 1.275 GB, free: 6 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.418e-05/0.9739, allocations: 75.77 kB / 1.275 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.9741, allocations: 139.7 kB / 1.275 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.9741, allocations: 0 / 1.275 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.043e-06/0.9741, allocations: 0 / 1.275 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.245e-05/0.9741, allocations: 0 / 1.275 GB, free: 5.883 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007419/0.9749, allocations: 477.7 kB / 1.275 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.9749, allocations: 9.438 kB / 1.275 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.875e-05/0.975, allocations: 22.16 kB / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002561/0.9752, allocations: 249.5 kB / 1.276 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.9752, allocations: 8.281 kB / 1.276 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.9753, allocations: 16.77 kB / 1.276 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.9755, allocations: 153 kB / 1.276 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.9755, allocations: 0.6562 kB / 1.276 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.9756, allocations: 5.531 kB / 1.276 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.9756, allocations: 2.656 kB / 1.276 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002219/0.9758, allocations: 69.53 kB / 1.276 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007465/0.9765, allocations: 0.738 MB / 1.277 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.9767, allocations: 45.88 kB / 1.277 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.9768, allocations: 38.33 kB / 1.277 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.9768, allocations: 5.938 kB / 1.277 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002159/0.977, allocations: 122.8 kB / 1.277 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.977, allocations: 1.125 kB / 1.277 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0004789/0.9775, allocations: 167.7 kB / 1.277 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.9776, allocations: 134.6 kB / 1.277 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.9777, allocations: 201.2 kB / 1.277 GB, free: 3.867 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.9777, allocations: 27.58 kB / 1.277 GB, free: 3.836 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.462e-05/0.9778, allocations: 130.3 kB / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.9778, allocations: 37.17 kB / 1.278 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.259e-05/0.9779, allocations: 46.22 kB / 1.278 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.111e-05/0.978, allocations: 328.3 kB / 1.278 GB, free: 3.336 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.9781, allocations: 42.38 kB / 1.278 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.9783, allocations: 148.2 kB / 1.278 GB, free: 3.168 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000271/0.9785, allocations: 200.6 kB / 1.278 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.9786, allocations: 1.906 kB / 1.278 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003793/0.9789, allocations: 199.3 kB / 1.278 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.979, allocations: 10.41 kB / 1.278 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.979, allocations: 4.969 kB / 1.278 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.979, allocations: 9.156 kB / 1.278 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.9791, allocations: 36.5 kB / 1.279 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.9791, allocations: 9.703 kB / 1.279 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.9793, allocations: 27.12 kB / 1.279 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.9793, allocations: 13.09 kB / 1.279 GB, free: 2.867 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.077e-05/0.9794, allocations: 139.3 kB / 1.279 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.9794, allocations: 20.98 kB / 1.279 GB, free: 2.719 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.58e-05/0.9795, allocations: 20.81 kB / 1.279 GB, free: 2.695 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.9795, allocations: 6.094 kB / 1.279 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.9795, allocations: 1.375 kB / 1.279 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.9795, allocations: 1.875 kB / 1.279 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006737/0.9801, allocations: 0.5065 MB / 1.279 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.9801, allocations: 1.188 kB / 1.279 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.9803, allocations: 28.91 kB / 1.279 GB, free: 2.258 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.9803, allocations: 1 kB / 1.279 GB, free: 2.258 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.9803, allocations: 6.781 kB / 1.279 GB, free: 2.254 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.9803, allocations: 4.719 kB / 1.279 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.9803, allocations: 6.734 kB / 1.279 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004556/0.9807, allocations: 353.4 kB / 1.28 GB, free: 1.98 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.096e-05/0.9808, allocations: 94.41 kB / 1.28 GB, free: 1.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.9808, allocations: 7.859 kB / 1.28 GB, free: 1.871 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.981, allocations: 11.7 kB / 1.28 GB, free: 1.871 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.843e-05/0.981, allocations: 17.7 kB / 1.28 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.9811, allocations: 4.5 kB / 1.28 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001046/0.9812, allocations: 144.9 kB / 1.28 GB, free: 1.766 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.9812, allocations: 0 / 1.28 GB, free: 1.766 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000343/0.9815, allocations: 31.77 kB / 1.28 GB, free: 1.758 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001068/0.9816, allocations: 103.6 kB / 1.28 GB, free: 1.668 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003442/0.982, allocations: 121 kB / 1.28 GB, free: 1.629 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.982, allocations: 0.875 kB / 1.28 GB, free: 1.629 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.9821, allocations: 46.02 kB / 1.28 GB, free: 1.617 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005414/0.9826, allocations: 61.91 kB / 1.28 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005556/0.9832, allocations: 378.5 kB / 1.281 GB, free: 1.324 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.9834, allocations: 0.7201 MB / 1.281 GB, free: 0.6289 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.489e-05/0.9834, allocations: 27.94 kB / 1.281 GB, free: 0.6172 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.764e-05/0.9835, allocations: 19.09 kB / 1.281 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of SimCode: time 4.61e-07/0.9835, allocations: 0 / 1.281 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of Templates: time 0.006118/0.9896, allocations: 2.075 MB / 1.283 GB, free: 436 kB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.855987310409546]