Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001824/0.001824, allocations: 93.47 kB / 19.44 MB, free: 332 kB / 13.93 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.002112/0.002112, allocations: 169.2 kB / 22.76 MB, free: 1.66 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.546/1.546, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.003216/0.003216, allocations: 238 kB / 259.8 MB, free: 12.84 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.185/1.185, allocations: 138.5 MB / 454.7 MB, free: 1.488 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 0.5544 GB, free: 0.832 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.021e-05/3.201e-05, allocations: 2.312 kB / 0.5544 GB, free: 0.8281 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.005709/0.005741, allocations: 1.83 MB / 0.5561 GB, free: 14.98 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.00781, allocations: 0.5493 MB / 0.5567 GB, free: 14.43 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.00794, allocations: 3.938 kB / 0.5567 GB, free: 14.43 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002172/0.008157, allocations: 39.66 kB / 0.5567 GB, free: 14.39 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.008306, allocations: 27.73 kB / 0.5567 GB, free: 14.36 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.008643, allocations: 67.78 kB / 0.5568 GB, free: 14.29 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004189/0.009062, allocations: 175.4 kB / 0.557 GB, free: 14.12 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.009247, allocations: 37.7 kB / 0.557 GB, free: 14.09 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.009463, allocations: 79.8 kB / 0.5571 GB, free: 14.01 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.009589, allocations: 39.83 kB / 0.5571 GB, free: 13.97 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.682e-05/0.009636, allocations: 11.98 kB / 0.5571 GB, free: 13.96 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.486e-05/0.00967, allocations: 16 kB / 0.5572 GB, free: 13.94 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.615e-05/0.009727, allocations: 19.92 kB / 0.5572 GB, free: 13.92 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.009835, allocations: 43.84 kB / 0.5572 GB, free: 13.88 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003492/0.01018, allocations: 135.4 kB / 0.5573 GB, free: 13.75 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.01019, allocations: 0 / 0.5573 GB, free: 13.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.963e-06/0.01019, allocations: 7.984 kB / 0.5574 GB, free: 13.74 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.0102, allocations: 0 / 0.5574 GB, free: 13.74 MB / 490.7 MB 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.00126/0.01146, allocations: 0.5222 MB / 0.5579 GB, free: 13.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.01152, allocations: 16.73 kB / 0.5579 GB, free: 13.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.01162, allocations: 24.84 kB / 0.5579 GB, free: 13.13 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004643/0.01209, allocations: 184.2 kB / 0.5581 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.01211, allocations: 8.375 kB / 0.5581 GB, free: 12.92 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.01217, allocations: 20.33 kB / 0.5581 GB, free: 12.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004769/0.01264, allocations: 161.5 kB / 0.5583 GB, free: 12.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.01266, allocations: 192 / 0.5583 GB, free: 12.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.01268, allocations: 4.375 kB / 0.5583 GB, free: 12.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.01269, allocations: 7.938 kB / 0.5583 GB, free: 12.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003308/0.01302, allocations: 59.91 kB / 0.5583 GB, free: 12.64 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.01494, allocations: 0.9053 MB / 0.5592 GB, free: 11.68 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002581/0.0152, allocations: 54.98 kB / 0.5593 GB, free: 11.62 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.01536, allocations: 31.66 kB / 0.5593 GB, free: 11.58 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.01538, allocations: 0 / 0.5593 GB, free: 11.58 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006454/0.01603, allocations: 144 kB / 0.5594 GB, free: 11.41 MB / 490.7 MB Notification: Performance of pre-optimization done (n=11): time 2.074e-06/0.01603, allocations: 4 kB / 0.5594 GB, free: 11.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007776/0.01681, allocations: 153.4 kB / 0.5596 GB, free: 11.25 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001777/0.01699, allocations: 132.5 kB / 0.5597 GB, free: 11.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004489/0.01743, allocations: 265.7 kB / 0.56 GB, free: 10.81 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.01747, allocations: 25.7 kB / 0.56 GB, free: 10.78 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.0177, allocations: 186.6 kB / 0.5602 GB, free: 10.59 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.833e-05/0.01778, allocations: 35.69 kB / 0.5602 GB, free: 10.56 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.01793, allocations: 59.3 kB / 0.5603 GB, free: 10.49 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004415/0.01837, allocations: 0.5082 MB / 0.5607 GB, free: 9.973 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.01856, allocations: 31.98 kB / 0.5608 GB, free: 9.941 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004168/0.01898, allocations: 186.7 kB / 0.561 GB, free: 9.688 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006469/0.01963, allocations: 238.4 kB / 0.5612 GB, free: 9.383 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.01963, allocations: 0 / 0.5612 GB, free: 9.383 MB / 490.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007573/0.02039, allocations: 209.1 kB / 0.5614 GB, free: 9.172 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.02041, allocations: 4 kB / 0.5614 GB, free: 9.168 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.02043, allocations: 4 kB / 0.5614 GB, free: 9.164 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.172e-05/0.02046, allocations: 8 kB / 0.5614 GB, free: 9.156 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.02072, allocations: 40.34 kB / 0.5614 GB, free: 9.117 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.02073, allocations: 8 kB / 0.5614 GB, free: 9.109 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.02096, allocations: 19.89 kB / 0.5615 GB, free: 9.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.02099, allocations: 8 kB / 0.5615 GB, free: 9.082 MB / 490.7 MB 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.0002541/0.02124, allocations: 186 kB / 0.5616 GB, free: 8.891 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.095e-05/0.02132, allocations: 23.84 kB / 0.5617 GB, free: 8.867 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.709e-05/0.02139, allocations: 21.7 kB / 0.5617 GB, free: 8.84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.0214, allocations: 0 / 0.5617 GB, free: 8.84 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/0.02141, allocations: 8 kB / 0.5617 GB, free: 8.832 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.02142, allocations: 7.922 kB / 0.5617 GB, free: 8.824 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001441/0.02286, allocations: 0.5433 MB / 0.5622 GB, free: 8.238 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.02287, allocations: 3.984 kB / 0.5622 GB, free: 8.234 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.02307, allocations: 16 kB / 0.5623 GB, free: 8.219 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.02307, allocations: 0 / 0.5623 GB, free: 8.219 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.02309, allocations: 4 kB / 0.5623 GB, free: 8.215 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.0231, allocations: 0 / 0.5623 GB, free: 8.215 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.021e-05/0.02312, allocations: 11.92 kB / 0.5623 GB, free: 8.203 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000921/0.02404, allocations: 438.2 kB / 0.5627 GB, free: 7.746 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.287e-05/0.02409, allocations: 23.89 kB / 0.5627 GB, free: 7.723 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.979e-05/0.02413, allocations: 4 kB / 0.5627 GB, free: 7.719 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.0244, allocations: 11.98 kB / 0.5627 GB, free: 7.707 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.02451, allocations: 15.92 kB / 0.5627 GB, free: 7.691 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.02453, allocations: 4 kB / 0.5627 GB, free: 7.688 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0002654/0.02479, allocations: 183 kB / 0.5629 GB, free: 7.508 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.02479, allocations: 0 / 0.5629 GB, free: 7.508 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0006706/0.02546, allocations: 31.89 kB / 0.563 GB, free: 7.477 MB / 490.7 MB 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.0002208/0.02568, allocations: 107.1 kB / 0.5631 GB, free: 7.367 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005563/0.02624, allocations: 130.5 kB / 0.5632 GB, free: 7.238 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.02624, allocations: 0 / 0.5632 GB, free: 7.238 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.02648, allocations: 47.61 kB / 0.5632 GB, free: 7.188 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.02753, allocations: 70.53 kB / 0.5633 GB, free: 7.125 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.0286, allocations: 349.8 kB / 0.5636 GB, free: 6.742 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.0288, allocations: 104.3 kB / 0.5637 GB, free: 6.617 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.02891, allocations: 21.47 kB / 0.5637 GB, free: 6.598 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.013e-05/0.02899, allocations: 20.5 kB / 0.5638 GB, free: 6.578 MB / 490.7 MB Notification: Performance of SimCode: time 9.52e-07/0.02899, allocations: 0 / 0.5638 GB, free: 6.578 MB / 490.7 MB Notification: Performance of Templates: time 0.01109/0.04008, allocations: 2.153 MB / 0.5659 GB, free: 4.484 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.905097926966846]