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.001115/0.001115, allocations: 109 kB / 16.41 MB, free: 6.027 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.001163/0.001163, allocations: 186.6 kB / 17.34 MB, free: 5.633 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.328/1.328, 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.7916/0.7916, allocations: 135.1 MB / 426.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 68.27 kB / 0.5863 GB, free: 21.54 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1434, allocations: 80.92 MB / 0.6653 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003122/0.1466, allocations: 1.804 MB / 0.6671 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001069/0.1477, allocations: 0.5493 MB / 0.6676 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.1478, allocations: 0 / 0.6676 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.148, allocations: 23.73 kB / 0.6676 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.768e-05/0.1481, allocations: 23.73 kB / 0.6677 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.1484, allocations: 71.84 kB / 0.6677 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002414/0.1486, allocations: 171.4 kB / 0.6679 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.1488, allocations: 57.64 kB / 0.6679 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.1489, allocations: 51.77 kB / 0.668 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.008e-05/0.149, allocations: 63.64 kB / 0.668 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.648e-05/0.149, allocations: 8 kB / 0.6681 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.259e-05/0.149, allocations: 12 kB / 0.6681 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.1491, allocations: 27.86 kB / 0.6681 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.771e-05/0.1491, allocations: 67.59 kB / 0.6682 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.1493, allocations: 135.4 kB / 0.6683 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1494, allocations: 0 / 0.6683 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.683e-06/0.1494, allocations: 0 / 0.6683 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.928e-06/0.1494, allocations: 0 / 0.6683 GB, free: 2.711 MB / 0.4981 GB 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.0007686/0.1502, allocations: 478.7 kB / 0.6687 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.1502, allocations: 9.109 kB / 0.6688 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.445e-05/0.1503, allocations: 24.75 kB / 0.6688 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.1506, allocations: 233.2 kB / 0.669 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1506, allocations: 8.375 kB / 0.669 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.1506, allocations: 16.36 kB / 0.669 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.1509, allocations: 153.4 kB / 0.6692 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.151, allocations: 0 / 0.6692 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.151, allocations: 8 kB / 0.6692 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.151, allocations: 4 kB / 0.6692 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002466/0.1512, allocations: 67.88 kB / 0.6692 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009187/0.1522, allocations: 0.7315 MB / 0.67 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.1523, allocations: 54.48 kB / 0.67 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.1524, allocations: 36.83 kB / 0.67 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.1525, allocations: 0 / 0.67 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.1527, allocations: 134.5 kB / 0.6702 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.1527, allocations: 0 / 0.6702 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004956/0.1532, allocations: 165.3 kB / 0.6703 GB, free: 416 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.112e-05/0.1533, allocations: 136.5 kB / 0.6705 GB, free: 248 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.1535, allocations: 198.8 kB / 0.6707 GB, free: 40 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.1535, allocations: 33.69 kB / 0.6707 GB, free: 0 / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.463e-05/0.1536, allocations: 139.7 kB / 0.6708 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.1537, allocations: 35.8 kB / 0.6709 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.535e-05/0.1538, allocations: 45.64 kB / 0.6709 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1539, allocations: 326.8 kB / 0.6712 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.154, allocations: 35.97 kB / 0.6712 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.1542, allocations: 156.6 kB / 0.6714 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.1545, allocations: 198.3 kB / 0.6716 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.1545, allocations: 4 kB / 0.6716 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003942/0.1549, allocations: 201 kB / 0.6718 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.1549, allocations: 11.94 kB / 0.6718 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.155, allocations: 4.5 kB / 0.6718 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.155, allocations: 8 kB / 0.6718 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.1551, allocations: 35.97 kB / 0.6718 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.1551, allocations: 7.938 kB / 0.6718 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.1553, allocations: 27.83 kB / 0.6719 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.1553, allocations: 11.98 kB / 0.6719 GB, free: 14.65 MB / 0.5137 GB 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 0.0001202/0.1554, allocations: 137.7 kB / 0.672 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.275e-05/0.1555, allocations: 19.8 kB / 0.672 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.358e-05/0.1555, allocations: 21.41 kB / 0.672 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1555, allocations: 4 kB / 0.6721 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1555, allocations: 0 / 0.6721 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1556, allocations: 3.984 kB / 0.6721 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007428/0.1563, allocations: 0.5095 MB / 0.6726 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.1563, allocations: 4.062 kB / 0.6726 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.1564, allocations: 27.92 kB / 0.6726 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.1565, allocations: 3.984 kB / 0.6726 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.1565, allocations: 4 kB / 0.6726 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1565, allocations: 0 / 0.6726 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.1565, allocations: 7.938 kB / 0.6726 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004986/0.157, allocations: 359.2 kB / 0.6729 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.042e-05/0.1571, allocations: 92.92 kB / 0.673 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.1571, allocations: 4 kB / 0.673 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.1573, allocations: 8.031 kB / 0.673 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.358e-05/0.1573, allocations: 23.91 kB / 0.6731 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.1573, allocations: 4 kB / 0.6731 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001147/0.1575, allocations: 144.6 kB / 0.6732 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.1e-07/0.1575, allocations: 3.938 kB / 0.6732 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003315/0.1578, allocations: 31.94 kB / 0.6732 GB, free: 13.14 MB / 0.5137 GB 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.0001244/0.1579, allocations: 103.2 kB / 0.6733 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003266/0.1583, allocations: 120.4 kB / 0.6735 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1583, allocations: 0 / 0.6735 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.1584, allocations: 55.89 kB / 0.6735 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/0.159, allocations: 68.08 kB / 0.6736 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000603/0.1596, allocations: 367 kB / 0.6739 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.16, allocations: 0.7281 MB / 0.6746 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.199e-05/0.16, allocations: 19.44 kB / 0.6747 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.16, allocations: 4 kB / 0.6747 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of Templates: time 0.003954/0.164, allocations: 2.139 MB / 0.6767 GB, free: 9.496 MB / 0.5137 GB 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)