Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008513/0.0008513, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.4 MB / 222.1 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.609/1.609, allocations: 252 MB / 0.5102 GB, free: 4.898 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005615/0.0005616, allocations: 27.11 kB / 0.6243 GB, free: 1.129 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5506/0.5512, allocations: 106.3 MB / 0.7281 GB, free: 11.42 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002069/0.5533, allocations: 1.488 MB / 0.7296 GB, free: 9.918 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0009309/0.5543, allocations: 0.5658 MB / 0.7301 GB, free: 9.344 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.5544, allocations: 7.938 kB / 0.7301 GB, free: 9.336 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.5545, allocations: 11.86 kB / 0.7301 GB, free: 9.324 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.861e-05/0.5546, allocations: 19.8 kB / 0.7302 GB, free: 9.305 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.5548, allocations: 47.94 kB / 0.7302 GB, free: 9.258 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001961/0.555, allocations: 151.5 kB / 0.7304 GB, free: 9.109 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.5552, allocations: 45.81 kB / 0.7304 GB, free: 9.066 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.019e-05/0.5552, allocations: 35.8 kB / 0.7304 GB, free: 9.031 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.385e-05/0.5553, allocations: 51.7 kB / 0.7305 GB, free: 8.98 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.5554, allocations: 4 kB / 0.7305 GB, free: 8.977 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.639e-05/0.5554, allocations: 4 kB / 0.7305 GB, free: 8.973 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.025e-05/0.5554, allocations: 23.86 kB / 0.7305 GB, free: 8.949 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.17e-05/0.5555, allocations: 41.64 kB / 0.7305 GB, free: 8.902 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.5556, allocations: 97.72 kB / 0.7306 GB, free: 8.809 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.5556, allocations: 0 / 0.7306 GB, free: 8.809 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.723e-06/0.5556, allocations: 4 kB / 0.7306 GB, free: 8.805 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.5556, allocations: 0 / 0.7306 GB, free: 8.805 MB / 0.545 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.0006928/0.5563, allocations: 450.6 kB / 0.7311 GB, free: 8.316 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.5564, allocations: 12.03 kB / 0.7311 GB, free: 8.305 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.5564, allocations: 23.77 kB / 0.7311 GB, free: 8.281 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.5567, allocations: 222.6 kB / 0.7313 GB, free: 8.023 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.5567, allocations: 8 kB / 0.7313 GB, free: 8.016 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.5567, allocations: 12 kB / 0.7313 GB, free: 8.004 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002941/0.557, allocations: 149.9 kB / 0.7315 GB, free: 7.836 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.5571, allocations: 0 / 0.7315 GB, free: 7.836 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.5571, allocations: 11.98 kB / 0.7315 GB, free: 7.824 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.5571, allocations: 0 / 0.7315 GB, free: 7.824 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002201/0.5573, allocations: 79.84 kB / 0.7316 GB, free: 7.746 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009027/0.5582, allocations: 0.751 MB / 0.7323 GB, free: 6.93 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.5584, allocations: 58.48 kB / 0.7324 GB, free: 6.863 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.844e-05/0.5585, allocations: 32.84 kB / 0.7324 GB, free: 6.828 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.5585, allocations: 7.984 kB / 0.7324 GB, free: 6.82 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002815/0.5588, allocations: 126.8 kB / 0.7325 GB, free: 6.672 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.5588, allocations: 0 / 0.7325 GB, free: 6.672 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0004705/0.5593, allocations: 185.2 kB / 0.7327 GB, free: 6.484 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.741e-05/0.5594, allocations: 132.8 kB / 0.7328 GB, free: 6.324 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.5596, allocations: 206.8 kB / 0.733 GB, free: 6.113 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.5596, allocations: 29.7 kB / 0.7331 GB, free: 6.078 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.98e-05/0.5597, allocations: 124 kB / 0.7332 GB, free: 5.953 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.36e-05/0.5598, allocations: 31.59 kB / 0.7332 GB, free: 5.922 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-06/0.5598, allocations: 8 kB / 0.7332 GB, free: 5.914 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5599, allocations: 330.8 kB / 0.7335 GB, free: 5.582 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.56, allocations: 44.34 kB / 0.7336 GB, free: 5.539 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.5602, allocations: 158 kB / 0.7337 GB, free: 5.336 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.5604, allocations: 59.91 kB / 0.7338 GB, free: 5.277 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.5604, allocations: 0 / 0.7338 GB, free: 5.277 MB / 0.545 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003899/0.5608, allocations: 217.5 kB / 0.734 GB, free: 5.059 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.5608, allocations: 10.12 kB / 0.734 GB, free: 5.051 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.5609, allocations: 4 kB / 0.734 GB, free: 5.047 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.5609, allocations: 8 kB / 0.734 GB, free: 5.039 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.561, allocations: 39.86 kB / 0.734 GB, free: 5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.561, allocations: 8 kB / 0.734 GB, free: 4.992 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.5612, allocations: 31.83 kB / 0.7341 GB, free: 4.961 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.5612, allocations: 8 kB / 0.7341 GB, free: 4.953 MB / 0.545 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 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.5613, allocations: 140.6 kB / 0.7342 GB, free: 4.809 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.5614, allocations: 27.73 kB / 0.7342 GB, free: 4.781 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.495e-05/0.5614, allocations: 17.41 kB / 0.7343 GB, free: 4.762 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.5614, allocations: 0 / 0.7343 GB, free: 4.762 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.5614, allocations: 8.203 kB / 0.7343 GB, free: 4.754 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.5614, allocations: 3.984 kB / 0.7343 GB, free: 4.75 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007448/0.5622, allocations: 0.525 MB / 0.7348 GB, free: 4.168 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.5622, allocations: 0 / 0.7348 GB, free: 4.168 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.5623, allocations: 23.92 kB / 0.7348 GB, free: 4.145 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.5623, allocations: 7.984 kB / 0.7348 GB, free: 4.137 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.5624, allocations: 3.953 kB / 0.7348 GB, free: 4.133 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.5624, allocations: 4 kB / 0.7348 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.5624, allocations: 0 / 0.7348 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005069/0.5629, allocations: 372.2 kB / 0.7352 GB, free: 3.742 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.612e-05/0.563, allocations: 92.86 kB / 0.7353 GB, free: 3.633 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.563, allocations: 4 kB / 0.7353 GB, free: 3.629 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.5632, allocations: 31.92 kB / 0.7353 GB, free: 3.598 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.108e-05/0.5632, allocations: 11.97 kB / 0.7353 GB, free: 3.586 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.5632, allocations: 4 kB / 0.7353 GB, free: 3.582 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001102/0.5634, allocations: 144.4 kB / 0.7355 GB, free: 3.441 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5634, allocations: 0 / 0.7355 GB, free: 3.441 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003502/0.5637, allocations: 31.91 kB / 0.7355 GB, free: 3.41 MB / 0.545 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000157/0.5639, allocations: 110.6 kB / 0.7356 GB, free: 3.297 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003289/0.5642, allocations: 133 kB / 0.7357 GB, free: 3.168 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5642, allocations: 3.938 kB / 0.7357 GB, free: 3.164 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001373/0.5644, allocations: 51.91 kB / 0.7358 GB, free: 3.113 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006/0.565, allocations: 60.12 kB / 0.7358 GB, free: 3.055 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006156/0.5656, allocations: 395 kB / 0.7362 GB, free: 2.633 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.5659, allocations: 0.7206 MB / 0.7369 GB, free: 1.883 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.3e-05/0.566, allocations: 25.73 kB / 0.7369 GB, free: 1.855 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.172e-05/0.5661, allocations: 15.44 kB / 0.7369 GB, free: 1.844 MB / 0.545 GB Notification: Performance of SimCode: time 3.41e-07/0.5661, allocations: 0 / 0.7369 GB, free: 1.844 MB / 0.545 GB Notification: Performance of Templates: time 0.004468/0.5706, allocations: 1.737 MB / 0.7386 GB, free: 128 kB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) Environment - environmentSimulation: