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.001296/0.001297, allocations: 107.6 kB / 16.41 MB, free: 6.461 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.001401/0.001402, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.278/1.278, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.777/0.777, allocations: 135.1 MB / 426.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 65.59 kB / 0.5863 GB, free: 21.77 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1351, allocations: 80.92 MB / 0.6653 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003046/0.1381, allocations: 1.811 MB / 0.6671 GB, free: 4 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00102/0.1392, allocations: 0.5454 MB / 0.6676 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.1393, allocations: 4 kB / 0.6676 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.1395, allocations: 27.72 kB / 0.6676 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.094e-05/0.1396, allocations: 23.75 kB / 0.6677 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.1398, allocations: 71.84 kB / 0.6677 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.1401, allocations: 175.4 kB / 0.6679 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.1402, allocations: 45.64 kB / 0.6679 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.422e-05/0.1403, allocations: 55.77 kB / 0.668 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.323e-05/0.1404, allocations: 63.64 kB / 0.6681 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.1405, allocations: 12 kB / 0.6681 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.124e-05/0.1405, allocations: 8 kB / 0.6681 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.749e-05/0.1405, allocations: 31.91 kB / 0.6681 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.641e-05/0.1406, allocations: 67.48 kB / 0.6682 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001895/0.1408, allocations: 127.5 kB / 0.6683 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1408, allocations: 3.938 kB / 0.6683 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.372e-06/0.1408, allocations: 0 / 0.6683 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.1408, allocations: 0 / 0.6683 GB, free: 2.742 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.0007025/0.1416, allocations: 482.7 kB / 0.6688 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.1416, allocations: 9.109 kB / 0.6688 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.244e-05/0.1417, allocations: 20.75 kB / 0.6688 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.142, allocations: 233.2 kB / 0.669 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.142, allocations: 12.36 kB / 0.669 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.142, allocations: 12.38 kB / 0.669 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.1423, allocations: 154.2 kB / 0.6692 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.1423, allocations: 0 / 0.6692 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.1424, allocations: 0 / 0.6692 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1424, allocations: 4 kB / 0.6692 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.1426, allocations: 79.88 kB / 0.6693 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008746/0.1435, allocations: 0.7237 MB / 0.67 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.1436, allocations: 54.48 kB / 0.67 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.907e-05/0.1437, allocations: 32.83 kB / 0.67 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.1438, allocations: 0 / 0.67 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002092/0.144, allocations: 134.6 kB / 0.6702 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.144, allocations: 0 / 0.6702 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004597/0.1445, allocations: 165.3 kB / 0.6703 GB, free: 452 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.1445, allocations: 132.8 kB / 0.6705 GB, free: 288 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.1447, allocations: 202.8 kB / 0.6707 GB, free: 76 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.1448, allocations: 33.69 kB / 0.6707 GB, free: 36 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.88e-05/0.1449, allocations: 135.7 kB / 0.6708 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.945e-05/0.1449, allocations: 35.55 kB / 0.6709 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.664e-05/0.145, allocations: 41.7 kB / 0.6709 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1451, allocations: 326.8 kB / 0.6712 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.1452, allocations: 43.91 kB / 0.6712 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.1454, allocations: 146.5 kB / 0.6714 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.1457, allocations: 206.3 kB / 0.6716 GB, free: 15 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1457, allocations: 0 / 0.6716 GB, free: 15 MB / 0.5137 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000387/0.1461, allocations: 209.8 kB / 0.6718 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.1461, allocations: 8 kB / 0.6718 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1461, allocations: 4 kB / 0.6718 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.1462, allocations: 8 kB / 0.6718 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.1463, allocations: 35.91 kB / 0.6718 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.1463, allocations: 11.94 kB / 0.6718 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.1465, allocations: 27.83 kB / 0.6719 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.1465, allocations: 8.188 kB / 0.6719 GB, free: 14.68 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.0001001/0.1466, allocations: 145.6 kB / 0.672 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.1466, allocations: 15.81 kB / 0.672 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.592e-05/0.1467, allocations: 25.34 kB / 0.6721 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1467, allocations: 0 / 0.6721 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1467, allocations: 4 kB / 0.6721 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1467, allocations: 3.984 kB / 0.6721 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007069/0.1474, allocations: 0.5093 MB / 0.6726 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1474, allocations: 3.984 kB / 0.6726 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.1475, allocations: 19.92 kB / 0.6726 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.1476, allocations: 7.938 kB / 0.6726 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.1476, allocations: 0 / 0.6726 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1476, allocations: 4 kB / 0.6726 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1476, allocations: 3.938 kB / 0.6726 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004779/0.1481, allocations: 356.3 kB / 0.6729 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.1481, allocations: 92.92 kB / 0.673 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.1482, allocations: 0 / 0.673 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.1483, allocations: 24.02 kB / 0.6731 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.1484, allocations: 11.92 kB / 0.6731 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.1484, allocations: 8 kB / 0.6731 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001128/0.1485, allocations: 140.6 kB / 0.6732 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.01e-07/0.1485, allocations: 0 / 0.6732 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003395/0.1489, allocations: 31.94 kB / 0.6732 GB, free: 13.18 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.0001123/0.149, allocations: 99.25 kB / 0.6733 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003136/0.1493, allocations: 119.7 kB / 0.6734 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1493, allocations: 4 kB / 0.6734 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.1495, allocations: 52.97 kB / 0.6735 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005622/0.1501, allocations: 78 kB / 0.6736 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005974/0.1507, allocations: 370.2 kB / 0.6739 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.151, allocations: 0.7284 MB / 0.6746 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.565e-05/0.151, allocations: 15.44 kB / 0.6747 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of SimCode: time 2.71e-07/0.151, allocations: 4 kB / 0.6747 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of Templates: time 0.004094/0.1551, allocations: 2.162 MB / 0.6768 GB, free: 9.504 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)