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.001227/0.001227, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001409/0.001409, allocations: 190.4 kB / 16.25 MB, free: 6.633 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.421/1.421, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9653/0.9653, allocations: 135.1 MB / 425.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 65.8 kB / 0.5049 GB, free: 5.629 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1875, allocations: 80.92 MB / 0.5839 GB, free: 4.871 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003455/0.191, allocations: 1.872 MB / 0.5857 GB, free: 2.984 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.1921, allocations: 0.5261 MB / 0.5862 GB, free: 2.453 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.1923, allocations: 7.875 kB / 0.5862 GB, free: 2.445 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.1925, allocations: 19.86 kB / 0.5863 GB, free: 2.426 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.561e-05/0.1925, allocations: 19.8 kB / 0.5863 GB, free: 2.406 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.1928, allocations: 59.94 kB / 0.5863 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002254/0.193, allocations: 171.4 kB / 0.5865 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.1932, allocations: 57.62 kB / 0.5865 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.961e-05/0.1933, allocations: 55.72 kB / 0.5866 GB, free: 2.066 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.594e-05/0.1934, allocations: 59.7 kB / 0.5867 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.1934, allocations: 8 kB / 0.5867 GB, free: 2 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.337e-05/0.1934, allocations: 12 kB / 0.5867 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.37e-05/0.1935, allocations: 31.84 kB / 0.5867 GB, free: 1.957 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.028e-05/0.1935, allocations: 67.61 kB / 0.5868 GB, free: 1.891 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.1937, allocations: 119.8 kB / 0.5869 GB, free: 1.773 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.1937, allocations: 0 / 0.5869 GB, free: 1.773 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1937, allocations: 0 / 0.5869 GB, free: 1.773 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.1938, allocations: 0 / 0.5869 GB, free: 1.773 MB / 494.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.0007464/0.1945, allocations: 482.7 kB / 0.5873 GB, free: 1.254 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1946, allocations: 8.031 kB / 0.5874 GB, free: 1.246 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.662e-05/0.1946, allocations: 20.75 kB / 0.5874 GB, free: 1.227 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002553/0.1949, allocations: 231.9 kB / 0.5876 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.1949, allocations: 8.375 kB / 0.5876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.914e-05/0.195, allocations: 16.36 kB / 0.5876 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.1953, allocations: 156.2 kB / 0.5878 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1953, allocations: 0 / 0.5878 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.1953, allocations: 8 kB / 0.5878 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1953, allocations: 0 / 0.5878 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002367/0.1956, allocations: 75.88 kB / 0.5878 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.1966, allocations: 0.7392 MB / 0.5886 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.1968, allocations: 46.55 kB / 0.5886 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.1969, allocations: 36.83 kB / 0.5886 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.197, allocations: 7.938 kB / 0.5887 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003394/0.1973, allocations: 122.7 kB / 0.5888 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.1973, allocations: 0 / 0.5888 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0005218/0.1979, allocations: 169.5 kB / 0.5889 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/0.1979, allocations: 132.5 kB / 0.5891 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.1981, allocations: 198.9 kB / 0.5892 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.1982, allocations: 33.69 kB / 0.5893 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.894e-05/0.1983, allocations: 127.9 kB / 0.5894 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.073e-05/0.1983, allocations: 39.59 kB / 0.5894 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.581e-05/0.1984, allocations: 45.77 kB / 0.5895 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1985, allocations: 326.8 kB / 0.5898 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.1987, allocations: 43.91 kB / 0.5898 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.1989, allocations: 146.4 kB / 0.59 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.1992, allocations: 198.4 kB / 0.5902 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1992, allocations: 3.938 kB / 0.5902 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004061/0.1996, allocations: 205.1 kB / 0.5904 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1997, allocations: 4 kB / 0.5904 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.1997, allocations: 4 kB / 0.5904 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.1997, allocations: 8.5 kB / 0.5904 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.1998, allocations: 39.91 kB / 0.5904 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.1999, allocations: 7.938 kB / 0.5904 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.2, allocations: 27.83 kB / 0.5905 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.2001, allocations: 8.25 kB / 0.5905 GB, free: 13.71 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.0001388/0.2002, allocations: 137.7 kB / 0.5906 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.2002, allocations: 19.8 kB / 0.5906 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.002e-05/0.2003, allocations: 17.41 kB / 0.5906 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.2003, allocations: 8 kB / 0.5906 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2003, allocations: 4 kB / 0.5906 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.2003, allocations: 3.984 kB / 0.5906 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008049/0.2011, allocations: 0.5053 MB / 0.5911 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2012, allocations: 4 kB / 0.5911 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.2013, allocations: 19.98 kB / 0.5912 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.2013, allocations: 3.984 kB / 0.5912 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.2013, allocations: 7.938 kB / 0.5912 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.2013, allocations: 3.938 kB / 0.5912 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2013, allocations: 4.219 kB / 0.5912 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005517/0.2019, allocations: 364.2 kB / 0.5915 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.146e-05/0.202, allocations: 88.92 kB / 0.5916 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.202, allocations: 4 kB / 0.5916 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.2022, allocations: 12.03 kB / 0.5916 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.725e-05/0.2023, allocations: 23.84 kB / 0.5916 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.2023, allocations: 8 kB / 0.5917 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000123/0.2024, allocations: 140.6 kB / 0.5918 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2024, allocations: 0 / 0.5918 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003492/0.2028, allocations: 28 kB / 0.5918 GB, free: 12.21 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.0001525/0.2029, allocations: 103.2 kB / 0.5919 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003716/0.2033, allocations: 128.2 kB / 0.592 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2033, allocations: 0 / 0.592 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.2035, allocations: 47.91 kB / 0.5921 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006167/0.2041, allocations: 71.06 kB / 0.5922 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006508/0.2048, allocations: 397.2 kB / 0.5925 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.2051, allocations: 0.7242 MB / 0.5932 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.273e-05/0.2052, allocations: 17.55 kB / 0.5933 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.532e-05/0.2052, allocations: 19.44 kB / 0.5933 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.2053, allocations: 0 / 0.5933 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of Templates: time 0.00503/0.2103, allocations: 1.911 MB / 0.5951 GB, free: 8.781 MB / 0.4981 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)