Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Utilities.Math.Examples.IntegratorWithReset") translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001391/0.00139, allocations: 112.6 kB / 16.37 MB, free: 6 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.001579/0.001579, allocations: 196 kB / 17.31 MB, free: 5.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.396/1.396, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7991/0.7991, allocations: 132.2 MB / 423.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 71.89 kB / 0.5032 GB, free: 10.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.353, allocations: 80.17 MB / 0.5815 GB, free: 27.53 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002648/0.3557, allocations: 1.811 MB / 0.5833 GB, free: 26.12 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008006/0.3565, allocations: 0.5498 MB / 0.5838 GB, free: 25.68 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.128e-05/0.3566, allocations: 4.406 kB / 0.5838 GB, free: 25.68 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.3567, allocations: 21.08 kB / 0.5838 GB, free: 25.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.13e-05/0.3568, allocations: 27.81 kB / 0.5838 GB, free: 25.64 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001861/0.357, allocations: 73.08 kB / 0.5839 GB, free: 25.58 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.3572, allocations: 172.3 kB / 0.5841 GB, free: 25.48 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.3574, allocations: 47.92 kB / 0.5841 GB, free: 25.45 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.956e-05/0.3574, allocations: 57.97 kB / 0.5842 GB, free: 25.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.478e-05/0.3575, allocations: 58.48 kB / 0.5842 GB, free: 25.37 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.3575, allocations: 9.562 kB / 0.5842 GB, free: 25.37 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.972e-05/0.3576, allocations: 10.94 kB / 0.5843 GB, free: 25.37 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.94e-05/0.3576, allocations: 30.16 kB / 0.5843 GB, free: 25.35 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.839e-05/0.3577, allocations: 74.41 kB / 0.5844 GB, free: 25.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.3578, allocations: 134.8 kB / 0.5845 GB, free: 25.2 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3578, allocations: 0 / 0.5845 GB, free: 25.2 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3578, allocations: 0 / 0.5845 GB, free: 25.2 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.3578, allocations: 0 / 0.5845 GB, free: 25.2 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.0006157/0.3585, allocations: 471.1 kB / 0.5849 GB, free: 24.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.3585, allocations: 8.938 kB / 0.5849 GB, free: 24.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.536e-05/0.3585, allocations: 24.06 kB / 0.585 GB, free: 24.73 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.3588, allocations: 233.6 kB / 0.5852 GB, free: 24.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.3588, allocations: 9.094 kB / 0.5852 GB, free: 24.49 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.3588, allocations: 20.64 kB / 0.5852 GB, free: 24.48 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/0.3591, allocations: 155 kB / 0.5854 GB, free: 24.35 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3591, allocations: 2.094 kB / 0.5854 GB, free: 24.35 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.3591, allocations: 4 kB / 0.5854 GB, free: 24.35 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.3591, allocations: 3.531 kB / 0.5854 GB, free: 24.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002073/0.3594, allocations: 70 kB / 0.5854 GB, free: 24.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007345/0.3601, allocations: 0.734 MB / 0.5862 GB, free: 23.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.3603, allocations: 55.84 kB / 0.5862 GB, free: 23.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.992e-05/0.3604, allocations: 36.39 kB / 0.5862 GB, free: 23.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.3604, allocations: 2.938 kB / 0.5862 GB, free: 23.53 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.3606, allocations: 125.3 kB / 0.5864 GB, free: 23.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.3606, allocations: 0 / 0.5864 GB, free: 23.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004376/0.3611, allocations: 170.8 kB / 0.5865 GB, free: 23.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.3611, allocations: 131.9 kB / 0.5867 GB, free: 23.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.3613, allocations: 201.2 kB / 0.5868 GB, free: 23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.3613, allocations: 30.95 kB / 0.5869 GB, free: 22.97 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.3613, allocations: 132.5 kB / 0.587 GB, free: 22.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.3614, allocations: 37.16 kB / 0.587 GB, free: 22.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.567e-05/0.3614, allocations: 36.56 kB / 0.5871 GB, free: 22.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.957e-05/0.3615, allocations: 338.2 kB / 0.5874 GB, free: 22.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.3616, allocations: 36.69 kB / 0.5874 GB, free: 22.44 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.3618, allocations: 154.6 kB / 0.5876 GB, free: 22.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.362, allocations: 204.1 kB / 0.5878 GB, free: 22.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.362, allocations: 0.875 kB / 0.5878 GB, free: 22.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003644/0.3624, allocations: 200.1 kB / 0.588 GB, free: 21.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.3624, allocations: 7.25 kB / 0.588 GB, free: 21.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.3625, allocations: 3.719 kB / 0.588 GB, free: 21.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3625, allocations: 6.031 kB / 0.588 GB, free: 21.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.3626, allocations: 36.81 kB / 0.588 GB, free: 21.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.3626, allocations: 9.125 kB / 0.588 GB, free: 21.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001398/0.3628, allocations: 34.17 kB / 0.5881 GB, free: 21.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.3628, allocations: 16.03 kB / 0.5881 GB, free: 21.93 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.564e-05/0.3629, allocations: 136.1 kB / 0.5882 GB, free: 21.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.006e-05/0.3629, allocations: 21.58 kB / 0.5882 GB, free: 21.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.194e-05/0.363, allocations: 17.84 kB / 0.5882 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-06/0.363, allocations: 3.875 kB / 0.5882 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.363, allocations: 1.219 kB / 0.5882 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.363, allocations: 1.25 kB / 0.5882 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000649/0.3637, allocations: 0.5062 MB / 0.5887 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.3637, allocations: 1.344 kB / 0.5887 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.3638, allocations: 19.2 kB / 0.5888 GB, free: 21.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3638, allocations: 1.156 kB / 0.5888 GB, free: 21.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.3638, allocations: 12.83 kB / 0.5888 GB, free: 21.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3638, allocations: 5.375 kB / 0.5888 GB, free: 21.28 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3638, allocations: 5.156 kB / 0.5888 GB, free: 21.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004164/0.3643, allocations: 356.1 kB / 0.5891 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.737e-05/0.3643, allocations: 94.11 kB / 0.5892 GB, free: 20.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.3643, allocations: 7.625 kB / 0.5892 GB, free: 20.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.3645, allocations: 11.25 kB / 0.5892 GB, free: 20.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.516e-05/0.3646, allocations: 20.05 kB / 0.5893 GB, free: 20.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.3646, allocations: 11 kB / 0.5893 GB, free: 20.85 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.229e-05/0.3647, allocations: 137 kB / 0.5894 GB, free: 20.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3647, allocations: 0 / 0.5894 GB, free: 20.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003396/0.365, allocations: 28.97 kB / 0.5894 GB, free: 20.75 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 0.0001229/0.3652, allocations: 109.1 kB / 0.5895 GB, free: 20.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000319/0.3655, allocations: 119.2 kB / 0.5896 GB, free: 20.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3655, allocations: 0.7812 kB / 0.5896 GB, free: 20.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.3656, allocations: 50.06 kB / 0.5897 GB, free: 20.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000545/0.3662, allocations: 68.03 kB / 0.5898 GB, free: 20.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005286/0.3667, allocations: 359.2 kB / 0.5901 GB, free: 20.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.3669, allocations: 0.723 MB / 0.5908 GB, free: 19.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.638e-05/0.367, allocations: 17.8 kB / 0.5908 GB, free: 19.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.214e-05/0.367, allocations: 16.66 kB / 0.5908 GB, free: 19.54 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.367, allocations: 0 / 0.5908 GB, free: 19.54 MB / 446.1 MB Notification: Performance of Templates: time 0.004538/0.3716, allocations: 2.006 MB / 0.5928 GB, free: 18.18 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)