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.0009476/0.0009478, allocations: 99 kB / 15.05 MB, free: 1.105 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.000903/0.0009031, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 223.2 MB / 239.9 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8962/0.8962, allocations: 135.2 MB / 426.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003074, allocations: 8 kB / 0.5068 GB, free: 5.227 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1465, allocations: 82.31 MB / 0.5872 GB, free: 3.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.001762/0.1483, allocations: 1.475 MB / 0.5886 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009446/0.1493, allocations: 0.5008 MB / 0.5891 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.1494, allocations: 3.938 kB / 0.5891 GB, free: 1.094 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.914e-05/0.1494, allocations: 11.88 kB / 0.5891 GB, free: 1.082 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.1496, allocations: 31.88 kB / 0.5892 GB, free: 1.051 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.1498, allocations: 55.88 kB / 0.5892 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002218/0.15, allocations: 111.8 kB / 0.5893 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.1502, allocations: 49.8 kB / 0.5894 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.959e-05/0.1502, allocations: 39.8 kB / 0.5894 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.476e-05/0.1503, allocations: 47.7 kB / 0.5895 GB, free: 0.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.1503, allocations: 4 kB / 0.5895 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.666e-05/0.1504, allocations: 8 kB / 0.5895 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.465e-05/0.1504, allocations: 23.91 kB / 0.5895 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.146e-05/0.1504, allocations: 49.58 kB / 0.5895 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.205e-05/0.1505, allocations: 84.06 kB / 0.5896 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.1506, allocations: 3.938 kB / 0.5896 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1506, allocations: 3.984 kB / 0.5896 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.1506, allocations: 0 / 0.5896 GB, free: 0.5703 MB / 494.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.0006103/0.1512, allocations: 458.6 kB / 0.5901 GB, free: 76 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.1512, allocations: 8.031 kB / 0.5901 GB, free: 68 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.1513, allocations: 15.81 kB / 0.5901 GB, free: 52 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.1515, allocations: 234.6 kB / 0.5903 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.1515, allocations: 8 kB / 0.5903 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.1516, allocations: 12 kB / 0.5903 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.1518, allocations: 145.2 kB / 0.5905 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1519, allocations: 4 kB / 0.5905 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.1519, allocations: 4 kB / 0.5905 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.1519, allocations: 7.984 kB / 0.5905 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002153/0.1521, allocations: 85.72 kB / 0.5906 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008125/0.1529, allocations: 0.7471 MB / 0.5913 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.1531, allocations: 54.55 kB / 0.5913 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.1531, allocations: 4 kB / 0.5914 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002322/0.1534, allocations: 130.9 kB / 0.5915 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.1534, allocations: 0 / 0.5915 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004314/0.1538, allocations: 177.5 kB / 0.5916 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/0.1539, allocations: 140.7 kB / 0.5918 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.1541, allocations: 199 kB / 0.592 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.1541, allocations: 33.69 kB / 0.592 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.979e-05/0.1542, allocations: 127.8 kB / 0.5921 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.1542, allocations: 35.55 kB / 0.5922 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.538e-05/0.1542, allocations: 4 kB / 0.5922 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.1543, allocations: 326.8 kB / 0.5925 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.1544, allocations: 44.34 kB / 0.5925 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.1546, allocations: 151.3 kB / 0.5927 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001269/0.1547, allocations: 55.92 kB / 0.5927 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1548, allocations: 0 / 0.5927 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003657/0.1551, allocations: 229.4 kB / 0.5929 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.1551, allocations: 4 kB / 0.5929 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1552, allocations: 8.062 kB / 0.5929 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.1552, allocations: 8 kB / 0.593 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.1553, allocations: 31.92 kB / 0.593 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.1553, allocations: 8 kB / 0.593 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.1555, allocations: 35.81 kB / 0.593 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.1555, allocations: 19.95 kB / 0.593 GB, free: 12.74 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 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.364e-05/0.1556, allocations: 127.2 kB / 0.5932 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.1556, allocations: 19.81 kB / 0.5932 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.021e-05/0.1557, allocations: 25.33 kB / 0.5932 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1557, allocations: 7.875 kB / 0.5932 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1557, allocations: 4 kB / 0.5932 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1557, allocations: 0 / 0.5932 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006679/0.1564, allocations: 0.5327 MB / 0.5937 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1564, allocations: 0 / 0.5937 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.1565, allocations: 19.98 kB / 0.5938 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.1565, allocations: 4 kB / 0.5938 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.1565, allocations: 4 kB / 0.5938 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.1565, allocations: 4 kB / 0.5938 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.1565, allocations: 7.891 kB / 0.5938 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004637/0.157, allocations: 408.3 kB / 0.5942 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.112e-05/0.1571, allocations: 96.95 kB / 0.5943 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.368e-05/0.1571, allocations: 4 kB / 0.5943 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.1573, allocations: 19.98 kB / 0.5943 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.1573, allocations: 15.86 kB / 0.5943 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/0.1573, allocations: 4 kB / 0.5943 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.072e-05/0.1574, allocations: 144.6 kB / 0.5944 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1574, allocations: 0 / 0.5944 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003005/0.1577, allocations: 28 kB / 0.5945 GB, free: 11.16 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001106/0.1579, allocations: 99.23 kB / 0.5946 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002914/0.1582, allocations: 128.4 kB / 0.5947 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1582, allocations: 0 / 0.5947 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.1583, allocations: 52.78 kB / 0.5947 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/0.1587, allocations: 72.05 kB / 0.5948 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004871/0.1592, allocations: 390.6 kB / 0.5952 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.1594, allocations: 0.7284 MB / 0.5959 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.648e-05/0.1595, allocations: 17.53 kB / 0.5959 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.609e-05/0.1596, allocations: 19.44 kB / 0.5959 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1596, allocations: 0 / 0.5959 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of Templates: time 0.00382/0.1634, allocations: 1.728 MB / 0.5976 GB, free: 7.898 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: