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.007685/0.007685, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001559/0.001559, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8534/0.8534, allocations: 135.1 MB / 425.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001914, allocations: 65.73 kB / 0.5856 GB, free: 21.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.1846, allocations: 80.93 MB / 0.6646 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003344/0.188, allocations: 1.8 MB / 0.6664 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001221/0.1893, allocations: 0.5454 MB / 0.6669 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.1894, allocations: 7.938 kB / 0.6669 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001761/0.1896, allocations: 23.73 kB / 0.667 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001077/0.1898, allocations: 27.72 kB / 0.667 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.1901, allocations: 71.84 kB / 0.6671 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002753/0.1903, allocations: 171.5 kB / 0.6672 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.1905, allocations: 53.64 kB / 0.6673 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.1907, allocations: 59.66 kB / 0.6673 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.049e-05/0.1908, allocations: 63.62 kB / 0.6674 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.1908, allocations: 8 kB / 0.6674 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.171e-05/0.1908, allocations: 12 kB / 0.6674 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.844e-05/0.1909, allocations: 23.92 kB / 0.6674 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.191, allocations: 63.61 kB / 0.6675 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.1912, allocations: 139.3 kB / 0.6676 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1912, allocations: 4 kB / 0.6676 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1912, allocations: 0 / 0.6676 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.377e-05/0.1912, allocations: 0 / 0.6676 GB, free: 2.738 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.0008494/0.1921, allocations: 474.7 kB / 0.6681 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1921, allocations: 9.109 kB / 0.6681 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.1922, allocations: 20.75 kB / 0.6681 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.1926, allocations: 241.2 kB / 0.6683 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.1926, allocations: 8.375 kB / 0.6684 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.1927, allocations: 12.38 kB / 0.6684 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003471/0.193, allocations: 150.2 kB / 0.6685 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.193, allocations: 4 kB / 0.6685 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.1931, allocations: 8 kB / 0.6685 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.1931, allocations: 4 kB / 0.6685 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.1933, allocations: 63.89 kB / 0.6686 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000989/0.1943, allocations: 0.7393 MB / 0.6693 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/0.1945, allocations: 46.55 kB / 0.6694 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.1946, allocations: 32.84 kB / 0.6694 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.1946, allocations: 11.92 kB / 0.6694 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.1949, allocations: 126.6 kB / 0.6695 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.763e-06/0.1949, allocations: 4 kB / 0.6695 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004953/0.1954, allocations: 165.5 kB / 0.6697 GB, free: 444 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/0.1955, allocations: 132.5 kB / 0.6698 GB, free: 280 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.1957, allocations: 202.8 kB / 0.67 GB, free: 68 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.1957, allocations: 29.7 kB / 0.67 GB, free: 32 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.1959, allocations: 139.5 kB / 0.6702 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.852e-05/0.1959, allocations: 31.7 kB / 0.6702 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.264e-05/0.196, allocations: 41.7 kB / 0.6702 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1961, allocations: 334.9 kB / 0.6705 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.1963, allocations: 35.97 kB / 0.6706 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.1965, allocations: 156.5 kB / 0.6707 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.1968, allocations: 198.3 kB / 0.6709 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.75e-06/0.1968, allocations: 4 kB / 0.6709 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004437/0.1973, allocations: 205 kB / 0.6711 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.1973, allocations: 8 kB / 0.6711 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.1973, allocations: 4 kB / 0.6711 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.1974, allocations: 7.938 kB / 0.6711 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.1975, allocations: 40.41 kB / 0.6712 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.1975, allocations: 11.94 kB / 0.6712 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001475/0.1977, allocations: 23.83 kB / 0.6712 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.1977, allocations: 12 kB / 0.6712 GB, free: 14.68 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.0001181/0.1978, allocations: 140.9 kB / 0.6714 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.13e-05/0.1979, allocations: 15.81 kB / 0.6714 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.612e-05/0.1979, allocations: 21.39 kB / 0.6714 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.1979, allocations: 4 kB / 0.6714 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1979, allocations: 4 kB / 0.6714 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.198, allocations: 0 / 0.6714 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007631/0.1987, allocations: 0.5132 MB / 0.6719 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1987, allocations: 0 / 0.6719 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.1989, allocations: 19.98 kB / 0.6719 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.1989, allocations: 0 / 0.6719 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.1989, allocations: 11.94 kB / 0.6719 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.1989, allocations: 4.297 kB / 0.6719 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.1989, allocations: 7.938 kB / 0.6719 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005253/0.1995, allocations: 356.3 kB / 0.6723 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.707e-05/0.1995, allocations: 92.86 kB / 0.6724 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.1996, allocations: 8 kB / 0.6724 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.1997, allocations: 7.984 kB / 0.6724 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.897e-05/0.1998, allocations: 20.3 kB / 0.6724 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.1998, allocations: 4 kB / 0.6724 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001317/0.2, allocations: 136.6 kB / 0.6725 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2, allocations: 0 / 0.6725 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003453/0.2003, allocations: 39.92 kB / 0.6726 GB, free: 13.18 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.0001332/0.2005, allocations: 103.2 kB / 0.6727 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000343/0.2008, allocations: 120.6 kB / 0.6728 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.2008, allocations: 4.062 kB / 0.6728 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.201, allocations: 47.91 kB / 0.6728 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006142/0.2016, allocations: 74.97 kB / 0.6729 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006361/0.2023, allocations: 348.6 kB / 0.6732 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.2026, allocations: 0.7203 MB / 0.674 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.971e-05/0.2027, allocations: 21.53 kB / 0.674 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.281e-05/0.2027, allocations: 19.44 kB / 0.674 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of SimCode: time 3.41e-07/0.2027, allocations: 0 / 0.674 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of Templates: time 0.005291/0.208, allocations: 2.033 MB / 0.676 GB, free: 9.66 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)