Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.001604/0.001604, allocations: 100.8 kB / 19.74 MB, free: 2.07 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.001935/0.001935, allocations: 209.3 kB / 23.03 MB, free: 4.863 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.141/3.141, allocations: 0.49 GB / 0.7959 GB, free: 35.43 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.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_12_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_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") [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.001908/0.001908, allocations: 62.38 kB / 1.155 GB, free: 25.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.367, allocations: 176.1 MB / 1.327 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003625/0.3706, allocations: 1.786 MB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001341/0.3719, allocations: 0.5455 MB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.3721, allocations: 7.938 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.3722, allocations: 19.73 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.3723, allocations: 35.72 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000266/0.3726, allocations: 67.86 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.3729, allocations: 179.4 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.3731, allocations: 37.67 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.3732, allocations: 51.78 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.099e-05/0.3732, allocations: 59.62 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.554e-05/0.3733, allocations: 8 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 2.262e-05/0.3733, allocations: 12 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.974e-05/0.3733, allocations: 27.86 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.863e-05/0.3734, allocations: 51.67 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002103/0.3736, allocations: 131.4 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3736, allocations: 4 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3736, allocations: 0 / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.3736, allocations: 0 / 1.33 GB, free: 13.91 MB / 1.029 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.0007917/0.3744, allocations: 439 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.3745, allocations: 8.031 kB / 1.331 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.461e-05/0.3745, allocations: 16.84 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.3748, allocations: 182.7 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.3749, allocations: 4.375 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.3749, allocations: 16.38 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.3752, allocations: 155.7 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.3752, allocations: 0 / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.3752, allocations: 7.984 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3752, allocations: 4 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002411/0.3755, allocations: 71.89 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009245/0.3764, allocations: 0.6531 MB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.3765, allocations: 46.5 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.3766, allocations: 36.81 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.3767, allocations: 4 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.3769, allocations: 126.8 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.3769, allocations: 0 / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0004824/0.3774, allocations: 165.5 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.968e-05/0.3775, allocations: 132.5 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001984/0.3777, allocations: 186.3 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.3777, allocations: 29.7 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.3778, allocations: 140.2 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.3779, allocations: 35.77 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.357e-05/0.3779, allocations: 45.64 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3781, allocations: 326.8 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.3782, allocations: 35.97 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.3784, allocations: 149.1 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.3788, allocations: 210.2 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3788, allocations: 4 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004033/0.3792, allocations: 201.6 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.3792, allocations: 11.88 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3792, allocations: 4 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.3792, allocations: 8.25 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.3793, allocations: 39.91 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.3794, allocations: 11.94 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.3795, allocations: 19.94 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.3795, allocations: 12 kB / 1.333 GB, free: 10.09 MB / 1.029 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 0.0001353/0.3796, allocations: 144.2 kB / 1.334 GB, free: 9.945 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.924e-05/0.3797, allocations: 15.91 kB / 1.334 GB, free: 9.93 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.959e-05/0.3797, allocations: 21.39 kB / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3797, allocations: 0 / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3797, allocations: 4 kB / 1.334 GB, free: 9.898 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3797, allocations: 0 / 1.334 GB, free: 9.898 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007406/0.3805, allocations: 457.2 kB / 1.334 GB, free: 9.414 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3805, allocations: 0 / 1.334 GB, free: 9.414 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.3806, allocations: 23.92 kB / 1.334 GB, free: 9.391 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.3806, allocations: 0 / 1.334 GB, free: 9.391 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.3806, allocations: 8 kB / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3806, allocations: 0 / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3806, allocations: 4 kB / 1.334 GB, free: 9.379 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/0.3811, allocations: 360.2 kB / 1.334 GB, free: 9.004 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.893e-05/0.3812, allocations: 19.88 kB / 1.335 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.3812, allocations: 8 kB / 1.335 GB, free: 8.977 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.3814, allocations: 15.98 kB / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.3814, allocations: 15.92 kB / 1.335 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.3814, allocations: 7.984 kB / 1.335 GB, free: 8.938 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001066/0.3815, allocations: 128.3 kB / 1.335 GB, free: 8.812 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3815, allocations: 0 / 1.335 GB, free: 8.812 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003398/0.3819, allocations: 31.95 kB / 1.335 GB, free: 8.781 MB / 1.029 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.0001391/0.382, allocations: 109.3 kB / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003384/0.3824, allocations: 115.8 kB / 1.335 GB, free: 8.555 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3824, allocations: 0 / 1.335 GB, free: 8.555 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.3825, allocations: 48 kB / 1.335 GB, free: 8.508 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005423/0.3831, allocations: 72.41 kB / 1.335 GB, free: 8.441 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006403/0.3837, allocations: 386.2 kB / 1.335 GB, free: 8.023 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001122/0.3838, allocations: 108.1 kB / 1.336 GB, free: 7.895 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.664e-05/0.3839, allocations: 19.44 kB / 1.336 GB, free: 7.875 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3839, allocations: 0 / 1.336 GB, free: 7.875 MB / 1.029 GB Notification: Performance of Templates: time 0.004157/0.388, allocations: 2.152 MB / 1.338 GB, free: 5.73 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.417870230972767]