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.001216/0.001216, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001483/0.001483, allocations: 192.8 kB / 16.13 MB, free: 6.703 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.426/1.426, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.892/2.892, allocations: 472.6 MB / 0.7447 GB, free: 5.012 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 62.25 kB / 0.9113 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3525, allocations: 159.9 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003404/0.356, allocations: 1.88 MB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.3571, allocations: 0.5492 MB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.3573, allocations: 4 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.3575, allocations: 15.8 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.723e-05/0.3576, allocations: 19.86 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.3578, allocations: 59.88 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002531/0.3581, allocations: 159.5 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.3583, allocations: 45.66 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.3584, allocations: 43.78 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.3585, allocations: 63.62 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.3585, allocations: 4 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.681e-05/0.3585, allocations: 11.94 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.125e-05/0.3586, allocations: 23.86 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.436e-05/0.3587, allocations: 67.61 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.3588, allocations: 123.8 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.3589, allocations: 0 / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.41e-07/0.3589, allocations: 3.938 kB / 1.07 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.3589, allocations: 0 / 1.07 GB, free: 7.859 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.0009059/0.3598, allocations: 474.7 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3598, allocations: 8.031 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.558e-05/0.3599, allocations: 16.75 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.3602, allocations: 235.9 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.3602, allocations: 8.375 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.3603, allocations: 12.38 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003469/0.3606, allocations: 145.1 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.3606, allocations: 0 / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.3607, allocations: 11.94 kB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.3607, allocations: 4 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/0.3609, allocations: 67.88 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.362, allocations: 0.7353 MB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.3622, allocations: 50.55 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.3623, allocations: 44.75 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.3623, allocations: 0 / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003152/0.3626, allocations: 126.7 kB / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.3627, allocations: 0 / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0005337/0.3632, allocations: 169.5 kB / 1.073 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.576e-05/0.3633, allocations: 132.5 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.3635, allocations: 206.7 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.3636, allocations: 29.7 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3637, allocations: 128 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.746e-05/0.3637, allocations: 31.55 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.842e-05/0.3638, allocations: 53.67 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.364, allocations: 326.8 kB / 1.073 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.3641, allocations: 43.91 kB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.3643, allocations: 147.9 kB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003441/0.3647, allocations: 198.4 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.3647, allocations: 0 / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000418/0.3651, allocations: 205.1 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.3651, allocations: 8 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3651, allocations: 7.984 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.18e-05/0.3652, allocations: 4.5 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.3653, allocations: 36.17 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.3653, allocations: 8 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.3655, allocations: 31.83 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.3655, allocations: 8 kB / 1.074 GB, free: 3.816 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.0001419/0.3657, allocations: 137.7 kB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.3657, allocations: 15.81 kB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.319e-05/0.3658, allocations: 21.41 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3658, allocations: 0 / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.3658, allocations: 11.98 kB / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3658, allocations: 3.938 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008714/0.3667, allocations: 0.5131 MB / 1.075 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3667, allocations: 0 / 1.075 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.3669, allocations: 15.98 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.3669, allocations: 8 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.3669, allocations: 0 / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.3669, allocations: 4 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.3669, allocations: 3.938 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006508/0.3676, allocations: 360.2 kB / 1.075 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.417e-05/0.3677, allocations: 92.92 kB / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.862e-05/0.3677, allocations: 0 / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.3679, allocations: 20.39 kB / 1.075 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.3679, allocations: 11.92 kB / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.368, allocations: 7.938 kB / 1.075 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000144/0.3681, allocations: 151.2 kB / 1.075 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.61e-07/0.3681, allocations: 0 / 1.075 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003495/0.3685, allocations: 31.91 kB / 1.075 GB, free: 2.316 MB / 0.8262 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.0001451/0.3686, allocations: 107.2 kB / 1.076 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003321/0.369, allocations: 124.5 kB / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.369, allocations: 0 / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.3691, allocations: 47.91 kB / 1.076 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000562/0.3697, allocations: 55.55 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000658/0.3704, allocations: 394.8 kB / 1.076 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.3708, allocations: 0.7206 MB / 1.077 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.67e-05/0.3709, allocations: 21.55 kB / 1.077 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.79e-05/0.3709, allocations: 15.44 kB / 1.077 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3709, allocations: 0 / 1.077 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of Templates: time 0.005224/0.3761, allocations: 1.822 MB / 1.079 GB, free: 14.98 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)