Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.0009764/0.0009765, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.008352/0.008353, allocations: 170.4 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.904/2.904, allocations: 473.4 MB / 0.7469 GB, free: 6.039 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000408/0.0004081, allocations: 11.25 kB / 0.9158 GB, free: 33.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3155, allocations: 162.2 MB / 1.074 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00221/0.3178, allocations: 1.528 MB / 1.076 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009391/0.3187, allocations: 0.5337 MB / 1.076 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.812e-05/0.3189, allocations: 3.938 kB / 1.076 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.319, allocations: 15.86 kB / 1.076 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.494e-05/0.3191, allocations: 19.73 kB / 1.076 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002211/0.3193, allocations: 59.94 kB / 1.076 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002238/0.3195, allocations: 155.5 kB / 1.076 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.3197, allocations: 49.64 kB / 1.076 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.722e-05/0.3198, allocations: 47.72 kB / 1.076 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.737e-05/0.3199, allocations: 51.66 kB / 1.077 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.3199, allocations: 4 kB / 1.077 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.136e-05/0.3199, allocations: 4 kB / 1.077 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.778e-05/0.32, allocations: 23.84 kB / 1.077 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.089e-05/0.3201, allocations: 81.31 kB / 1.077 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.3203, allocations: 119.7 kB / 1.077 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3204, allocations: 4 kB / 1.077 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.284e-06/0.3204, allocations: 0 / 1.077 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.3204, allocations: 0 / 1.077 GB, free: 4.832 MB / 0.8262 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.000729/0.3211, allocations: 454.8 kB / 1.077 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.3212, allocations: 12.03 kB / 1.077 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.943e-05/0.3212, allocations: 20.75 kB / 1.077 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.3215, allocations: 231.8 kB / 1.077 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.3216, allocations: 8.375 kB / 1.077 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.3216, allocations: 12.38 kB / 1.077 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003355/0.3219, allocations: 165 kB / 1.078 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.322, allocations: 0 / 1.078 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.322, allocations: 8 kB / 1.078 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.322, allocations: 0 / 1.078 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002488/0.3223, allocations: 83.88 kB / 1.078 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009999/0.3233, allocations: 0.7354 MB / 1.078 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.3234, allocations: 54.48 kB / 1.078 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.3236, allocations: 44.83 kB / 1.079 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.3236, allocations: 0 / 1.079 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002943/0.3239, allocations: 130.6 kB / 1.079 GB, free: 2.691 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.3239, allocations: 0 / 1.079 GB, free: 2.691 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0005461/0.3244, allocations: 181.3 kB / 1.079 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.583e-05/0.3245, allocations: 140.8 kB / 1.079 GB, free: 2.34 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002048/0.3248, allocations: 202.7 kB / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.3248, allocations: 33.7 kB / 1.079 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.285e-05/0.3249, allocations: 127.8 kB / 1.079 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.3249, allocations: 35.55 kB / 1.079 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.325, allocations: 29.7 kB / 1.079 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3251, allocations: 326.8 kB / 1.08 GB, free: 1.562 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.3253, allocations: 47.97 kB / 1.08 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.3255, allocations: 148.6 kB / 1.08 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003431/0.3258, allocations: 218.2 kB / 1.08 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3259, allocations: 4 kB / 1.08 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004192/0.3263, allocations: 225.5 kB / 1.08 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.3263, allocations: 4 kB / 1.08 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3263, allocations: 4.047 kB / 1.08 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.3264, allocations: 11.97 kB / 1.08 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.3265, allocations: 35.92 kB / 1.08 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.3265, allocations: 4 kB / 1.08 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.3267, allocations: 36.02 kB / 1.08 GB, free: 0.7305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.3267, allocations: 12 kB / 1.08 GB, free: 0.7188 MB / 0.8262 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.0001288/0.3268, allocations: 137.7 kB / 1.081 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.3268, allocations: 15.81 kB / 1.081 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.441e-05/0.3269, allocations: 21.41 kB / 1.081 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.3269, allocations: 0 / 1.081 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3269, allocations: 0 / 1.081 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.3269, allocations: 7.984 kB / 1.081 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008171/0.3277, allocations: 0.525 MB / 1.081 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3278, allocations: 11.98 kB / 1.081 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.3279, allocations: 19.92 kB / 1.081 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.3279, allocations: 4 kB / 1.081 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.3279, allocations: 0 / 1.081 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3279, allocations: 4 kB / 1.081 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3279, allocations: 3.938 kB / 1.081 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005556/0.3285, allocations: 376.2 kB / 1.081 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.3286, allocations: 92.92 kB / 1.082 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.3286, allocations: 4 kB / 1.082 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.3288, allocations: 24.33 kB / 1.082 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.049e-05/0.3288, allocations: 11.92 kB / 1.082 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.3289, allocations: 8 kB / 1.082 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001193/0.329, allocations: 139.2 kB / 1.082 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.329, allocations: 4 kB / 1.082 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003212/0.3293, allocations: 28 kB / 1.082 GB, free: 15.19 MB / 0.8419 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.0001435/0.3295, allocations: 111.3 kB / 1.082 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003546/0.3298, allocations: 128.1 kB / 1.082 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3298, allocations: 0 / 1.082 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.33, allocations: 51.91 kB / 1.082 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006098/0.3306, allocations: 61.91 kB / 1.082 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006006/0.3312, allocations: 402.7 kB / 1.082 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.3316, allocations: 0.7283 MB / 1.083 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.471e-05/0.3316, allocations: 21.86 kB / 1.083 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.398e-05/0.3317, allocations: 19.44 kB / 1.083 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.3317, allocations: 0 / 1.083 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of Templates: time 0.004882/0.3366, allocations: 1.808 MB / 1.085 GB, free: 11.83 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_1.6_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)