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.00124/0.00124, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 193 kB / 16.53 MB, free: 6.391 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.395/1.395, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9328/0.9328, allocations: 135.1 MB / 425.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 65.42 kB / 0.5053 GB, free: 5.367 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1842, allocations: 80.93 MB / 0.5844 GB, free: 4.598 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003678/0.188, allocations: 1.804 MB / 0.5861 GB, free: 2.777 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.1892, allocations: 0.5338 MB / 0.5867 GB, free: 2.238 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.1894, allocations: 7.938 kB / 0.5867 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.1896, allocations: 27.73 kB / 0.5867 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.1897, allocations: 23.72 kB / 0.5867 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.19, allocations: 71.86 kB / 0.5868 GB, free: 2.109 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002837/0.1903, allocations: 167.5 kB / 0.5869 GB, free: 1.945 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.1905, allocations: 57.62 kB / 0.587 GB, free: 1.887 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.1906, allocations: 55.72 kB / 0.587 GB, free: 1.832 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.79e-05/0.1907, allocations: 59.64 kB / 0.5871 GB, free: 1.773 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.1907, allocations: 12 kB / 0.5871 GB, free: 1.762 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.64e-05/0.1908, allocations: 8 kB / 0.5871 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.498e-05/0.1908, allocations: 35.84 kB / 0.5872 GB, free: 1.719 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.182e-05/0.1909, allocations: 59.61 kB / 0.5872 GB, free: 1.66 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.1911, allocations: 135.7 kB / 0.5873 GB, free: 1.527 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1912, allocations: 0 / 0.5873 GB, free: 1.527 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1912, allocations: 4 kB / 0.5873 GB, free: 1.523 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.1912, allocations: 0 / 0.5873 GB, free: 1.523 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.0007795/0.192, allocations: 474.7 kB / 0.5878 GB, free: 1.012 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.192, allocations: 8.031 kB / 0.5878 GB, free: 1.004 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.853e-05/0.1921, allocations: 16.75 kB / 0.5878 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.1924, allocations: 229.2 kB / 0.588 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.1924, allocations: 12.36 kB / 0.5881 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.329e-05/0.1925, allocations: 16.38 kB / 0.5881 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.1928, allocations: 157.8 kB / 0.5882 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1928, allocations: 0 / 0.5882 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.1928, allocations: 0 / 0.5882 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.1928, allocations: 4 kB / 0.5882 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.1931, allocations: 75.88 kB / 0.5883 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.1941, allocations: 0.7391 MB / 0.589 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001535/0.1943, allocations: 50.55 kB / 0.5891 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.1944, allocations: 32.83 kB / 0.5891 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.1944, allocations: 0 / 0.5891 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003354/0.1948, allocations: 138.6 kB / 0.5892 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.1948, allocations: 0 / 0.5892 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0005234/0.1953, allocations: 165.6 kB / 0.5894 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.598e-05/0.1954, allocations: 140.4 kB / 0.5895 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.1956, allocations: 198.9 kB / 0.5897 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.1956, allocations: 33.69 kB / 0.5897 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.007e-05/0.1958, allocations: 123.9 kB / 0.5899 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.1958, allocations: 43.64 kB / 0.5899 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.305e-05/0.1959, allocations: 41.7 kB / 0.5899 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.196, allocations: 326.8 kB / 0.5903 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.1962, allocations: 43.97 kB / 0.5903 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.1964, allocations: 144.4 kB / 0.5904 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.1968, allocations: 202.3 kB / 0.5906 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.1968, allocations: 0 / 0.5906 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004756/0.1973, allocations: 205.1 kB / 0.5908 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.1973, allocations: 8 kB / 0.5908 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.1973, allocations: 4 kB / 0.5908 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.1973, allocations: 4 kB / 0.5908 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.1975, allocations: 39.84 kB / 0.5909 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/0.1975, allocations: 8.438 kB / 0.5909 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.1977, allocations: 31.83 kB / 0.5909 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.1977, allocations: 8 kB / 0.5909 GB, free: 13.47 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.0001673/0.1979, allocations: 137.7 kB / 0.5911 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.463e-05/0.1979, allocations: 15.81 kB / 0.5911 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.805e-05/0.198, allocations: 21.41 kB / 0.5911 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.198, allocations: 0 / 0.5911 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.198, allocations: 4 kB / 0.5911 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.198, allocations: 3.984 kB / 0.5911 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009009/0.1989, allocations: 0.5131 MB / 0.5916 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.199, allocations: 3.984 kB / 0.5916 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.1991, allocations: 15.98 kB / 0.5916 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.1991, allocations: 4 kB / 0.5916 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.1991, allocations: 7.938 kB / 0.5916 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.1991, allocations: 8 kB / 0.5916 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.1991, allocations: 3.938 kB / 0.5916 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005671/0.1997, allocations: 360.1 kB / 0.592 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.269e-05/0.1998, allocations: 92.92 kB / 0.5921 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/0.1998, allocations: 320 / 0.5921 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.2, allocations: 20.02 kB / 0.5921 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.2001, allocations: 15.92 kB / 0.5921 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.2001, allocations: 8 kB / 0.5921 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001266/0.2002, allocations: 140.6 kB / 0.5922 GB, free: 12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.2002, allocations: 0 / 0.5922 GB, free: 12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003632/0.2006, allocations: 28 kB / 0.5923 GB, free: 11.98 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.000162/0.2008, allocations: 114.4 kB / 0.5924 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003919/0.2012, allocations: 124.5 kB / 0.5925 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.2012, allocations: 0 / 0.5925 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.2014, allocations: 52.19 kB / 0.5925 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005866/0.202, allocations: 69 kB / 0.5926 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007317/0.2027, allocations: 352.6 kB / 0.593 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.2031, allocations: 0.7281 MB / 0.5937 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.428e-05/0.2032, allocations: 13.55 kB / 0.5937 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.978e-05/0.2032, allocations: 19.44 kB / 0.5937 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of SimCode: time 6.72e-07/0.2032, allocations: 0 / 0.5937 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of Templates: time 0.006004/0.2092, allocations: 1.997 MB / 0.5956 GB, free: 8.484 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)