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.001045/0.001045, allocations: 102.4 kB / 16.35 MB, free: 5.824 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.001055/0.001055, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.285/1.285, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7691/0.7691, allocations: 135.1 MB / 426.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 59.91 kB / 0.5067 GB, free: 7.672 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3669, allocations: 80.92 MB / 0.5858 GB, free: 25.4 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.00252/0.3694, allocations: 1.814 MB / 0.5875 GB, free: 23.99 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007625/0.3702, allocations: 0.539 MB / 0.5881 GB, free: 23.56 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.864e-05/0.3703, allocations: 4.344 kB / 0.5881 GB, free: 23.56 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.3704, allocations: 29.05 kB / 0.5881 GB, free: 23.54 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.858e-05/0.3705, allocations: 22.27 kB / 0.5881 GB, free: 23.52 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.3707, allocations: 66.7 kB / 0.5882 GB, free: 23.46 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001876/0.3709, allocations: 173.5 kB / 0.5883 GB, free: 23.36 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.3711, allocations: 54.19 kB / 0.5884 GB, free: 23.33 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.401e-05/0.3711, allocations: 47.42 kB / 0.5884 GB, free: 23.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.156e-05/0.3712, allocations: 60.98 kB / 0.5885 GB, free: 23.26 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.3712, allocations: 10.09 kB / 0.5885 GB, free: 23.26 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.69e-05/0.3713, allocations: 11.41 kB / 0.5885 GB, free: 23.26 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.954e-05/0.3713, allocations: 32.12 kB / 0.5885 GB, free: 23.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.545e-05/0.3713, allocations: 67.75 kB / 0.5886 GB, free: 23.18 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.3715, allocations: 131.8 kB / 0.5887 GB, free: 23.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3715, allocations: 5.188 kB / 0.5887 GB, free: 23.08 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3715, allocations: 5 kB / 0.5887 GB, free: 23.08 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.3715, allocations: 0 / 0.5887 GB, free: 23.08 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.0005585/0.3721, allocations: 467.5 kB / 0.5892 GB, free: 22.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/0.3721, allocations: 10.95 kB / 0.5892 GB, free: 22.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.285e-05/0.3722, allocations: 17.66 kB / 0.5892 GB, free: 22.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002113/0.3724, allocations: 251.5 kB / 0.5895 GB, free: 22.37 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.3724, allocations: 8.25 kB / 0.5895 GB, free: 22.36 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.3724, allocations: 13 kB / 0.5895 GB, free: 22.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002389/0.3727, allocations: 156.8 kB / 0.5896 GB, free: 22.23 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.3727, allocations: 0 / 0.5896 GB, free: 22.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.3727, allocations: 1.156 kB / 0.5896 GB, free: 22.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.3727, allocations: 3.812 kB / 0.5896 GB, free: 22.23 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.3729, allocations: 74.59 kB / 0.5897 GB, free: 22.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006671/0.3736, allocations: 0.7388 MB / 0.5904 GB, free: 21.47 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.3737, allocations: 46.22 kB / 0.5905 GB, free: 21.44 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.156e-05/0.3738, allocations: 36.42 kB / 0.5905 GB, free: 21.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.3739, allocations: 6.078 kB / 0.5905 GB, free: 21.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001759/0.374, allocations: 120.4 kB / 0.5906 GB, free: 21.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.3741, allocations: 0 / 0.5906 GB, free: 21.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004047/0.3745, allocations: 172 kB / 0.5908 GB, free: 21.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.3745, allocations: 133.1 kB / 0.5909 GB, free: 21.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.3746, allocations: 207.1 kB / 0.5911 GB, free: 20.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.3747, allocations: 30.3 kB / 0.5911 GB, free: 20.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.781e-05/0.3747, allocations: 130.3 kB / 0.5913 GB, free: 20.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.3747, allocations: 39.52 kB / 0.5913 GB, free: 20.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.3748, allocations: 37.7 kB / 0.5913 GB, free: 20.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.456e-05/0.3748, allocations: 326.8 kB / 0.5917 GB, free: 20.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.375, allocations: 44.75 kB / 0.5917 GB, free: 20.19 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.3751, allocations: 145.2 kB / 0.5918 GB, free: 20 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.3753, allocations: 207.1 kB / 0.592 GB, free: 19.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3753, allocations: 256 / 0.592 GB, free: 19.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003054/0.3756, allocations: 208.8 kB / 0.5922 GB, free: 19.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.3757, allocations: 8 kB / 0.5922 GB, free: 19.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3757, allocations: 14.3 kB / 0.5923 GB, free: 19.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.3757, allocations: 4 kB / 0.5923 GB, free: 19.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3758, allocations: 31.92 kB / 0.5923 GB, free: 19.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.3758, allocations: 8 kB / 0.5923 GB, free: 19.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.376, allocations: 27.83 kB / 0.5923 GB, free: 19.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.376, allocations: 9.094 kB / 0.5923 GB, free: 19.45 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 9.558e-05/0.3761, allocations: 143.2 kB / 0.5925 GB, free: 19.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.788e-05/0.3761, allocations: 23.72 kB / 0.5925 GB, free: 19.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.211e-05/0.3762, allocations: 22.78 kB / 0.5925 GB, free: 19.26 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.3762, allocations: 3.984 kB / 0.5925 GB, free: 19.26 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.3762, allocations: 4 kB / 0.5925 GB, free: 19.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3762, allocations: 1.469 kB / 0.5925 GB, free: 19.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005921/0.3768, allocations: 0.5077 MB / 0.593 GB, free: 18.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3768, allocations: 4 kB / 0.593 GB, free: 18.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.3769, allocations: 19.92 kB / 0.593 GB, free: 18.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3769, allocations: 0.5938 kB / 0.593 GB, free: 18.67 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.377, allocations: 8 kB / 0.593 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.377, allocations: 1.094 kB / 0.593 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.377, allocations: 3.938 kB / 0.593 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003949/0.3774, allocations: 362.8 kB / 0.5934 GB, free: 18.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.144e-05/0.3774, allocations: 96.86 kB / 0.5935 GB, free: 18.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.3775, allocations: 4.031 kB / 0.5935 GB, free: 18.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.3776, allocations: 17.2 kB / 0.5935 GB, free: 18.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.079e-05/0.3777, allocations: 19.92 kB / 0.5935 GB, free: 18.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.3777, allocations: 5.25 kB / 0.5935 GB, free: 18.13 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.098e-05/0.3778, allocations: 136.6 kB / 0.5937 GB, free: 18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3778, allocations: 0 / 0.5937 GB, free: 18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003206/0.3781, allocations: 28.53 kB / 0.5937 GB, free: 17.97 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.0001092/0.3782, allocations: 108.6 kB / 0.5938 GB, free: 17.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002918/0.3785, allocations: 114.8 kB / 0.5939 GB, free: 17.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.3785, allocations: 0.5 kB / 0.5939 GB, free: 17.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.3787, allocations: 52.72 kB / 0.594 GB, free: 17.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000508/0.3792, allocations: 63.42 kB / 0.594 GB, free: 17.63 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005052/0.3797, allocations: 348.4 kB / 0.5943 GB, free: 17.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.3798, allocations: 0.7235 MB / 0.5951 GB, free: 16.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.122e-05/0.3799, allocations: 14.38 kB / 0.5951 GB, free: 16.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.721e-05/0.3799, allocations: 24.88 kB / 0.5951 GB, free: 16.47 MB / 446.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3799, allocations: 0 / 0.5951 GB, free: 16.47 MB / 446.1 MB Notification: Performance of Templates: time 0.004026/0.384, allocations: 2.006 MB / 0.597 GB, free: 14.51 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 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)