Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset") translateModel(Annex60.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.01175/0.01175, allocations: 99.58 kB / 15.73 MB, free: 6.016 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.002154/0.002154, allocations: 193 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.672/1.672, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4585/0.4585, allocations: 54.94 MB / 324.8 MB, free: 36 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 78.09 kB / 456.3 MB, free: 38.53 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1435, allocations: 59.59 MB / 0.5038 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.IntegratorWithReset): time 0.003168/0.1467, allocations: 1.789 MB / 0.5056 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.1479, allocations: 0.582 MB / 0.5061 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.148, allocations: 7.438 kB / 0.5061 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.1482, allocations: 24.94 kB / 0.5062 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.833e-05/0.1483, allocations: 22.67 kB / 0.5062 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.1486, allocations: 64.86 kB / 0.5062 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002674/0.1489, allocations: 181.8 kB / 0.5064 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.149, allocations: 51.19 kB / 0.5065 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.458e-05/0.1491, allocations: 55.27 kB / 0.5065 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.818e-05/0.1493, allocations: 56.62 kB / 0.5066 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.398e-05/0.1493, allocations: 10.84 kB / 0.5066 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.838e-05/0.1493, allocations: 13.81 kB / 0.5066 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.069e-05/0.1494, allocations: 32.34 kB / 0.5066 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.267e-05/0.1495, allocations: 63.58 kB / 0.5067 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.1497, allocations: 134.9 kB / 0.5068 GB, free: 7.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.1497, allocations: 0 / 0.5068 GB, free: 7.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1497, allocations: 0 / 0.5068 GB, free: 7.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.1498, allocations: 0 / 0.5068 GB, free: 7.414 MB / 382.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.0007603/0.1505, allocations: 482 kB / 0.5073 GB, free: 6.953 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1506, allocations: 11.97 kB / 0.5073 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.096e-05/0.1506, allocations: 18.25 kB / 0.5073 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.151, allocations: 239.8 kB / 0.5075 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.151, allocations: 8.906 kB / 0.5075 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.1511, allocations: 20.55 kB / 0.5076 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003293/0.1514, allocations: 146.2 kB / 0.5077 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1514, allocations: 1.406 kB / 0.5077 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.1514, allocations: 5.656 kB / 0.5077 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1515, allocations: 1.531 kB / 0.5077 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002888/0.1518, allocations: 78.47 kB / 0.5078 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009555/0.1527, allocations: 0.7343 MB / 0.5085 GB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001721/0.1529, allocations: 58.22 kB / 0.5086 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.1531, allocations: 36.61 kB / 0.5086 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.1531, allocations: 1.312 kB / 0.5086 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.1533, allocations: 127.7 kB / 0.5087 GB, free: 5.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 2.104e-06/0.1533, allocations: 0 / 0.5087 GB, free: 5.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005733/0.1539, allocations: 157.5 kB / 0.5089 GB, free: 5.414 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.154, allocations: 140.4 kB / 0.509 GB, free: 5.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.1542, allocations: 199.2 kB / 0.5092 GB, free: 5.039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.1542, allocations: 29.95 kB / 0.5092 GB, free: 5.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.365e-05/0.1543, allocations: 135.9 kB / 0.5093 GB, free: 4.867 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.141e-05/0.1543, allocations: 31.94 kB / 0.5094 GB, free: 4.836 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.946e-05/0.1544, allocations: 45.66 kB / 0.5094 GB, free: 4.785 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.259e-05/0.1545, allocations: 326.8 kB / 0.5097 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.1546, allocations: 39.91 kB / 0.5098 GB, free: 4.418 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.1548, allocations: 150.5 kB / 0.5099 GB, free: 4.219 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.1552, allocations: 202.3 kB / 0.5101 GB, free: 3.969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.1552, allocations: 11.94 kB / 0.5101 GB, free: 3.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004739/0.1557, allocations: 197.6 kB / 0.5103 GB, free: 3.758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.1557, allocations: 12.06 kB / 0.5103 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.1557, allocations: 7.984 kB / 0.5103 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.595e-05/0.1558, allocations: 4 kB / 0.5103 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.1559, allocations: 35.92 kB / 0.5104 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.1559, allocations: 4 kB / 0.5104 GB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.1561, allocations: 27.81 kB / 0.5104 GB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.1562, allocations: 12 kB / 0.5104 GB, free: 3.656 MB / 382.1 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.0001154/0.1563, allocations: 141.6 kB / 0.5105 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.535e-05/0.1563, allocations: 23.86 kB / 0.5106 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.471e-05/0.1564, allocations: 17.41 kB / 0.5106 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.1564, allocations: 4 kB / 0.5106 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.1564, allocations: 3.984 kB / 0.5106 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.1564, allocations: 7.938 kB / 0.5106 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007604/0.1572, allocations: 0.5055 MB / 0.5111 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1572, allocations: 0 / 0.5111 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.1574, allocations: 19.98 kB / 0.5111 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1574, allocations: 0 / 0.5111 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.1574, allocations: 8.25 kB / 0.5111 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1574, allocations: 0 / 0.5111 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.1574, allocations: 8 kB / 0.5111 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005583/0.158, allocations: 360.2 kB / 0.5115 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.158, allocations: 93.33 kB / 0.5116 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.1581, allocations: 11.94 kB / 0.5116 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.1583, allocations: 16.02 kB / 0.5116 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.421e-05/0.1584, allocations: 15.98 kB / 0.5116 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.1584, allocations: 4 kB / 0.5116 GB, free: 2.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001161/0.1586, allocations: 140.4 kB / 0.5117 GB, free: 2.184 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1586, allocations: 7.875 kB / 0.5117 GB, free: 2.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004639/0.159, allocations: 31.95 kB / 0.5118 GB, free: 2.145 MB / 382.1 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.0001007/0.1591, allocations: 103.2 kB / 0.5119 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003721/0.1595, allocations: 123.8 kB / 0.512 GB, free: 1.914 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1595, allocations: 0 / 0.512 GB, free: 1.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.1597, allocations: 47.91 kB / 0.512 GB, free: 1.867 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007965/0.1605, allocations: 68.98 kB / 0.5121 GB, free: 1.809 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006785/0.1612, allocations: 359.9 kB / 0.5124 GB, free: 1.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001629/0.1614, allocations: 0.7203 MB / 0.5132 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.906e-05/0.1615, allocations: 21.55 kB / 0.5132 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.872e-05/0.1616, allocations: 15.44 kB / 0.5132 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1616, allocations: 4 kB / 0.5132 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of Templates: time 0.006532/0.1681, allocations: 2.046 MB / 0.5152 GB, free: 14.61 MB / 398.1 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.sim & ./Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)