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: 114.8 kB / 18.89 MB, free: 2.898 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.001379/0.001379, allocations: 197.4 kB / 22.17 MB, free: 5.211 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.491/1.491, allocations: 225.6 MB / 250.9 MB, free: 13.25 MB / 206.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.834/2.834, allocations: 476.7 MB / 0.7645 GB, free: 10.07 MB / 0.6231 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.002084/0.002084, allocations: 75.88 kB / 1.109 GB, free: 6.473 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9699/0.972, allocations: 168.7 MB / 1.274 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003239/0.9753, allocations: 1.839 MB / 1.276 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.9763, allocations: 0.5431 MB / 1.276 GB, free: 1.969 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.465e-05/0.9764, allocations: 4 kB / 1.276 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.9765, allocations: 31.59 kB / 1.276 GB, free: 1.934 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.214e-05/0.9766, allocations: 27.73 kB / 1.276 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.9769, allocations: 63.92 kB / 1.277 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002485/0.9771, allocations: 171.4 kB / 1.277 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.9773, allocations: 49.58 kB / 1.277 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.365e-05/0.9773, allocations: 47.8 kB / 1.277 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.928e-05/0.9774, allocations: 71.56 kB / 1.277 GB, free: 1.512 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.856e-05/0.9775, allocations: 12 kB / 1.277 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.007e-05/0.9775, allocations: 8 kB / 1.277 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.581e-05/0.9775, allocations: 31.8 kB / 1.277 GB, free: 1.461 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.111e-05/0.9776, allocations: 67.59 kB / 1.277 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.9778, allocations: 134 kB / 1.277 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.9778, allocations: 0 / 1.277 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.412e-06/0.9778, allocations: 0 / 1.277 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.9778, allocations: 0 / 1.277 GB, free: 1.266 MB / 0.9669 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.0008054/0.9786, allocations: 0.4949 MB / 1.278 GB, free: 0.7188 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.9787, allocations: 12.03 kB / 1.278 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.96e-05/0.9787, allocations: 20.78 kB / 1.278 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00036/0.9791, allocations: 240.5 kB / 1.278 GB, free: 424 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.9791, allocations: 12.36 kB / 1.278 GB, free: 412 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.9791, allocations: 12.38 kB / 1.278 GB, free: 400 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003105/0.9794, allocations: 156.8 kB / 1.278 GB, free: 224 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.9795, allocations: 0 / 1.278 GB, free: 224 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.9795, allocations: 8 kB / 1.278 GB, free: 216 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.9795, allocations: 0 / 1.278 GB, free: 216 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002404/0.9797, allocations: 75.88 kB / 1.278 GB, free: 140 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.9807, allocations: 0.7433 MB / 1.279 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/0.9809, allocations: 42.55 kB / 1.279 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.981, allocations: 32.84 kB / 1.279 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.981, allocations: 3.938 kB / 1.279 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.9813, allocations: 130.7 kB / 1.279 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.693e-06/0.9813, allocations: 0 / 1.279 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0005113/0.9818, allocations: 165.4 kB / 1.279 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.857e-05/0.9819, allocations: 132.7 kB / 1.279 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.9821, allocations: 203 kB / 1.279 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.9821, allocations: 33.7 kB / 1.28 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.9822, allocations: 124 kB / 1.28 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.891e-05/0.9823, allocations: 39.88 kB / 1.28 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.732e-05/0.9823, allocations: 45.66 kB / 1.28 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.9825, allocations: 330.8 kB / 1.28 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.9826, allocations: 31.98 kB / 1.28 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.9828, allocations: 150.5 kB / 1.28 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003491/0.9832, allocations: 202.3 kB / 1.28 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.9832, allocations: 0 / 1.28 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004181/0.9836, allocations: 209.5 kB / 1.281 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.9836, allocations: 8 kB / 1.281 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.9836, allocations: 4 kB / 1.281 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.9836, allocations: 4 kB / 1.281 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.9838, allocations: 31.92 kB / 1.281 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.9838, allocations: 7.984 kB / 1.281 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.9839, allocations: 27.88 kB / 1.281 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.9839, allocations: 15.94 kB / 1.281 GB, free: 13.17 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.000119/0.984, allocations: 141.8 kB / 1.281 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.9841, allocations: 19.86 kB / 1.281 GB, free: 13 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.66e-05/0.9841, allocations: 21.39 kB / 1.281 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.9841, allocations: 4.234 kB / 1.281 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.9841, allocations: 0 / 1.281 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.9841, allocations: 11.92 kB / 1.281 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008115/0.985, allocations: 0.5134 MB / 1.281 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.985, allocations: 4.062 kB / 1.281 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.9851, allocations: 15.98 kB / 1.281 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.9851, allocations: 4 kB / 1.281 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.9851, allocations: 4 kB / 1.281 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.9851, allocations: 4 kB / 1.281 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.9851, allocations: 3.938 kB / 1.281 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005192/0.9856, allocations: 356.2 kB / 1.282 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-05/0.9857, allocations: 96.98 kB / 1.282 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.095e-05/0.9857, allocations: 8 kB / 1.282 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.9859, allocations: 15.98 kB / 1.282 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.986, allocations: 15.92 kB / 1.282 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.986, allocations: 4 kB / 1.282 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001234/0.9861, allocations: 143 kB / 1.282 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9861, allocations: 3.938 kB / 1.282 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003346/0.9864, allocations: 27.95 kB / 1.282 GB, free: 11.66 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.0001422/0.9866, allocations: 111.2 kB / 1.282 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003709/0.9869, allocations: 115.8 kB / 1.282 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.987, allocations: 0 / 1.282 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.9871, allocations: 48.97 kB / 1.282 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/0.9877, allocations: 61.83 kB / 1.282 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006812/0.9884, allocations: 367.8 kB / 1.283 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003493/0.9887, allocations: 0.7242 MB / 1.283 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.681e-05/0.9888, allocations: 18 kB / 1.283 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.924e-05/0.9888, allocations: 19.44 kB / 1.283 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of SimCode: time 4.61e-07/0.9888, allocations: 0 / 1.283 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of Templates: time 0.005624/0.9944, allocations: 2.08 MB / 1.285 GB, free: 8.086 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.1182273440063]