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.001327/0.001327, allocations: 108 kB / 15.61 MB, free: 148 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.001533/0.001533, allocations: 196.6 kB / 16.53 MB, free: 6.656 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.535/1.535, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.04/1.04, allocations: 135.2 MB / 425.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 65.11 kB / 0.5054 GB, free: 5.336 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1972/0.1987, allocations: 80.93 MB / 0.5844 GB, free: 4.562 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006368/0.2051, allocations: 4.102 MB / 0.5884 GB, free: 440 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003286/0.2084, allocations: 1.309 MB / 0.5897 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009288/0.2094, allocations: 23.88 kB / 0.5897 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005552/0.2099, allocations: 130.7 kB / 0.5898 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008175/0.2108, allocations: 178.4 kB / 0.59 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.2121, allocations: 428.5 kB / 0.5904 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001476/0.2135, allocations: 0.9554 MB / 0.5913 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008521/0.2144, allocations: 458 kB / 0.5918 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000588/0.215, allocations: 334.7 kB / 0.5921 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.2154, allocations: 326.4 kB / 0.5924 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.2156, allocations: 92 kB / 0.5925 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.2157, allocations: 92 kB / 0.5926 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.2159, allocations: 183.4 kB / 0.5928 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003617/0.2162, allocations: 382.1 kB / 0.5931 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00107/0.2173, allocations: 1.044 MB / 0.5941 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.2173, allocations: 7.938 kB / 0.5942 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.694e-06/0.2173, allocations: 0 / 0.5942 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.137e-05/0.2173, allocations: 0 / 0.5942 GB, free: 10.51 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.002011/0.2194, allocations: 1.073 MB / 0.5952 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.2194, allocations: 12.03 kB / 0.5952 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.2196, allocations: 80 kB / 0.5953 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008528/0.2204, allocations: 0.5534 MB / 0.5958 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.306e-05/0.2205, allocations: 41.69 kB / 0.5959 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.38e-05/0.2206, allocations: 60.36 kB / 0.5959 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.2217, allocations: 0.6117 MB / 0.5965 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.2217, allocations: 3.906 kB / 0.5965 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.698e-05/0.2218, allocations: 24 kB / 0.5965 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.2218, allocations: 15.98 kB / 0.5966 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009626/0.2228, allocations: 461 kB / 0.597 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002834/0.2256, allocations: 2.012 MB / 0.599 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008876/0.2265, allocations: 445.9 kB / 0.5994 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000423/0.227, allocations: 242.1 kB / 0.5996 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.699e-05/0.227, allocations: 8.375 kB / 0.5996 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005884/0.2276, allocations: 261.3 kB / 0.5999 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.325e-06/0.2276, allocations: 0 / 0.5999 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001298/0.2289, allocations: 0.5889 MB / 0.6005 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.229, allocations: 59.84 kB / 0.6005 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004596/0.2294, allocations: 445.9 kB / 0.6009 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.691e-05/0.2295, allocations: 41.69 kB / 0.601 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.2297, allocations: 320.3 kB / 0.6013 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.2299, allocations: 169.6 kB / 0.6014 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.23, allocations: 90.25 kB / 0.6015 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002219/0.2302, allocations: 358.8 kB / 0.6019 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.2306, allocations: 169 kB / 0.602 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004458/0.2311, allocations: 253.8 kB / 0.6023 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008189/0.2319, allocations: 448 kB / 0.6027 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2319, allocations: 0 / 0.6027 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00108/0.233, allocations: 0.5661 MB / 0.6033 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.586e-05/0.2331, allocations: 37.64 kB / 0.6033 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.2331, allocations: 4 kB / 0.6033 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.2331, allocations: 4 kB / 0.6033 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005003/0.2336, allocations: 116.1 kB / 0.6034 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.2336, allocations: 8 kB / 0.6034 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003366/0.234, allocations: 55.5 kB / 0.6035 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/0.234, allocations: 20 kB / 0.6035 GB, free: 0.5938 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.0002897/0.2343, allocations: 208.9 kB / 0.6037 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.065e-05/0.2344, allocations: 59.28 kB / 0.6037 GB, free: 332 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.2345, allocations: 61.58 kB / 0.6038 GB, free: 272 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.2345, allocations: 15.98 kB / 0.6038 GB, free: 256 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.2346, allocations: 0 / 0.6038 GB, free: 256 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.2346, allocations: 3.984 kB / 0.6038 GB, free: 252 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.378/0.6125, allocations: 1.173 MB / 0.605 GB, free: 52.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.6126, allocations: 0 / 0.605 GB, free: 52.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004991/0.6131, allocations: 95.94 kB / 0.6051 GB, free: 52.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.6131, allocations: 2.906 kB / 0.6051 GB, free: 52.05 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.6132, allocations: 12.95 kB / 0.6051 GB, free: 52.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.6132, allocations: 3.031 kB / 0.6051 GB, free: 52.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.6132, allocations: 1.969 kB / 0.6051 GB, free: 52.05 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.6144, allocations: 0.7588 MB / 0.6058 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.6146, allocations: 167.2 kB / 0.606 GB, free: 51.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.509e-05/0.6147, allocations: 10.16 kB / 0.606 GB, free: 51.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002803/0.6149, allocations: 25.17 kB / 0.606 GB, free: 51.81 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.574e-05/0.615, allocations: 36.77 kB / 0.6061 GB, free: 51.81 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-05/0.6151, allocations: 14.38 kB / 0.6061 GB, free: 51.81 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003192/0.6154, allocations: 311.7 kB / 0.6064 GB, free: 51.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6154, allocations: 0 / 0.6064 GB, free: 51.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004719/0.6159, allocations: 143.1 kB / 0.6065 GB, free: 51.73 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.0001513/0.616, allocations: 115.9 kB / 0.6066 GB, free: 51.64 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001081/0.6171, allocations: 0.4883 MB / 0.6071 GB, free: 51.51 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6172, allocations: 2.875 kB / 0.6071 GB, free: 51.51 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003656/0.6175, allocations: 222.7 kB / 0.6073 GB, free: 51.44 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007583/0.6183, allocations: 153.1 kB / 0.6074 GB, free: 51.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.621, allocations: 1.354 MB / 0.6088 GB, free: 50.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.6213, allocations: 0.8915 MB / 0.6096 GB, free: 50.02 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002867/0.6216, allocations: 61.88 kB / 0.6097 GB, free: 50.01 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.6217, allocations: 52.5 kB / 0.6097 GB, free: 50 MB / 0.4981 GB Notification: Performance of SimCode: time 3.8e-07/0.6217, allocations: 0 / 0.6097 GB, free: 50 MB / 0.4981 GB Notification: Performance of Templates: time 0.01111/0.6329, allocations: 5.903 MB / 0.6155 GB, free: 49.67 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)