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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.725/0.725, allocations: 133.4 MB / 150.1 MB, free: 11.13 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 222.9 MB / 404.7 MB, free: 6.09 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00097/0.0009699, allocations: 106.7 kB / 485.9 MB, free: 7.242 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 52.11 kB / 0.5636 GB, free: 69.94 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1539, allocations: 80.43 MB / 0.6421 GB, free: 5.445 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003474/0.1574, allocations: 1.858 MB / 0.644 GB, free: 3.566 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.1586, allocations: 0.5378 MB / 0.6445 GB, free: 3.023 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/0.1588, allocations: 4 kB / 0.6445 GB, free: 3.02 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.159, allocations: 19.78 kB / 0.6445 GB, free: 3 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.1592, allocations: 23.8 kB / 0.6445 GB, free: 2.977 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002919/0.1595, allocations: 59.94 kB / 0.6446 GB, free: 2.918 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002726/0.1598, allocations: 171.4 kB / 0.6448 GB, free: 2.75 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.16, allocations: 41.66 kB / 0.6448 GB, free: 2.711 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.1601, allocations: 43.8 kB / 0.6448 GB, free: 2.668 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.1602, allocations: 63.61 kB / 0.6449 GB, free: 2.605 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.1602, allocations: 12 kB / 0.6449 GB, free: 2.594 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.9e-05/0.1603, allocations: 8 kB / 0.6449 GB, free: 2.586 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 3.406e-05/0.1603, allocations: 23.86 kB / 0.6449 GB, free: 2.562 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 9.356e-05/0.1604, allocations: 63.59 kB / 0.645 GB, free: 2.5 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.1606, allocations: 115.8 kB / 0.6451 GB, free: 2.387 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1606, allocations: 4 kB / 0.6451 GB, free: 2.383 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1606, allocations: 0 / 0.6451 GB, free: 2.383 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.1606, allocations: 0 / 0.6451 GB, free: 2.383 MB / 442.7 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.0008214/0.1615, allocations: 478.7 kB / 0.6456 GB, free: 1.867 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.1615, allocations: 12.03 kB / 0.6456 GB, free: 1.855 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.302e-05/0.1616, allocations: 20.66 kB / 0.6456 GB, free: 1.836 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.1619, allocations: 231.9 kB / 0.6458 GB, free: 1.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.1619, allocations: 8.375 kB / 0.6458 GB, free: 1.562 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.696e-05/0.162, allocations: 16.28 kB / 0.6458 GB, free: 1.547 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.1623, allocations: 156 kB / 0.646 GB, free: 1.375 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1623, allocations: 0 / 0.646 GB, free: 1.375 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.1623, allocations: 8 kB / 0.646 GB, free: 1.367 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.1623, allocations: 4 kB / 0.646 GB, free: 1.363 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.1626, allocations: 63.89 kB / 0.6461 GB, free: 1.301 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.1637, allocations: 0.7431 MB / 0.6468 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001522/0.1638, allocations: 54.55 kB / 0.6468 GB, free: 440 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.164, allocations: 28.84 kB / 0.6469 GB, free: 408 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.164, allocations: 0 / 0.6469 GB, free: 408 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003078/0.1643, allocations: 146.5 kB / 0.647 GB, free: 236 kB / 442.7 MB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.1643, allocations: 0 / 0.647 GB, free: 236 kB / 442.7 MB Notification: Performance of matching and sorting (n=11): time 0.000484/0.1648, allocations: 161.2 kB / 0.6472 GB, free: 68 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.49e-05/0.1649, allocations: 136.5 kB / 0.6473 GB, free: 15.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.1651, allocations: 198.8 kB / 0.6475 GB, free: 15.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.1651, allocations: 29.95 kB / 0.6475 GB, free: 15.66 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.564e-05/0.1652, allocations: 139.8 kB / 0.6476 GB, free: 15.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.215e-05/0.1653, allocations: 31.7 kB / 0.6477 GB, free: 15.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.051e-05/0.1653, allocations: 41.7 kB / 0.6477 GB, free: 15.45 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1655, allocations: 330.8 kB / 0.648 GB, free: 15.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.1656, allocations: 35.97 kB / 0.6481 GB, free: 15.08 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.1658, allocations: 150.5 kB / 0.6482 GB, free: 14.88 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003302/0.1661, allocations: 198.4 kB / 0.6484 GB, free: 14.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1662, allocations: 8 kB / 0.6484 GB, free: 14.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004066/0.1666, allocations: 205.4 kB / 0.6486 GB, free: 14.41 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1666, allocations: 12.06 kB / 0.6486 GB, free: 14.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.1666, allocations: 4 kB / 0.6486 GB, free: 14.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1666, allocations: 4 kB / 0.6486 GB, free: 14.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.1668, allocations: 35.91 kB / 0.6487 GB, free: 14.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.1668, allocations: 11.92 kB / 0.6487 GB, free: 14.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.167, allocations: 28.06 kB / 0.6487 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.167, allocations: 8 kB / 0.6487 GB, free: 14.31 MB / 458.7 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 0.0001198/0.1671, allocations: 139 kB / 0.6488 GB, free: 14.17 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.1671, allocations: 23.81 kB / 0.6489 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.378e-05/0.1672, allocations: 21.39 kB / 0.6489 GB, free: 14.13 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1672, allocations: 4 kB / 0.6489 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1672, allocations: 0 / 0.6489 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1672, allocations: 4 kB / 0.6489 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007833/0.168, allocations: 0.5131 MB / 0.6494 GB, free: 13.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.168, allocations: 0 / 0.6494 GB, free: 13.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.1681, allocations: 15.98 kB / 0.6494 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1682, allocations: 0 / 0.6494 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1682, allocations: 4 kB / 0.6494 GB, free: 13.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.1682, allocations: 7.922 kB / 0.6494 GB, free: 13.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/0.1682, allocations: 11.88 kB / 0.6494 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.1697, allocations: 1.349 MB / 0.6507 GB, free: 12.01 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.952e-05/0.1698, allocations: 92.86 kB / 0.6508 GB, free: 11.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.1698, allocations: 11.97 kB / 0.6508 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.17, allocations: 19.92 kB / 0.6509 GB, free: 11.87 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.488e-05/0.17, allocations: 7.984 kB / 0.6509 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.17, allocations: 4 kB / 0.6509 GB, free: 11.86 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001241/0.1702, allocations: 140.6 kB / 0.651 GB, free: 11.72 MB / 458.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1702, allocations: 0 / 0.651 GB, free: 11.72 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0004184/0.1706, allocations: 43.91 kB / 0.651 GB, free: 11.68 MB / 458.7 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.0001724/0.1708, allocations: 111.4 kB / 0.6512 GB, free: 11.56 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.000352/0.1711, allocations: 112.4 kB / 0.6513 GB, free: 11.45 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.1712, allocations: 4.312 kB / 0.6513 GB, free: 11.45 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.1713, allocations: 51.98 kB / 0.6513 GB, free: 11.39 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006155/0.1719, allocations: 62.14 kB / 0.6514 GB, free: 11.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007471/0.1727, allocations: 0.505 MB / 0.6519 GB, free: 10.78 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.173, allocations: 0.7283 MB / 0.6526 GB, free: 10.02 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 9.016e-05/0.1731, allocations: 17.55 kB / 0.6526 GB, free: 10.01 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.1732, allocations: 23.44 kB / 0.6526 GB, free: 9.984 MB / 458.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1732, allocations: 0 / 0.6526 GB, free: 9.984 MB / 458.7 MB Notification: Performance of Templates: time 0.004983/0.1782, allocations: 1.937 MB / 0.6545 GB, free: 8.066 MB / 458.7 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)