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.001109/0.001109, allocations: 104.8 kB / 16.27 MB, free: 5.98 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.00115/0.00115, allocations: 187.7 kB / 17.19 MB, free: 5.605 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.491/1.491, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8097/0.8097, allocations: 135.1 MB / 426.2 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001486, allocations: 79.88 kB / 0.506 GB, free: 8.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3756/0.3771, allocations: 80.91 MB / 0.585 GB, free: 25.12 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002597/0.3797, allocations: 1.81 MB / 0.5868 GB, free: 23.71 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007544/0.3805, allocations: 0.5417 MB / 0.5873 GB, free: 23.27 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.236e-05/0.3806, allocations: 3.719 kB / 0.5873 GB, free: 23.27 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.3807, allocations: 25.17 kB / 0.5873 GB, free: 23.25 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.072e-05/0.3808, allocations: 24.3 kB / 0.5874 GB, free: 23.23 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001824/0.381, allocations: 72.91 kB / 0.5874 GB, free: 23.17 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000174/0.3812, allocations: 172.5 kB / 0.5876 GB, free: 23.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.3813, allocations: 45.78 kB / 0.5876 GB, free: 23.05 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.65e-05/0.3814, allocations: 58.8 kB / 0.5877 GB, free: 23.01 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.346e-05/0.3815, allocations: 54.7 kB / 0.5877 GB, free: 22.97 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.451e-05/0.3815, allocations: 9.438 kB / 0.5877 GB, free: 22.97 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.206e-05/0.3815, allocations: 10.97 kB / 0.5878 GB, free: 22.97 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.888e-05/0.3816, allocations: 29.45 kB / 0.5878 GB, free: 22.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.347e-05/0.3816, allocations: 66.7 kB / 0.5878 GB, free: 22.9 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.3818, allocations: 136 kB / 0.588 GB, free: 22.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3818, allocations: 0 / 0.588 GB, free: 22.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3818, allocations: 1.312 kB / 0.588 GB, free: 22.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.3818, allocations: 0.5312 kB / 0.588 GB, free: 22.8 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.0005745/0.3824, allocations: 474.7 kB / 0.5884 GB, free: 22.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.3824, allocations: 11.05 kB / 0.5884 GB, free: 22.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.68e-05/0.3825, allocations: 19.28 kB / 0.5885 GB, free: 22.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.3826, allocations: 229.8 kB / 0.5887 GB, free: 22.09 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.3827, allocations: 12.8 kB / 0.5887 GB, free: 22.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.933e-05/0.3827, allocations: 22.48 kB / 0.5887 GB, free: 22.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002527/0.383, allocations: 149.5 kB / 0.5889 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.383, allocations: 0.6875 kB / 0.5889 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.383, allocations: 5.719 kB / 0.5889 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.383, allocations: 3.75 kB / 0.5889 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/0.3832, allocations: 78.2 kB / 0.5889 GB, free: 21.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007029/0.3839, allocations: 0.7386 MB / 0.5897 GB, free: 21.19 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.3841, allocations: 47.11 kB / 0.5897 GB, free: 21.15 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.3842, allocations: 39.36 kB / 0.5897 GB, free: 21.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.3842, allocations: 1.344 kB / 0.5897 GB, free: 21.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000214/0.3844, allocations: 126.1 kB / 0.5899 GB, free: 21.01 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.3845, allocations: 0 / 0.5899 GB, free: 21.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004556/0.3849, allocations: 163 kB / 0.59 GB, free: 20.92 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.385, allocations: 136.6 kB / 0.5902 GB, free: 20.76 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.3851, allocations: 203.6 kB / 0.5903 GB, free: 20.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.3851, allocations: 34.78 kB / 0.5904 GB, free: 20.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.528e-05/0.3852, allocations: 130.5 kB / 0.5905 GB, free: 20.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.3852, allocations: 36.36 kB / 0.5905 GB, free: 20.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.128e-05/0.3853, allocations: 40.61 kB / 0.5906 GB, free: 20.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.795e-05/0.3853, allocations: 327.3 kB / 0.5909 GB, free: 20.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.3855, allocations: 38.31 kB / 0.5909 GB, free: 20.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.3856, allocations: 153.3 kB / 0.5911 GB, free: 19.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.3859, allocations: 198 kB / 0.5913 GB, free: 19.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3859, allocations: 2.594 kB / 0.5913 GB, free: 19.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003608/0.3863, allocations: 204.8 kB / 0.5915 GB, free: 19.58 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.3863, allocations: 6.875 kB / 0.5915 GB, free: 19.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3863, allocations: 4.25 kB / 0.5915 GB, free: 19.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.3863, allocations: 6.938 kB / 0.5915 GB, free: 19.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.3864, allocations: 36.31 kB / 0.5915 GB, free: 19.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3865, allocations: 8.25 kB / 0.5915 GB, free: 19.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.3866, allocations: 30.92 kB / 0.5915 GB, free: 19.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.3866, allocations: 12 kB / 0.5916 GB, free: 19.51 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.299e-05/0.3867, allocations: 138.5 kB / 0.5917 GB, free: 19.37 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.3867, allocations: 23.94 kB / 0.5917 GB, free: 19.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.828e-05/0.3868, allocations: 25.39 kB / 0.5917 GB, free: 19.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3868, allocations: 0 / 0.5917 GB, free: 19.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3868, allocations: 4 kB / 0.5917 GB, free: 19.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3868, allocations: 4.484 kB / 0.5917 GB, free: 19.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005799/0.3874, allocations: 0.5078 MB / 0.5922 GB, free: 18.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3874, allocations: 2.031 kB / 0.5922 GB, free: 18.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.3875, allocations: 15.98 kB / 0.5923 GB, free: 18.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3875, allocations: 4 kB / 0.5923 GB, free: 18.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.3876, allocations: 11.92 kB / 0.5923 GB, free: 18.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.3876, allocations: 4 kB / 0.5923 GB, free: 18.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3876, allocations: 8.562 kB / 0.5923 GB, free: 18.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004006/0.388, allocations: 355.4 kB / 0.5926 GB, free: 18.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.131e-05/0.388, allocations: 98.58 kB / 0.5927 GB, free: 18.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.388, allocations: 4 kB / 0.5927 GB, free: 18.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.3882, allocations: 12.03 kB / 0.5927 GB, free: 18.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.235e-05/0.3883, allocations: 21.41 kB / 0.5928 GB, free: 18.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/0.3883, allocations: 4 kB / 0.5928 GB, free: 18.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.464e-05/0.3884, allocations: 140.6 kB / 0.5929 GB, free: 18.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.3884, allocations: 0.5312 kB / 0.5929 GB, free: 18.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.3887, allocations: 31.94 kB / 0.5929 GB, free: 18.02 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.122e-05/0.3888, allocations: 100.8 kB / 0.593 GB, free: 17.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002922/0.3891, allocations: 128.9 kB / 0.5931 GB, free: 17.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3891, allocations: 0 / 0.5931 GB, free: 17.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.3892, allocations: 47.91 kB / 0.5932 GB, free: 17.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005517/0.3898, allocations: 67.61 kB / 0.5933 GB, free: 17.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004741/0.3903, allocations: 380.8 kB / 0.5936 GB, free: 17.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.3904, allocations: 0.7258 MB / 0.5943 GB, free: 16.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.183e-05/0.3905, allocations: 20.5 kB / 0.5943 GB, free: 16.51 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3905, allocations: 0 / 0.5943 GB, free: 16.51 MB / 446.1 MB Notification: Performance of Templates: time 0.003057/0.3935, allocations: 2.138 MB / 0.5964 GB, free: 14.41 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)