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.009594/0.009594, allocations: 99.89 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.002006/0.002006, allocations: 187.4 kB / 16.67 MB, free: 5.93 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.567/1.567, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8224/0.8224, allocations: 135.1 MB / 425.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.55 kB / 0.5856 GB, free: 21.77 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1755, allocations: 80.93 MB / 0.6646 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002978/0.1785, allocations: 1.808 MB / 0.6664 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000954/0.1795, allocations: 0.5415 MB / 0.6669 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.1796, allocations: 7.938 kB / 0.6669 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.1797, allocations: 23.73 kB / 0.667 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.338e-05/0.1798, allocations: 23.73 kB / 0.667 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002356/0.1801, allocations: 71.84 kB / 0.6671 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002449/0.1803, allocations: 175.5 kB / 0.6672 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.1805, allocations: 49.64 kB / 0.6673 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.712e-05/0.1806, allocations: 63.7 kB / 0.6673 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.791e-05/0.1807, allocations: 55.64 kB / 0.6674 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.1807, allocations: 12 kB / 0.6674 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.208e-05/0.1807, allocations: 8 kB / 0.6674 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.694e-05/0.1808, allocations: 27.92 kB / 0.6674 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.659e-05/0.1809, allocations: 67.59 kB / 0.6675 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.1811, allocations: 139.2 kB / 0.6676 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1811, allocations: 0 / 0.6676 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.226e-06/0.1811, allocations: 4 kB / 0.6676 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.1811, allocations: 4 kB / 0.6676 GB, free: 2.711 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.000685/0.1818, allocations: 470.6 kB / 0.6681 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1818, allocations: 13.11 kB / 0.6681 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.834e-05/0.1819, allocations: 20.8 kB / 0.6681 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002993/0.1822, allocations: 233.4 kB / 0.6683 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.1822, allocations: 8.375 kB / 0.6684 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.311e-05/0.1822, allocations: 12.38 kB / 0.6684 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.1825, allocations: 154.2 kB / 0.6685 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.1826, allocations: 0 / 0.6685 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.1826, allocations: 8 kB / 0.6685 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1826, allocations: 8 kB / 0.6685 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/0.1828, allocations: 67.89 kB / 0.6686 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009025/0.1837, allocations: 0.7433 MB / 0.6693 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.1839, allocations: 42.55 kB / 0.6694 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.184, allocations: 36.83 kB / 0.6694 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.184, allocations: 4 kB / 0.6694 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.1843, allocations: 130.6 kB / 0.6695 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.1843, allocations: 3.938 kB / 0.6695 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004625/0.1847, allocations: 169.7 kB / 0.6697 GB, free: 412 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/0.1848, allocations: 136.5 kB / 0.6698 GB, free: 244 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.185, allocations: 202.8 kB / 0.67 GB, free: 32 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.185, allocations: 25.7 kB / 0.67 GB, free: 0 / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.1851, allocations: 143.8 kB / 0.6702 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.1852, allocations: 35.7 kB / 0.6702 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.577e-05/0.1852, allocations: 37.7 kB / 0.6702 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1854, allocations: 334.8 kB / 0.6706 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.1855, allocations: 39.97 kB / 0.6706 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.1857, allocations: 148.4 kB / 0.6707 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.186, allocations: 206.3 kB / 0.6709 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.186, allocations: 0 / 0.6709 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003734/0.1864, allocations: 201.2 kB / 0.6711 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.1864, allocations: 8 kB / 0.6711 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.1864, allocations: 4 kB / 0.6711 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.1864, allocations: 4 kB / 0.6711 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.1866, allocations: 40.14 kB / 0.6712 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.1866, allocations: 8.5 kB / 0.6712 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.1867, allocations: 31.83 kB / 0.6712 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.1868, allocations: 12 kB / 0.6712 GB, free: 14.64 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.00011/0.1869, allocations: 137 kB / 0.6714 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.1869, allocations: 19.91 kB / 0.6714 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.418e-05/0.187, allocations: 21.39 kB / 0.6714 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.187, allocations: 0 / 0.6714 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.187, allocations: 4 kB / 0.6714 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.187, allocations: 0 / 0.6714 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007289/0.1877, allocations: 0.5209 MB / 0.6719 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1877, allocations: 4 kB / 0.6719 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.1879, allocations: 15.98 kB / 0.6719 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1879, allocations: 0 / 0.6719 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.1879, allocations: 8.312 kB / 0.6719 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.1879, allocations: 11.98 kB / 0.672 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1879, allocations: 3.938 kB / 0.672 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004722/0.1884, allocations: 352.3 kB / 0.6723 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.901e-05/0.1884, allocations: 101 kB / 0.6724 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.1885, allocations: 4 kB / 0.6724 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.1886, allocations: 12.03 kB / 0.6724 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.222e-05/0.1887, allocations: 19.92 kB / 0.6724 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.1887, allocations: 7.984 kB / 0.6724 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001058/0.1888, allocations: 136.6 kB / 0.6726 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1888, allocations: 3.938 kB / 0.6726 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003218/0.1892, allocations: 28 kB / 0.6726 GB, free: 13.14 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.000119/0.1893, allocations: 107.2 kB / 0.6727 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003223/0.1896, allocations: 116.6 kB / 0.6728 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.1896, allocations: 0 / 0.6728 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.1898, allocations: 55.97 kB / 0.6729 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005582/0.1903, allocations: 68.03 kB / 0.6729 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005847/0.1909, allocations: 351.9 kB / 0.6733 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.1912, allocations: 0.7243 MB / 0.674 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.039e-05/0.1913, allocations: 25.84 kB / 0.674 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.1914, allocations: 15.44 kB / 0.674 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of SimCode: time 2.61e-07/0.1914, allocations: 4 kB / 0.674 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of Templates: time 0.004683/0.1961, allocations: 2.022 MB / 0.676 GB, free: 9.625 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)