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.01308/0.01308, allocations: 99.03 kB / 15.73 MB, free: 6.043 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.002144/0.002144, allocations: 195.3 kB / 16.68 MB, free: 5.973 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.641/1.641, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4522/0.4522, allocations: 54.95 MB / 324.8 MB, free: 124 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.001459/0.001459, allocations: 69.27 kB / 456.2 MB, free: 38.47 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1387, allocations: 59.59 MB / 0.5037 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.IntegratorWithReset): time 0.002907/0.1416, allocations: 1.776 MB / 0.5055 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009861/0.1426, allocations: 0.5915 MB / 0.506 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.1428, allocations: 1.469 kB / 0.506 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.1429, allocations: 30.25 kB / 0.5061 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.53e-05/0.143, allocations: 25.92 kB / 0.5061 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.1433, allocations: 65.42 kB / 0.5062 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002186/0.1435, allocations: 176 kB / 0.5063 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.1437, allocations: 57.92 kB / 0.5064 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.886e-05/0.1438, allocations: 47.05 kB / 0.5064 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.429e-05/0.1438, allocations: 65.33 kB / 0.5065 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.1439, allocations: 9.625 kB / 0.5065 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.9e-05/0.1439, allocations: 15 kB / 0.5065 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.179e-05/0.1439, allocations: 31.97 kB / 0.5065 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.443e-05/0.144, allocations: 72.02 kB / 0.5066 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.1442, allocations: 129.7 kB / 0.5067 GB, free: 7.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1442, allocations: 1.375 kB / 0.5067 GB, free: 7.441 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1442, allocations: 0 / 0.5067 GB, free: 7.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1442, allocations: 0 / 0.5067 GB, free: 7.441 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.0006388/0.1449, allocations: 481.7 kB / 0.5072 GB, free: 6.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.1449, allocations: 9.625 kB / 0.5072 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.942e-05/0.1449, allocations: 17 kB / 0.5072 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.1452, allocations: 240.6 kB / 0.5075 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.1452, allocations: 8.5 kB / 0.5075 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.1453, allocations: 16.19 kB / 0.5075 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.1455, allocations: 146.5 kB / 0.5076 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1456, allocations: 0 / 0.5076 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.1456, allocations: 5.375 kB / 0.5076 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.1456, allocations: 2.75 kB / 0.5076 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002142/0.1458, allocations: 70.47 kB / 0.5077 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007162/0.1465, allocations: 0.7344 MB / 0.5084 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/0.1467, allocations: 65.58 kB / 0.5085 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.1468, allocations: 32.58 kB / 0.5085 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.1468, allocations: 1.406 kB / 0.5085 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.1471, allocations: 125.2 kB / 0.5086 GB, free: 5.637 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.1471, allocations: 0 / 0.5086 GB, free: 5.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004439/0.1475, allocations: 163.7 kB / 0.5088 GB, free: 5.543 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.1476, allocations: 135.2 kB / 0.5089 GB, free: 5.383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.1477, allocations: 199 kB / 0.5091 GB, free: 5.203 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.1478, allocations: 25.95 kB / 0.5091 GB, free: 5.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.755e-05/0.1478, allocations: 131.9 kB / 0.5093 GB, free: 5.039 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.431e-05/0.1478, allocations: 31.55 kB / 0.5093 GB, free: 5.008 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-05/0.1479, allocations: 45.61 kB / 0.5093 GB, free: 4.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.341e-05/0.148, allocations: 326.8 kB / 0.5096 GB, free: 4.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.1481, allocations: 47.84 kB / 0.5097 GB, free: 4.582 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.1482, allocations: 146.5 kB / 0.5098 GB, free: 4.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002473/0.1485, allocations: 206.3 kB / 0.51 GB, free: 4.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.1485, allocations: 4 kB / 0.51 GB, free: 4.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003158/0.1488, allocations: 193.5 kB / 0.5102 GB, free: 3.934 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1488, allocations: 16.08 kB / 0.5102 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1489, allocations: 4 kB / 0.5102 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.1489, allocations: 7.938 kB / 0.5102 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.149, allocations: 35.92 kB / 0.5103 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.149, allocations: 11.94 kB / 0.5103 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.1492, allocations: 31.77 kB / 0.5103 GB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.1492, allocations: 8 kB / 0.5103 GB, free: 3.82 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 8.141e-05/0.1493, allocations: 137.6 kB / 0.5105 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.1493, allocations: 16.05 kB / 0.5105 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.249e-05/0.1493, allocations: 25.39 kB / 0.5105 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1493, allocations: 7.922 kB / 0.5105 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.1494, allocations: 4 kB / 0.5105 GB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1494, allocations: 3.938 kB / 0.5105 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005948/0.15, allocations: 0.5172 MB / 0.511 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.15, allocations: 0 / 0.511 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.1501, allocations: 19.92 kB / 0.511 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1501, allocations: 4 kB / 0.511 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1501, allocations: 3.938 kB / 0.511 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1501, allocations: 4 kB / 0.511 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1501, allocations: 0 / 0.511 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003945/0.1505, allocations: 356.5 kB / 0.5114 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.182e-05/0.1506, allocations: 100.8 kB / 0.5115 GB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.1506, allocations: 11.97 kB / 0.5115 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/0.1508, allocations: 11.98 kB / 0.5115 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.532e-05/0.1508, allocations: 15.98 kB / 0.5115 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.1509, allocations: 7.938 kB / 0.5115 GB, free: 2.477 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.515e-05/0.1509, allocations: 148.4 kB / 0.5117 GB, free: 2.332 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1509, allocations: 0 / 0.5117 GB, free: 2.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003185/0.1513, allocations: 28 kB / 0.5117 GB, free: 2.305 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 9.21e-05/0.1514, allocations: 97.75 kB / 0.5118 GB, free: 2.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002882/0.1517, allocations: 119.7 kB / 0.5119 GB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1517, allocations: 0 / 0.5119 GB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.1518, allocations: 55.84 kB / 0.512 GB, free: 2.031 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005348/0.1524, allocations: 64.31 kB / 0.512 GB, free: 1.973 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004947/0.1529, allocations: 360.4 kB / 0.5124 GB, free: 1.586 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001392/0.153, allocations: 0.7242 MB / 0.5131 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.627e-05/0.1531, allocations: 21.86 kB / 0.5131 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.918e-05/0.1531, allocations: 15.44 kB / 0.5131 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1531, allocations: 0 / 0.5131 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of Templates: time 0.004739/0.1579, allocations: 2.038 MB / 0.5151 GB, free: 14.77 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)