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.001499/0.001499, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001553/0.001553, allocations: 187 kB / 17.34 MB, free: 5.762 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.549/1.549, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7593/0.7593, allocations: 132.2 MB / 423.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 59.59 kB / 0.582 GB, free: 23.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1457, allocations: 80.21 MB / 0.6603 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002959/0.1487, allocations: 1.814 MB / 0.6621 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001001/0.1497, allocations: 0.5493 MB / 0.6626 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.1499, allocations: 3.938 kB / 0.6626 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.15, allocations: 27.73 kB / 0.6627 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.977e-05/0.1501, allocations: 27.73 kB / 0.6627 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.1503, allocations: 71.84 kB / 0.6628 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002264/0.1505, allocations: 167.5 kB / 0.6629 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.1507, allocations: 49.64 kB / 0.663 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.123e-05/0.1508, allocations: 63.72 kB / 0.663 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.478e-05/0.1509, allocations: 55.64 kB / 0.6631 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.846e-05/0.1509, allocations: 12 kB / 0.6631 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.937e-05/0.1509, allocations: 8 kB / 0.6631 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.182e-05/0.151, allocations: 23.92 kB / 0.6631 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.902e-05/0.1511, allocations: 71.53 kB / 0.6632 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.1512, allocations: 135.4 kB / 0.6633 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1512, allocations: 0 / 0.6633 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.603e-06/0.1513, allocations: 0 / 0.6633 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.1513, allocations: 0 / 0.6633 GB, free: 7.168 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.0007103/0.152, allocations: 478.7 kB / 0.6638 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.152, allocations: 8.031 kB / 0.6638 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.229e-05/0.1521, allocations: 20.75 kB / 0.6638 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.1524, allocations: 231.8 kB / 0.664 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.1524, allocations: 12.38 kB / 0.664 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.1524, allocations: 16.38 kB / 0.6641 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.1527, allocations: 146.2 kB / 0.6642 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1528, allocations: 3.984 kB / 0.6642 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.1528, allocations: 7.938 kB / 0.6642 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.1528, allocations: 4 kB / 0.6642 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002562/0.1531, allocations: 67.89 kB / 0.6643 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009101/0.154, allocations: 0.7353 MB / 0.665 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.1541, allocations: 46.55 kB / 0.665 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.1543, allocations: 32.84 kB / 0.6651 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.1543, allocations: 0 / 0.6651 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.1545, allocations: 138.7 kB / 0.6652 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.1545, allocations: 0 / 0.6652 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004841/0.155, allocations: 169.3 kB / 0.6654 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.1551, allocations: 132.8 kB / 0.6655 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.1553, allocations: 202.8 kB / 0.6657 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.1553, allocations: 29.7 kB / 0.6657 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.552e-05/0.1554, allocations: 131.8 kB / 0.6658 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.083e-05/0.1555, allocations: 31.56 kB / 0.6659 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.553e-05/0.1555, allocations: 41.7 kB / 0.6659 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1556, allocations: 334.8 kB / 0.6662 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.1558, allocations: 35.97 kB / 0.6663 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.156, allocations: 154.4 kB / 0.6664 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003195/0.1563, allocations: 202.4 kB / 0.6666 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1563, allocations: 0 / 0.6666 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004083/0.1567, allocations: 209.3 kB / 0.6668 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.1567, allocations: 8 kB / 0.6668 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.1568, allocations: 4 kB / 0.6668 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1568, allocations: 4 kB / 0.6668 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.1569, allocations: 35.91 kB / 0.6669 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.1569, allocations: 4 kB / 0.6669 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.1571, allocations: 27.83 kB / 0.6669 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.1571, allocations: 16.47 kB / 0.6669 GB, free: 3.113 MB / 0.4981 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.0001422/0.1573, allocations: 137.7 kB / 0.667 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.901e-05/0.1573, allocations: 15.81 kB / 0.667 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.1574, allocations: 25.39 kB / 0.6671 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.1574, allocations: 4 kB / 0.6671 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1574, allocations: 0 / 0.6671 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1574, allocations: 7.938 kB / 0.6671 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007549/0.1582, allocations: 0.5132 MB / 0.6676 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1582, allocations: 0 / 0.6676 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.1583, allocations: 15.98 kB / 0.6676 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.1583, allocations: 4 kB / 0.6676 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.1583, allocations: 7.938 kB / 0.6676 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.1583, allocations: 4 kB / 0.6676 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.1583, allocations: 11.86 kB / 0.6676 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005245/0.1589, allocations: 351 kB / 0.668 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.927e-05/0.159, allocations: 88.92 kB / 0.668 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.159, allocations: 8 kB / 0.6681 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.1592, allocations: 15.98 kB / 0.6681 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.1592, allocations: 19.86 kB / 0.6681 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.1593, allocations: 4 kB / 0.6681 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002283/0.1595, allocations: 139.2 kB / 0.6682 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1595, allocations: 0 / 0.6682 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003475/0.1599, allocations: 35.83 kB / 0.6683 GB, free: 1.613 MB / 0.4981 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.0001201/0.16, allocations: 110.8 kB / 0.6684 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003452/0.1603, allocations: 116.1 kB / 0.6685 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1603, allocations: 0 / 0.6685 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.1605, allocations: 52.91 kB / 0.6685 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005806/0.1611, allocations: 70.05 kB / 0.6686 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006257/0.1617, allocations: 386.3 kB / 0.669 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.162, allocations: 0.7242 MB / 0.6697 GB, free: 104 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.093e-05/0.1621, allocations: 19.42 kB / 0.6697 GB, free: 84 kB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.1621, allocations: 4 kB / 0.6697 GB, free: 80 kB / 0.4981 GB Notification: Performance of Templates: time 0.004232/0.1663, allocations: 2.147 MB / 0.6718 GB, free: 13.95 MB / 0.5137 GB 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 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)