Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset") translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.00129/0.001289, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001353/0.001353, allocations: 187.9 kB / 17.2 MB, free: 5.684 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.356/1.356, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8321/0.8321, allocations: 135.2 MB / 426.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 63.91 kB / 0.506 GB, free: 8.352 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3704, allocations: 80.92 MB / 0.5851 GB, free: 25.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002496/0.3729, allocations: 1.817 MB / 0.5868 GB, free: 23.89 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007563/0.3737, allocations: 0.529 MB / 0.5873 GB, free: 23.47 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.019e-05/0.3738, allocations: 8.625 kB / 0.5874 GB, free: 23.47 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.3739, allocations: 24.8 kB / 0.5874 GB, free: 23.45 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.103e-05/0.374, allocations: 32.59 kB / 0.5874 GB, free: 23.42 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001743/0.3742, allocations: 64.55 kB / 0.5875 GB, free: 23.37 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.3744, allocations: 171.6 kB / 0.5876 GB, free: 23.27 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.3745, allocations: 49.45 kB / 0.5877 GB, free: 23.24 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.332e-05/0.3746, allocations: 54.84 kB / 0.5877 GB, free: 23.21 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.204e-05/0.3746, allocations: 53.58 kB / 0.5878 GB, free: 23.17 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.3747, allocations: 10.88 kB / 0.5878 GB, free: 23.17 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.137e-05/0.3747, allocations: 11.12 kB / 0.5878 GB, free: 23.17 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.867e-05/0.3747, allocations: 37.06 kB / 0.5878 GB, free: 23.14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.611e-05/0.3748, allocations: 63.55 kB / 0.5879 GB, free: 23.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.3749, allocations: 135.1 kB / 0.588 GB, free: 22.99 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3749, allocations: 0 / 0.588 GB, free: 22.99 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3749, allocations: 1.219 kB / 0.588 GB, free: 22.99 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.375, allocations: 1.594 kB / 0.588 GB, free: 22.99 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.0005742/0.3755, allocations: 470.1 kB / 0.5885 GB, free: 22.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.3756, allocations: 12.64 kB / 0.5885 GB, free: 22.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.354e-05/0.3756, allocations: 17.94 kB / 0.5885 GB, free: 22.53 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.3758, allocations: 235.7 kB / 0.5887 GB, free: 22.28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.3758, allocations: 9.906 kB / 0.5887 GB, free: 22.28 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.3759, allocations: 11.94 kB / 0.5888 GB, free: 22.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002466/0.3761, allocations: 151.6 kB / 0.5889 GB, free: 22.15 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3761, allocations: 0 / 0.5889 GB, free: 22.15 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.3762, allocations: 7.625 kB / 0.5889 GB, free: 22.15 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.3762, allocations: 6.219 kB / 0.5889 GB, free: 22.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002091/0.3764, allocations: 72.06 kB / 0.589 GB, free: 22.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006739/0.3771, allocations: 0.7421 MB / 0.5897 GB, free: 21.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.3772, allocations: 47.55 kB / 0.5898 GB, free: 21.35 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.481e-05/0.3773, allocations: 36.33 kB / 0.5898 GB, free: 21.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.3773, allocations: 3.281 kB / 0.5898 GB, free: 21.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.3776, allocations: 125.8 kB / 0.5899 GB, free: 21.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.3776, allocations: 1.125 kB / 0.5899 GB, free: 21.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004382/0.378, allocations: 166.8 kB / 0.5901 GB, free: 21.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.3781, allocations: 134.6 kB / 0.5902 GB, free: 20.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.3782, allocations: 205.7 kB / 0.5904 GB, free: 20.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.3782, allocations: 30.92 kB / 0.5904 GB, free: 20.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.311e-05/0.3783, allocations: 125 kB / 0.5905 GB, free: 20.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.3783, allocations: 38.27 kB / 0.5906 GB, free: 20.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.3784, allocations: 40.33 kB / 0.5906 GB, free: 20.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.161e-05/0.3784, allocations: 326.8 kB / 0.5909 GB, free: 20.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.3785, allocations: 45.19 kB / 0.591 GB, free: 20.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.3787, allocations: 151.8 kB / 0.5911 GB, free: 20 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.3789, allocations: 199.4 kB / 0.5913 GB, free: 19.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3789, allocations: 1.5 kB / 0.5913 GB, free: 19.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003153/0.3792, allocations: 208.1 kB / 0.5915 GB, free: 19.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.3792, allocations: 8 kB / 0.5915 GB, free: 19.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3793, allocations: 8 kB / 0.5915 GB, free: 19.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3793, allocations: 7.984 kB / 0.5915 GB, free: 19.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.3794, allocations: 31.92 kB / 0.5916 GB, free: 19.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3794, allocations: 8.969 kB / 0.5916 GB, free: 19.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.3795, allocations: 28.58 kB / 0.5916 GB, free: 19.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.3796, allocations: 8 kB / 0.5916 GB, free: 19.46 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 7.225e-05/0.3796, allocations: 144.9 kB / 0.5917 GB, free: 19.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.459e-05/0.3797, allocations: 23.72 kB / 0.5918 GB, free: 19.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.553e-05/0.3797, allocations: 17.41 kB / 0.5918 GB, free: 19.28 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.3797, allocations: 0 / 0.5918 GB, free: 19.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3797, allocations: 4.875 kB / 0.5918 GB, free: 19.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.3797, allocations: 3.984 kB / 0.5918 GB, free: 19.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005486/0.3803, allocations: 0.5117 MB / 0.5923 GB, free: 18.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3803, allocations: 4.75 kB / 0.5923 GB, free: 18.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.3804, allocations: 15.98 kB / 0.5923 GB, free: 18.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3804, allocations: 1.062 kB / 0.5923 GB, free: 18.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.3804, allocations: 8 kB / 0.5923 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3804, allocations: 2.562 kB / 0.5923 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3805, allocations: 7.875 kB / 0.5923 GB, free: 18.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003701/0.3808, allocations: 359.6 kB / 0.5927 GB, free: 18.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.3809, allocations: 96.94 kB / 0.5928 GB, free: 18.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.3809, allocations: 4 kB / 0.5928 GB, free: 18.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.3811, allocations: 16.02 kB / 0.5928 GB, free: 18.17 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.3811, allocations: 21.14 kB / 0.5928 GB, free: 18.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.3811, allocations: 4 kB / 0.5928 GB, free: 18.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.017e-05/0.3812, allocations: 141.7 kB / 0.5929 GB, free: 18.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3812, allocations: 0 / 0.5929 GB, free: 18.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.3815, allocations: 28 kB / 0.593 GB, free: 17.98 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 8.552e-05/0.3816, allocations: 101.2 kB / 0.5931 GB, free: 17.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002934/0.3819, allocations: 126 kB / 0.5932 GB, free: 17.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3819, allocations: 0.5312 kB / 0.5932 GB, free: 17.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.3821, allocations: 53.53 kB / 0.5932 GB, free: 17.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005127/0.3826, allocations: 67.23 kB / 0.5933 GB, free: 17.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000465/0.383, allocations: 383.4 kB / 0.5937 GB, free: 17.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.3832, allocations: 0.7226 MB / 0.5944 GB, free: 16.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.3832, allocations: 20.31 kB / 0.5944 GB, free: 16.46 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3832, allocations: 0 / 0.5944 GB, free: 16.46 MB / 446.1 MB Notification: Performance of Templates: time 0.002996/0.3862, allocations: 2.134 MB / 0.5965 GB, free: 14.37 MB / 446.1 MB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)