Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009121/0.0009121, allocations: 76.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.0009574/0.0009574, allocations: 176.9 kB / 23.36 MB, free: 1.125 MB / 18.57 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.021/1.021, allocations: 177.1 MB / 203.8 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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.429/2.429, allocations: 438.8 MB / 0.6827 GB, free: 13.6 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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.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_latest_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_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 3.938 kB / 0.8386 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.189e-05/2.371e-05, allocations: 10.31 kB / 0.8386 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002632/0.002656, allocations: 1.872 MB / 0.8405 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0009674/0.003623, allocations: 0.5687 MB / 0.841 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.97e-05/0.003723, allocations: 11.81 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.003854, allocations: 27.8 kB / 0.8411 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.831e-05/0.003922, allocations: 27.72 kB / 0.8411 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.004152, allocations: 67.86 kB / 0.8412 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002596/0.004412, allocations: 179.4 kB / 0.8413 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.004539, allocations: 30.39 kB / 0.8414 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.00466, allocations: 83.73 kB / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.053e-05/0.00472, allocations: 43.81 kB / 0.8415 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.231e-05/0.004742, allocations: 12 kB / 0.8415 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 1.323e-05/0.004756, allocations: 8 kB / 0.8415 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.603e-05/0.004782, allocations: 27.91 kB / 0.8415 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.828e-05/0.00482, allocations: 43.84 kB / 0.8416 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.004951, allocations: 95.58 kB / 0.8417 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.004953, allocations: 4 kB / 0.8417 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.142e-06/0.004954, allocations: 0 / 0.8417 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.004959, allocations: 3.938 kB / 0.8417 GB, free: 11.04 MB / 0.8073 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.0004423/0.005401, allocations: 372 kB / 0.842 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.00544, allocations: 12.62 kB / 0.842 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.734e-05/0.005478, allocations: 16.92 kB / 0.842 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.00566, allocations: 177.5 kB / 0.8422 GB, free: 10.42 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.005674, allocations: 12.38 kB / 0.8422 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.005695, allocations: 12.38 kB / 0.8422 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000156/0.005851, allocations: 139 kB / 0.8424 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.005859, allocations: 192 / 0.8424 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.00587, allocations: 8.375 kB / 0.8424 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.005877, allocations: 3.938 kB / 0.8424 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.445e-05/0.005921, allocations: 35.91 kB / 0.8424 GB, free: 10.19 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000494/0.006415, allocations: 0.5669 MB / 0.843 GB, free: 9.594 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.238e-05/0.006468, allocations: 34.55 kB / 0.843 GB, free: 9.551 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.98e-05/0.006488, allocations: 12.86 kB / 0.843 GB, free: 9.535 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.006504, allocations: 4 kB / 0.843 GB, free: 9.531 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000106/0.00661, allocations: 102.9 kB / 0.8431 GB, free: 9.406 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.006611, allocations: 4 kB / 0.8431 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0001493/0.00676, allocations: 81.78 kB / 0.8432 GB, free: 9.316 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.006819, allocations: 136.5 kB / 0.8433 GB, free: 9.152 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.006927, allocations: 200.4 kB / 0.8435 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.00694, allocations: 29.7 kB / 0.8435 GB, free: 8.91 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.006991, allocations: 115.9 kB / 0.8437 GB, free: 8.793 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.007016, allocations: 39.67 kB / 0.8437 GB, free: 8.754 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-05/0.007062, allocations: 45.67 kB / 0.8437 GB, free: 8.703 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.458e-05/0.007147, allocations: 326.8 kB / 0.844 GB, free: 8.375 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.991e-05/0.007167, allocations: 12.23 kB / 0.8441 GB, free: 8.363 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.116e-05/0.007238, allocations: 126.5 kB / 0.8442 GB, free: 8.188 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.00736, allocations: 158.3 kB / 0.8443 GB, free: 7.98 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.007363, allocations: 4 kB / 0.8443 GB, free: 7.977 MB / 0.8073 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001411/0.007504, allocations: 137.5 kB / 0.8445 GB, free: 7.836 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.007518, allocations: 7.938 kB / 0.8445 GB, free: 7.828 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.007524, allocations: 4 kB / 0.8445 GB, free: 7.824 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.007539, allocations: 8 kB / 0.8445 GB, free: 7.816 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.055e-05/0.00762, allocations: 35.92 kB / 0.8445 GB, free: 7.781 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.007627, allocations: 11.92 kB / 0.8445 GB, free: 7.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.223e-05/0.007689, allocations: 23.89 kB / 0.8446 GB, free: 7.746 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.007699, allocations: 8 kB / 0.8446 GB, free: 7.738 MB / 0.8073 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,intNoReset.trigger_internal,intDef.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 7.212e-05/0.007771, allocations: 126.1 kB / 0.8447 GB, free: 7.605 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.917e-05/0.00779, allocations: 15.98 kB / 0.8447 GB, free: 7.59 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.869e-05/0.007819, allocations: 29.39 kB / 0.8447 GB, free: 7.566 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.007821, allocations: 0 / 0.8447 GB, free: 7.566 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.007824, allocations: 4 kB / 0.8447 GB, free: 7.562 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.007827, allocations: 0 / 0.8447 GB, free: 7.562 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003129/0.00814, allocations: 345.8 kB / 0.8451 GB, free: 7.199 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.008142, allocations: 0 / 0.8451 GB, free: 7.199 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.455e-05/0.008196, allocations: 23.86 kB / 0.8451 GB, free: 7.176 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.0082, allocations: 4 kB / 0.8451 GB, free: 7.172 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.008211, allocations: 4 kB / 0.8451 GB, free: 7.168 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.008214, allocations: 4 kB / 0.8451 GB, free: 7.164 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.008216, allocations: 320 / 0.8451 GB, free: 7.164 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.0084, allocations: 279.8 kB / 0.8454 GB, free: 6.871 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.067e-05/0.008421, allocations: 27.83 kB / 0.8454 GB, free: 6.844 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.008435, allocations: 0 / 0.8454 GB, free: 6.844 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.589e-05/0.008511, allocations: 15.98 kB / 0.8454 GB, free: 6.828 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.683e-05/0.008548, allocations: 7.984 kB / 0.8454 GB, free: 6.82 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.008556, allocations: 8 kB / 0.8454 GB, free: 6.812 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.615e-05/0.008592, allocations: 48.8 kB / 0.8455 GB, free: 6.762 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.1e-08/0.008592, allocations: 0 / 0.8455 GB, free: 6.762 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001949/0.008787, allocations: 28 kB / 0.8455 GB, free: 6.734 MB / 0.8073 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 8.994e-05/0.008877, allocations: 84.36 kB / 0.8456 GB, free: 6.645 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001077/0.008984, allocations: 79.41 kB / 0.8456 GB, free: 6.566 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.008989, allocations: 4 kB / 0.8457 GB, free: 6.562 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.06e-05/0.009029, allocations: 36.97 kB / 0.8457 GB, free: 6.523 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.00933, allocations: 71.73 kB / 0.8458 GB, free: 6.461 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004171/0.009747, allocations: 319.4 kB / 0.8461 GB, free: 6.109 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.748e-05/0.009795, allocations: 71.98 kB / 0.8461 GB, free: 6.02 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.685e-05/0.009852, allocations: 21.61 kB / 0.8461 GB, free: 6 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.432e-05/0.009946, allocations: 87.28 kB / 0.8462 GB, free: 5.914 MB / 0.8073 GB Notification: Performance of SimCode: time 7.52e-07/0.009947, allocations: 0 / 0.8462 GB, free: 5.914 MB / 0.8073 GB Notification: Performance of Templates: time 0.003866/0.01381, allocations: 2.213 MB / 0.8484 GB, free: 3.758 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.3825353612191975]