Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset") translateModel(IBPSA.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0008075/0.0008074, allocations: 92.66 kB / 16.67 MB, free: 6.594 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.0008745/0.0008745, allocations: 182.5 kB / 17.58 MB, free: 6.188 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.329/1.329, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7116/0.7116, allocations: 115.5 MB / 408.2 MB, free: 7.129 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.0003222, allocations: 8 kB / 496.5 MB, free: 15.71 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3718, allocations: 77.52 MB / 0.5606 GB, free: 36.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.001733/0.3736, allocations: 1.513 MB / 0.5621 GB, free: 35.13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007634/0.3744, allocations: 0.5228 MB / 0.5626 GB, free: 34.76 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.757e-05/0.3745, allocations: 3.219 kB / 0.5626 GB, free: 34.76 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.3746, allocations: 21.67 kB / 0.5626 GB, free: 34.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.142e-05/0.3747, allocations: 25.08 kB / 0.5626 GB, free: 34.73 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.3749, allocations: 58.98 kB / 0.5627 GB, free: 34.7 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.3751, allocations: 163.3 kB / 0.5628 GB, free: 34.62 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.3752, allocations: 52.5 kB / 0.5629 GB, free: 34.6 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.895e-05/0.3753, allocations: 42.72 kB / 0.5629 GB, free: 34.58 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.328e-05/0.3754, allocations: 50.17 kB / 0.563 GB, free: 34.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.3754, allocations: 3.906 kB / 0.563 GB, free: 34.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.567e-05/0.3755, allocations: 4.438 kB / 0.563 GB, free: 34.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.913e-05/0.3755, allocations: 29.62 kB / 0.563 GB, free: 34.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.563e-05/0.3756, allocations: 80.75 kB / 0.5631 GB, free: 34.47 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.3757, allocations: 86.23 kB / 0.5632 GB, free: 34.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3757, allocations: 1.922 kB / 0.5632 GB, free: 34.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3757, allocations: 1.281 kB / 0.5632 GB, free: 34.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.3757, allocations: 0 / 0.5632 GB, free: 34.45 MB / 446.1 MB 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.0006029/0.3763, allocations: 456.7 kB / 0.5636 GB, free: 34.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.3764, allocations: 12.56 kB / 0.5636 GB, free: 34.03 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.737e-05/0.3764, allocations: 19.94 kB / 0.5636 GB, free: 34.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.3766, allocations: 231.2 kB / 0.5638 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.3767, allocations: 9.406 kB / 0.5639 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.3767, allocations: 14.98 kB / 0.5639 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.377, allocations: 153.2 kB / 0.564 GB, free: 33.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.377, allocations: 5.5 kB / 0.564 GB, free: 33.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.377, allocations: 2.016 kB / 0.564 GB, free: 33.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.377, allocations: 6.938 kB / 0.564 GB, free: 33.68 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002467/0.3773, allocations: 86.48 kB / 0.5641 GB, free: 33.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007555/0.3781, allocations: 0.7325 MB / 0.5648 GB, free: 33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.3782, allocations: 58.88 kB / 0.5649 GB, free: 32.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.3783, allocations: 36.25 kB / 0.5649 GB, free: 32.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.3784, allocations: 2.281 kB / 0.5649 GB, free: 32.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002475/0.3786, allocations: 138.5 kB / 0.5651 GB, free: 32.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.3786, allocations: 1.125 kB / 0.5651 GB, free: 32.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.000508/0.3791, allocations: 182.6 kB / 0.5652 GB, free: 32.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.3792, allocations: 133.6 kB / 0.5654 GB, free: 32.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.3794, allocations: 199.3 kB / 0.5655 GB, free: 32.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.3794, allocations: 32.47 kB / 0.5656 GB, free: 32.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.955e-05/0.3795, allocations: 129.8 kB / 0.5657 GB, free: 32.33 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.3795, allocations: 33.41 kB / 0.5657 GB, free: 32.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.3795, allocations: 23.52 kB / 0.5658 GB, free: 32.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.471e-05/0.3796, allocations: 330.3 kB / 0.5661 GB, free: 31.97 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.3797, allocations: 43.03 kB / 0.5661 GB, free: 31.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.3799, allocations: 156 kB / 0.5663 GB, free: 31.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.3802, allocations: 214 kB / 0.5665 GB, free: 31.63 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.3802, allocations: 2.438 kB / 0.5665 GB, free: 31.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003962/0.3806, allocations: 214.3 kB / 0.5667 GB, free: 31.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3806, allocations: 10.12 kB / 0.5667 GB, free: 31.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.3807, allocations: 3.281 kB / 0.5667 GB, free: 31.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3807, allocations: 9.344 kB / 0.5667 GB, free: 31.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.3808, allocations: 40.23 kB / 0.5667 GB, free: 31.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.3808, allocations: 6.188 kB / 0.5667 GB, free: 31.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.381, allocations: 33.34 kB / 0.5668 GB, free: 31.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.381, allocations: 20.75 kB / 0.5668 GB, free: 31.5 MB / 446.1 MB 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 8.388e-05/0.3811, allocations: 139.7 kB / 0.5669 GB, free: 31.37 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.3811, allocations: 17.38 kB / 0.5669 GB, free: 31.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.162e-05/0.3812, allocations: 21.41 kB / 0.567 GB, free: 31.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3812, allocations: 7.797 kB / 0.567 GB, free: 31.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3812, allocations: 1.156 kB / 0.567 GB, free: 31.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3812, allocations: 2.719 kB / 0.567 GB, free: 31.35 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000698/0.3819, allocations: 0.5271 MB / 0.5675 GB, free: 30.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3819, allocations: 2.234 kB / 0.5675 GB, free: 30.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.382, allocations: 21.94 kB / 0.5675 GB, free: 30.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3821, allocations: 2.766 kB / 0.5675 GB, free: 30.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.3821, allocations: 4.094 kB / 0.5675 GB, free: 30.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.3821, allocations: 1.094 kB / 0.5675 GB, free: 30.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.3821, allocations: 10.09 kB / 0.5675 GB, free: 30.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004625/0.3826, allocations: 373.3 kB / 0.5679 GB, free: 30.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.458e-05/0.3826, allocations: 103.1 kB / 0.568 GB, free: 30.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.3826, allocations: 2 kB / 0.568 GB, free: 30.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.3828, allocations: 18.98 kB / 0.568 GB, free: 30.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/0.3829, allocations: 21.72 kB / 0.568 GB, free: 30.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.3829, allocations: 5.688 kB / 0.568 GB, free: 30.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.469e-05/0.383, allocations: 141.1 kB / 0.5682 GB, free: 30.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.383, allocations: 3 kB / 0.5682 GB, free: 30.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003304/0.3833, allocations: 27.53 kB / 0.5682 GB, free: 30.43 MB / 446.1 MB 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 9.255e-05/0.3834, allocations: 103 kB / 0.5683 GB, free: 30.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003351/0.3838, allocations: 126.9 kB / 0.5684 GB, free: 30.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3838, allocations: 0 / 0.5684 GB, free: 30.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.3839, allocations: 59.7 kB / 0.5685 GB, free: 30.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005773/0.3845, allocations: 58.31 kB / 0.5685 GB, free: 30.28 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005293/0.3851, allocations: 431.5 kB / 0.5689 GB, free: 29.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.3852, allocations: 0.7227 MB / 0.5696 GB, free: 29.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.623e-05/0.3853, allocations: 19 kB / 0.5697 GB, free: 29.25 MB / 446.1 MB Notification: Performance of SimCode: time 1.021e-06/0.3853, allocations: 0 / 0.5697 GB, free: 29.25 MB / 446.1 MB Notification: Performance of Templates: time 0.004341/0.3896, allocations: 2.121 MB / 0.5717 GB, free: 29.08 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)