Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.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.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001397, 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.001835/0.001835, allocations: 193.3 kB / 16.25 MB, free: 6.645 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.47/1.47, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.976/0.976, allocations: 135.6 MB / 425.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 59.27 kB / 0.5054 GB, free: 5.242 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.189, allocations: 81.03 MB / 0.5845 GB, free: 4.352 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005577/0.1946, allocations: 4.109 MB / 0.5885 GB, free: 216 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.1974, allocations: 1.282 MB / 0.5898 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004138/0.1978, allocations: 23.88 kB / 0.5898 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003454/0.1981, allocations: 91.22 kB / 0.5899 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003482/0.1986, allocations: 150.8 kB / 0.59 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008584/0.1994, allocations: 382.2 kB / 0.5904 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009395/0.2004, allocations: 0.9591 MB / 0.5913 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006319/0.201, allocations: 458.1 kB / 0.5917 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003649/0.2014, allocations: 334.7 kB / 0.5921 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003537/0.2017, allocations: 334.3 kB / 0.5924 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.2019, allocations: 92 kB / 0.5925 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.202, allocations: 92 kB / 0.5926 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.2021, allocations: 175.5 kB / 0.5927 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003419/0.2025, allocations: 390 kB / 0.5931 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009479/0.2035, allocations: 1.04 MB / 0.5941 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2035, allocations: 0 / 0.5941 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.964e-06/0.2035, allocations: 4 kB / 0.5941 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.041e-05/0.2035, allocations: 0 / 0.5941 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001857/0.2054, allocations: 1.081 MB / 0.5952 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.2054, allocations: 8.031 kB / 0.5952 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.2056, allocations: 84 kB / 0.5953 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008151/0.2064, allocations: 0.5495 MB / 0.5958 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.245e-05/0.2064, allocations: 41.67 kB / 0.5958 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.605e-05/0.2065, allocations: 68.28 kB / 0.5959 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.2076, allocations: 0.6078 MB / 0.5965 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.2076, allocations: 0 / 0.5965 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.758e-05/0.2077, allocations: 24 kB / 0.5965 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.2077, allocations: 16 kB / 0.5965 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009567/0.2087, allocations: 461 kB / 0.597 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/0.2116, allocations: 2.012 MB / 0.5989 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008941/0.2125, allocations: 445.6 kB / 0.5994 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004393/0.2129, allocations: 242.1 kB / 0.5996 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.985e-05/0.213, allocations: 12.44 kB / 0.5996 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006397/0.2136, allocations: 257.3 kB / 0.5998 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.514e-06/0.2137, allocations: 0 / 0.5998 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.00129/0.215, allocations: 0.5889 MB / 0.6004 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/0.215, allocations: 55.84 kB / 0.6005 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/0.2155, allocations: 445.9 kB / 0.6009 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.397e-05/0.2156, allocations: 37.7 kB / 0.6009 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002567/0.2158, allocations: 324.3 kB / 0.6012 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.216, allocations: 161.7 kB / 0.6014 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.2161, allocations: 94.23 kB / 0.6015 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.2163, allocations: 358.8 kB / 0.6018 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/0.2167, allocations: 169 kB / 0.602 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000424/0.2171, allocations: 249.8 kB / 0.6022 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008035/0.2179, allocations: 463.9 kB / 0.6027 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.218, allocations: 0 / 0.6027 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001023/0.219, allocations: 0.5624 MB / 0.6032 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.886e-05/0.219, allocations: 45.58 kB / 0.6033 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2191, allocations: 0 / 0.6033 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.2191, allocations: 8 kB / 0.6033 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000477/0.2196, allocations: 107.9 kB / 0.6034 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.2196, allocations: 7.938 kB / 0.6034 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003544/0.2199, allocations: 67.66 kB / 0.6035 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-05/0.22, allocations: 16 kB / 0.6035 GB, free: 0.5 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0002687/0.2203, allocations: 209.8 kB / 0.6037 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.058e-05/0.2203, allocations: 55.28 kB / 0.6037 GB, free: 236 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001227/0.2205, allocations: 61.58 kB / 0.6038 GB, free: 176 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.2205, allocations: 8 kB / 0.6038 GB, free: 168 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.2205, allocations: 0 / 0.6038 GB, free: 168 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.2205, allocations: 7.938 kB / 0.6038 GB, free: 160 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3303/0.5508, allocations: 1.175 MB / 0.6049 GB, free: 51.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.5509, allocations: 0 / 0.6049 GB, free: 51.65 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004393/0.5513, allocations: 93.34 kB / 0.605 GB, free: 51.65 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.5513, allocations: 3.156 kB / 0.605 GB, free: 51.65 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.175e-05/0.5514, allocations: 15.84 kB / 0.605 GB, free: 51.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.5514, allocations: 0 / 0.605 GB, free: 51.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.5514, allocations: 0 / 0.605 GB, free: 51.65 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.5525, allocations: 0.7582 MB / 0.6058 GB, free: 51.51 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/0.5527, allocations: 172.7 kB / 0.606 GB, free: 51.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.968e-05/0.5527, allocations: 9.844 kB / 0.606 GB, free: 51.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/0.553, allocations: 31.77 kB / 0.606 GB, free: 51.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.629e-05/0.5531, allocations: 37.17 kB / 0.606 GB, free: 51.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.5532, allocations: 15.69 kB / 0.606 GB, free: 51.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002809/0.5535, allocations: 308.5 kB / 0.6063 GB, free: 51.33 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.01e-07/0.5535, allocations: 1.75 kB / 0.6063 GB, free: 51.33 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004351/0.5539, allocations: 145 kB / 0.6065 GB, free: 51.32 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001255/0.554, allocations: 116.5 kB / 0.6066 GB, free: 51.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009322/0.555, allocations: 0.489 MB / 0.6071 GB, free: 51.04 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.555, allocations: 0 / 0.6071 GB, free: 51.04 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003407/0.5553, allocations: 222.1 kB / 0.6073 GB, free: 50.96 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007093/0.556, allocations: 148.9 kB / 0.6074 GB, free: 50.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.5583, allocations: 1.622 MB / 0.609 GB, free: 49.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.5585, allocations: 0.8902 MB / 0.6099 GB, free: 49.28 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002486/0.5588, allocations: 64.11 kB / 0.6099 GB, free: 49.27 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.5589, allocations: 36.5 kB / 0.61 GB, free: 49.26 MB / 0.4981 GB Notification: Performance of SimCode: time 3.1e-07/0.5589, allocations: 0 / 0.61 GB, free: 49.26 MB / 0.4981 GB Notification: Performance of Templates: time 0.009757/0.5687, allocations: 5.818 MB / 0.6157 GB, free: 48.94 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)