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.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.002416/0.002416, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002662/0.002662, allocations: 216.4 kB / 22.25 MB, free: 5.262 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.524/1.524, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.844/2.844, allocations: 476 MB / 0.7699 GB, free: 4.766 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_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: 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.00213/0.00213, allocations: 75.11 kB / 1.117 GB, free: 41.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3402, allocations: 169.9 MB / 1.283 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003749/0.344, allocations: 1.796 MB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001437/0.3454, allocations: 0.5377 MB / 1.285 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.3455, allocations: 7.938 kB / 1.285 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.3457, allocations: 27.73 kB / 1.285 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001051/0.3458, allocations: 27.72 kB / 1.285 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.3461, allocations: 71.84 kB / 1.285 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.3464, allocations: 167.5 kB / 1.286 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.3466, allocations: 41.7 kB / 1.286 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.3467, allocations: 51.73 kB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.3468, allocations: 63.62 kB / 1.286 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.3468, allocations: 8 kB / 1.286 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.674e-05/0.3469, allocations: 12 kB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.2e-05/0.3469, allocations: 27.92 kB / 1.286 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.216e-05/0.347, allocations: 55.66 kB / 1.286 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000253/0.3472, allocations: 135.3 kB / 1.286 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3473, allocations: 0 / 1.286 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.325e-06/0.3473, allocations: 0 / 1.286 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.327e-06/0.3473, allocations: 0 / 1.286 GB, free: 8.938 MB / 0.9825 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.0009585/0.3482, allocations: 431.2 kB / 1.286 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.3483, allocations: 8.031 kB / 1.286 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.01e-05/0.3483, allocations: 24.8 kB / 1.286 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.3488, allocations: 174.2 kB / 1.287 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.3488, allocations: 8.375 kB / 1.287 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/0.3488, allocations: 16.38 kB / 1.287 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003562/0.3492, allocations: 153.2 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.3492, allocations: 0 / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.3492, allocations: 7.938 kB / 1.287 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.3492, allocations: 8 kB / 1.287 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000238/0.3495, allocations: 67.88 kB / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.3506, allocations: 0.6531 MB / 1.287 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.3508, allocations: 54.48 kB / 1.288 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.3509, allocations: 28.84 kB / 1.288 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.3509, allocations: 7.984 kB / 1.288 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.3512, allocations: 118.7 kB / 1.288 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.3512, allocations: 4 kB / 1.288 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0005324/0.3517, allocations: 161.5 kB / 1.288 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.3518, allocations: 136.8 kB / 1.288 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002088/0.352, allocations: 191.5 kB / 1.288 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.352, allocations: 29.7 kB / 1.288 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.3521, allocations: 132.1 kB / 1.288 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.257e-05/0.3522, allocations: 39.69 kB / 1.288 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-05/0.3523, allocations: 41.7 kB / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001611/0.3524, allocations: 326.8 kB / 1.289 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.3526, allocations: 35.97 kB / 1.289 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.3528, allocations: 146.5 kB / 1.289 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000352/0.3531, allocations: 206.5 kB / 1.289 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3531, allocations: 0 / 1.289 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004299/0.3536, allocations: 217.2 kB / 1.289 GB, free: 5.227 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3536, allocations: 4 kB / 1.289 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3536, allocations: 4 kB / 1.289 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3536, allocations: 4 kB / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.3537, allocations: 31.92 kB / 1.289 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.3537, allocations: 11.94 kB / 1.289 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.3539, allocations: 28.22 kB / 1.289 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.3539, allocations: 12 kB / 1.289 GB, free: 5.133 MB / 0.9825 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.0001424/0.354, allocations: 141.6 kB / 1.289 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.3541, allocations: 15.91 kB / 1.289 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.586e-05/0.3541, allocations: 25.39 kB / 1.29 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3541, allocations: 0 / 1.29 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3541, allocations: 4 kB / 1.29 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3541, allocations: 0 / 1.29 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007674/0.3549, allocations: 449.3 kB / 1.29 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3549, allocations: 3.984 kB / 1.29 GB, free: 4.449 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.355, allocations: 20.3 kB / 1.29 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.355, allocations: 0 / 1.29 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.3551, allocations: 8 kB / 1.29 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.3551, allocations: 3.938 kB / 1.29 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3551, allocations: 0 / 1.29 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005437/0.3556, allocations: 364.2 kB / 1.29 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.268e-05/0.3556, allocations: 15.84 kB / 1.29 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.3557, allocations: 8 kB / 1.29 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.3558, allocations: 12.03 kB / 1.29 GB, free: 4.004 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.3559, allocations: 27.78 kB / 1.29 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.3559, allocations: 4 kB / 1.29 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001152/0.356, allocations: 133.6 kB / 1.291 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.356, allocations: 0 / 1.291 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003424/0.3564, allocations: 28 kB / 1.291 GB, free: 3.816 MB / 0.9825 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.0001402/0.3565, allocations: 99.78 kB / 1.291 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003449/0.3569, allocations: 115.8 kB / 1.291 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3569, allocations: 0 / 1.291 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.357, allocations: 48.91 kB / 1.291 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005909/0.3576, allocations: 74.28 kB / 1.291 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006843/0.3583, allocations: 356.4 kB / 1.291 GB, free: 3.102 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.3584, allocations: 104.1 kB / 1.291 GB, free: 2.98 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.752e-05/0.3585, allocations: 25.47 kB / 1.291 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.769e-05/0.3585, allocations: 15.44 kB / 1.291 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of SimCode: time 5.71e-07/0.3585, allocations: 0 / 1.291 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of Templates: time 0.006091/0.3646, allocations: 2.256 MB / 1.294 GB, free: 0.7422 MB / 0.9825 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: 9.123506193980575]