Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001141/0.001141, allocations: 103.1 kB / 16.36 MB, free: 6.305 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.001046/0.001046, allocations: 192.1 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.801/1.801, allocations: 292.3 MB / 0.5496 GB, free: 17.5 MB / 462.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.001451/0.001451, allocations: 75.89 kB / 0.6729 GB, free: 5.844 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2644, allocations: 114.5 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003324/0.2678, allocations: 1.823 MB / 0.7865 GB, free: 1.34 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.2688, allocations: 0.5853 MB / 0.7871 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.2689, allocations: 3.938 kB / 0.7871 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.2691, allocations: 31.72 kB / 0.7872 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.027e-05/0.2692, allocations: 23.73 kB / 0.7872 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.2695, allocations: 67.86 kB / 0.7872 GB, free: 0.6211 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.2697, allocations: 171.5 kB / 0.7874 GB, free: 464 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.2699, allocations: 49.64 kB / 0.7875 GB, free: 412 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.294e-05/0.27, allocations: 51.73 kB / 0.7875 GB, free: 360 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.138e-05/0.2701, allocations: 63.69 kB / 0.7876 GB, free: 296 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.2701, allocations: 11.94 kB / 0.7876 GB, free: 284 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 2.198e-05/0.2701, allocations: 12 kB / 0.7876 GB, free: 272 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.444e-05/0.2702, allocations: 27.91 kB / 0.7876 GB, free: 244 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.119e-05/0.2703, allocations: 63.61 kB / 0.7877 GB, free: 180 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000177/0.2704, allocations: 139.3 kB / 0.7878 GB, free: 40 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 1.146e-05/0.2705, allocations: 4 kB / 0.7878 GB, free: 36 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2705, allocations: 0 / 0.7878 GB, free: 36 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.2705, allocations: 0 / 0.7878 GB, free: 36 kB / 0.6544 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.5011/0.7716, allocations: 473.4 kB / 0.7883 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.7717, allocations: 13 kB / 0.7883 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.028e-05/0.7718, allocations: 19.41 kB / 0.7883 GB, free: 48.81 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.7721, allocations: 234.4 kB / 0.7885 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.7721, allocations: 10.25 kB / 0.7885 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.7721, allocations: 11.28 kB / 0.7885 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.7724, allocations: 150.5 kB / 0.7887 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.7724, allocations: 0 / 0.7887 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.7725, allocations: 10.53 kB / 0.7887 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.7725, allocations: 2.406 kB / 0.7887 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.7727, allocations: 78.36 kB / 0.7888 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008067/0.7735, allocations: 0.7342 MB / 0.7895 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.7737, allocations: 45.73 kB / 0.7895 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.693e-05/0.7738, allocations: 33.69 kB / 0.7896 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.7738, allocations: 2.266 kB / 0.7896 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002133/0.774, allocations: 123.8 kB / 0.7897 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.774, allocations: 2.625 kB / 0.7897 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0004549/0.7745, allocations: 169.6 kB / 0.7898 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.7745, allocations: 135.5 kB / 0.79 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.7747, allocations: 204.8 kB / 0.7902 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.7747, allocations: 28.52 kB / 0.7902 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.7748, allocations: 124.8 kB / 0.7903 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.7748, allocations: 32.81 kB / 0.7903 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.773e-05/0.7749, allocations: 47.53 kB / 0.7904 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.985e-05/0.775, allocations: 329.9 kB / 0.7907 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.7751, allocations: 41.11 kB / 0.7907 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.7753, allocations: 141.1 kB / 0.7909 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.7755, allocations: 205.2 kB / 0.7911 GB, free: 46.76 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.7755, allocations: 0 / 0.7911 GB, free: 46.76 MB / 0.6544 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003455/0.7759, allocations: 213.5 kB / 0.7913 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.7759, allocations: 6.328 kB / 0.7913 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.7759, allocations: 5.531 kB / 0.7913 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.776, allocations: 3.781 kB / 0.7913 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.7761, allocations: 32.09 kB / 0.7913 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.7761, allocations: 8.5 kB / 0.7913 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.7763, allocations: 29.62 kB / 0.7914 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.7763, allocations: 13.38 kB / 0.7914 GB, free: 46.71 MB / 0.6544 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 9.209e-05/0.7764, allocations: 138.6 kB / 0.7915 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.7764, allocations: 18.38 kB / 0.7915 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.426e-05/0.7765, allocations: 23.83 kB / 0.7915 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.7765, allocations: 2.594 kB / 0.7915 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.7765, allocations: 3.719 kB / 0.7916 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.7765, allocations: 5.984 kB / 0.7916 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006221/0.7771, allocations: 0.5109 MB / 0.7921 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.7771, allocations: 3.656 kB / 0.7921 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.7772, allocations: 20.11 kB / 0.7921 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.7773, allocations: 4.156 kB / 0.7921 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.7773, allocations: 4.469 kB / 0.7921 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.7773, allocations: 2.469 kB / 0.7921 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.7773, allocations: 0 / 0.7921 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004409/0.7777, allocations: 362.8 kB / 0.7924 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.915e-05/0.7778, allocations: 94.08 kB / 0.7925 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.7778, allocations: 3.703 kB / 0.7925 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.778, allocations: 13.58 kB / 0.7925 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.944e-05/0.778, allocations: 24.67 kB / 0.7926 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.7781, allocations: 7 kB / 0.7926 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 8.472e-05/0.7781, allocations: 140.6 kB / 0.7927 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7782, allocations: 0 / 0.7927 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003176/0.7785, allocations: 27.78 kB / 0.7927 GB, free: 45.79 MB / 0.6544 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.0001252/0.7786, allocations: 107.4 kB / 0.7928 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003182/0.7789, allocations: 119.8 kB / 0.793 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.7789, allocations: 0 / 0.793 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.7791, allocations: 54.06 kB / 0.793 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005581/0.7797, allocations: 68.25 kB / 0.7931 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005801/0.7802, allocations: 365.4 kB / 0.7934 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001798/0.7804, allocations: 0.7251 MB / 0.7941 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.626e-05/0.7805, allocations: 24.53 kB / 0.7941 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of SimCode: time 2.1e-07/0.7805, allocations: 0 / 0.7941 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of Templates: time 0.003803/0.7843, allocations: 2.137 MB / 0.7962 GB, free: 44.62 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)