Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.0009534/0.0009535, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006032/0.006032, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.495/1.495, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.872/2.872, allocations: 473.4 MB / 0.7469 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003828/0.0003829, allocations: 13.52 kB / 0.9158 GB, free: 33.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3489, 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.002297/0.3513, allocations: 1.531 MB / 1.076 GB, free: 6 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009839/0.3523, allocations: 0.5259 MB / 1.076 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.3524, allocations: 3.938 kB / 1.076 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.3525, allocations: 19.84 kB / 1.076 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.276e-05/0.3526, allocations: 19.81 kB / 1.076 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.3529, allocations: 59.86 kB / 1.076 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.3531, allocations: 155.5 kB / 1.076 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.3533, allocations: 45.64 kB / 1.076 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.59e-05/0.3534, allocations: 51.72 kB / 1.076 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.444e-05/0.3535, allocations: 47.66 kB / 1.077 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.3535, allocations: 4 kB / 1.077 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.894e-05/0.3536, allocations: 4 kB / 1.077 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.684e-05/0.3536, allocations: 19.86 kB / 1.077 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.616e-05/0.3537, allocations: 85.3 kB / 1.077 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.3539, allocations: 123.7 kB / 1.077 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3539, allocations: 4 kB / 1.077 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.416e-06/0.3539, allocations: 0 / 1.077 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.3539, allocations: 3.938 kB / 1.077 GB, free: 4.828 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.0007204/0.3547, allocations: 454.8 kB / 1.077 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3547, allocations: 15.97 kB / 1.077 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.91e-05/0.3548, allocations: 20.75 kB / 1.077 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/0.355, allocations: 227.9 kB / 1.077 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.355, allocations: 8.375 kB / 1.077 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.391e-05/0.3551, allocations: 12.38 kB / 1.077 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003129/0.3554, allocations: 161 kB / 1.078 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3554, allocations: 0 / 1.078 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.3554, allocations: 8 kB / 1.078 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.3555, allocations: 4 kB / 1.078 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002473/0.3557, allocations: 83.88 kB / 1.078 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008673/0.3566, allocations: 0.7353 MB / 1.078 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/0.3568, allocations: 54.55 kB / 1.078 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.3569, allocations: 40.83 kB / 1.079 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.3569, allocations: 0 / 1.079 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/0.3572, allocations: 138.7 kB / 1.079 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.3572, allocations: 0 / 1.079 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0005086/0.3577, allocations: 177.4 kB / 1.079 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.291e-05/0.3578, allocations: 144.7 kB / 1.079 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.358, allocations: 206.8 kB / 1.079 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.358, allocations: 25.7 kB / 1.079 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.09e-05/0.3581, allocations: 131.8 kB / 1.079 GB, free: 1.953 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.3582, allocations: 31.55 kB / 1.079 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-05/0.3582, allocations: 25.72 kB / 1.079 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.3583, allocations: 330.8 kB / 1.08 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.3585, allocations: 47.97 kB / 1.08 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.3587, allocations: 156.1 kB / 1.08 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003237/0.359, allocations: 210.3 kB / 1.08 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.359, allocations: 0 / 1.08 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004067/0.3594, allocations: 225.3 kB / 1.08 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3594, allocations: 4 kB / 1.08 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.3595, allocations: 4 kB / 1.08 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3595, allocations: 8 kB / 1.08 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.3596, allocations: 35.91 kB / 1.08 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.3596, allocations: 11.98 kB / 1.08 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.3598, allocations: 36.02 kB / 1.08 GB, free: 0.7266 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.3598, allocations: 8 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.0001134/0.3599, allocations: 134 kB / 1.081 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.36, allocations: 23.8 kB / 1.081 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.288e-05/0.36, allocations: 21.39 kB / 1.081 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.36, allocations: 0 / 1.081 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.36, allocations: 4 kB / 1.081 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3601, allocations: 3.984 kB / 1.081 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007411/0.3608, allocations: 0.5365 MB / 1.081 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.3608, allocations: 4 kB / 1.081 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.3609, allocations: 20.3 kB / 1.081 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3609, allocations: 0 / 1.081 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.361, allocations: 15.98 kB / 1.081 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.361, allocations: 0 / 1.081 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.361, allocations: 3.938 kB / 1.081 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005/0.3615, allocations: 372.2 kB / 1.081 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.951e-05/0.3616, allocations: 92.92 kB / 1.082 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.3616, allocations: 8 kB / 1.082 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.3618, allocations: 16.03 kB / 1.082 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.3618, allocations: 15.91 kB / 1.082 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.3618, allocations: 8 kB / 1.082 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001078/0.362, allocations: 139.2 kB / 1.082 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.362, allocations: 0 / 1.082 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003142/0.3623, allocations: 28 kB / 1.082 GB, free: 15.18 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.0001145/0.3624, allocations: 111.7 kB / 1.082 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003355/0.3627, allocations: 128 kB / 1.082 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3628, allocations: 0 / 1.082 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.3629, allocations: 47.92 kB / 1.082 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005692/0.3635, allocations: 68.38 kB / 1.082 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005843/0.3641, allocations: 402.7 kB / 1.082 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.3644, allocations: 0.7206 MB / 1.083 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.642e-05/0.3644, 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.918e-05/0.3645, allocations: 19.44 kB / 1.083 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.3645, allocations: 0 / 1.083 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of Templates: time 0.004499/0.369, allocations: 1.814 MB / 1.085 GB, free: 11.82 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)