Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Utilities.Math.Examples.IntegratorWithReset") translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.01069/0.0107, allocations: 103.4 kB / 15.73 MB, free: 6.051 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.002078/0.002078, allocations: 197.6 kB / 16.68 MB, free: 5.98 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7851/0.7851, allocations: 132.2 MB / 422.7 MB, free: 1.723 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 67.09 kB / 0.5814 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1817, allocations: 80.2 MB / 0.6597 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003167/0.1849, allocations: 1.822 MB / 0.6615 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001055/0.186, allocations: 0.5377 MB / 0.662 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.1861, allocations: 7.938 kB / 0.662 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.1863, allocations: 19.73 kB / 0.662 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.894e-05/0.1864, allocations: 31.72 kB / 0.662 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.1866, allocations: 67.92 kB / 0.6621 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002385/0.1869, allocations: 175.4 kB / 0.6623 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.1871, allocations: 49.64 kB / 0.6623 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.1872, allocations: 55.78 kB / 0.6624 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.825e-05/0.1873, allocations: 59.58 kB / 0.6624 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.1873, allocations: 12 kB / 0.6624 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.165e-05/0.1873, allocations: 12 kB / 0.6625 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.958e-05/0.1874, allocations: 27.91 kB / 0.6625 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.91e-05/0.1875, allocations: 75.47 kB / 0.6626 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001897/0.1877, allocations: 131.4 kB / 0.6627 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1877, allocations: 0 / 0.6627 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.783e-06/0.1877, allocations: 0 / 0.6627 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.1877, allocations: 0 / 0.6627 GB, free: 10.43 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.0007747/0.1885, allocations: 478.7 kB / 0.6631 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.1885, allocations: 8.031 kB / 0.6631 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.767e-05/0.1886, allocations: 20.75 kB / 0.6632 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004202/0.189, allocations: 227.9 kB / 0.6634 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.1891, allocations: 12.38 kB / 0.6634 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.933e-05/0.1892, allocations: 12.38 kB / 0.6634 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.1895, allocations: 158.2 kB / 0.6636 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1895, allocations: 0 / 0.6636 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.1895, allocations: 4 kB / 0.6636 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.1895, allocations: 4 kB / 0.6636 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.1898, allocations: 63.89 kB / 0.6636 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.1909, allocations: 0.747 MB / 0.6644 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.1911, allocations: 50.55 kB / 0.6644 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.1912, allocations: 32.84 kB / 0.6644 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.1912, allocations: 0 / 0.6644 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002215/0.1914, allocations: 134.5 kB / 0.6646 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.1914, allocations: 4 kB / 0.6646 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004787/0.1919, allocations: 161.4 kB / 0.6647 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.192, allocations: 132.5 kB / 0.6648 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.1922, allocations: 202.8 kB / 0.665 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.1922, allocations: 29.95 kB / 0.6651 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.1923, allocations: 135.8 kB / 0.6652 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.062e-05/0.1923, allocations: 31.72 kB / 0.6652 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.1925, allocations: 41.7 kB / 0.6653 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002166/0.1927, allocations: 330.8 kB / 0.6656 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.1928, allocations: 35.97 kB / 0.6656 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.193, allocations: 147.8 kB / 0.6658 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.1934, allocations: 206.3 kB / 0.666 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.1934, allocations: 4 kB / 0.666 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005645/0.194, allocations: 205.4 kB / 0.6662 GB, free: 6.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.194, allocations: 12.06 kB / 0.6662 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.194, allocations: 4 kB / 0.6662 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.194, allocations: 4 kB / 0.6662 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.1942, allocations: 35.91 kB / 0.6662 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.1942, allocations: 4 kB / 0.6662 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.1944, allocations: 27.83 kB / 0.6662 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.1944, allocations: 12 kB / 0.6662 GB, free: 6.383 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 (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.0002299/0.1946, allocations: 142.2 kB / 0.6664 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.332e-05/0.1947, allocations: 19.81 kB / 0.6664 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.861e-05/0.1947, allocations: 25.39 kB / 0.6664 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1947, allocations: 0 / 0.6664 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1947, allocations: 0 / 0.6664 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1947, allocations: 4 kB / 0.6664 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008189/0.1956, allocations: 0.5173 MB / 0.6669 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1956, allocations: 4 kB / 0.6669 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.1957, allocations: 15.98 kB / 0.667 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.1957, allocations: 4 kB / 0.667 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.1957, allocations: 4 kB / 0.667 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.1957, allocations: 11.92 kB / 0.667 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.1958, allocations: 3.938 kB / 0.667 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005057/0.1963, allocations: 352.6 kB / 0.6673 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.1963, allocations: 88.92 kB / 0.6674 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.1964, allocations: 8 kB / 0.6674 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.1965, allocations: 12.12 kB / 0.6674 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.341e-05/0.1966, allocations: 23.91 kB / 0.6674 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.1966, allocations: 7.984 kB / 0.6674 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001557/0.1968, allocations: 140.6 kB / 0.6676 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1968, allocations: 0 / 0.6676 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003405/0.1971, allocations: 27.94 kB / 0.6676 GB, free: 4.879 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 (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.0001376/0.1973, allocations: 108.5 kB / 0.6677 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003467/0.1976, allocations: 119.8 kB / 0.6678 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1976, allocations: 0 / 0.6678 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.1978, allocations: 47.91 kB / 0.6679 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005856/0.1984, allocations: 74.73 kB / 0.6679 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007247/0.1991, allocations: 356.4 kB / 0.6683 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.1995, allocations: 0.7203 MB / 0.669 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.344e-05/0.1996, allocations: 29.72 kB / 0.669 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.029e-05/0.1996, allocations: 19.38 kB / 0.669 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.1996, allocations: 0 / 0.669 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of Templates: time 0.005268/0.2049, allocations: 2.016 MB / 0.671 GB, free: 1.375 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)