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.001804/0.001804, allocations: 104.9 kB / 16.27 MB, free: 5.949 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.001991/0.001991, allocations: 189.9 kB / 17.2 MB, free: 5.586 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.592/1.592, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8886/0.8886, allocations: 135.1 MB / 426.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001872, allocations: 59.91 kB / 0.506 GB, free: 8.395 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4661/0.468, allocations: 80.91 MB / 0.585 GB, free: 25.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005153/0.4732, allocations: 4.094 MB / 0.589 GB, free: 22.02 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002533/0.4758, allocations: 1.316 MB / 0.5903 GB, free: 20.94 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004953/0.4763, allocations: 25.81 kB / 0.5903 GB, free: 20.93 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003534/0.4767, allocations: 126.3 kB / 0.5904 GB, free: 20.81 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003374/0.4771, allocations: 179.9 kB / 0.5906 GB, free: 20.66 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008163/0.4779, allocations: 420.8 kB / 0.591 GB, free: 20.32 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006574/0.4786, allocations: 0.9515 MB / 0.5919 GB, free: 19.46 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005283/0.4791, allocations: 458.5 kB / 0.5924 GB, free: 19 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002531/0.4794, allocations: 330.7 kB / 0.5927 GB, free: 18.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.4796, allocations: 338.9 kB / 0.593 GB, free: 18.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.341e-05/0.4797, allocations: 88.66 kB / 0.5931 GB, free: 18.26 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.396e-05/0.4798, allocations: 92 kB / 0.5932 GB, free: 18.17 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.48, allocations: 181.7 kB / 0.5934 GB, free: 17.99 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.4802, allocations: 386.1 kB / 0.5937 GB, free: 17.61 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006441/0.4808, allocations: 1.038 MB / 0.5947 GB, free: 16.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.4809, allocations: 3.984 kB / 0.5947 GB, free: 16.57 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.4809, allocations: 0 / 0.5947 GB, free: 16.57 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.4809, allocations: 3.938 kB / 0.5947 GB, free: 16.57 MB / 446.1 MB 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.001576/0.4825, allocations: 1.071 MB / 0.5958 GB, free: 15.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.4825, allocations: 18.28 kB / 0.5958 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.4826, allocations: 80 kB / 0.5959 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006412/0.4833, allocations: 0.5506 MB / 0.5964 GB, free: 14.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.4833, allocations: 45.69 kB / 0.5965 GB, free: 14.72 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.734e-05/0.4834, allocations: 60.28 kB / 0.5965 GB, free: 14.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008479/0.4843, allocations: 0.6111 MB / 0.5971 GB, free: 14.03 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.4843, allocations: 0 / 0.5971 GB, free: 14.03 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.94e-05/0.4844, allocations: 28 kB / 0.5971 GB, free: 14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.4844, allocations: 12.62 kB / 0.5972 GB, free: 13.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008165/0.4852, allocations: 459.1 kB / 0.5976 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.4875, allocations: 2.025 MB / 0.5996 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007766/0.4883, allocations: 442.1 kB / 0.6 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.4886, allocations: 244.4 kB / 0.6002 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.4887, allocations: 5.875 kB / 0.6002 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005075/0.4892, allocations: 262.7 kB / 0.6005 GB, free: 10.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.4892, allocations: 4 kB / 0.6005 GB, free: 10.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001118/0.4903, allocations: 0.5784 MB / 0.6011 GB, free: 9.926 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.4904, allocations: 65.84 kB / 0.6011 GB, free: 9.852 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000359/0.4907, allocations: 442 kB / 0.6015 GB, free: 9.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.4908, allocations: 33.7 kB / 0.6016 GB, free: 9.371 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.4909, allocations: 325 kB / 0.6019 GB, free: 9.051 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.563e-05/0.491, allocations: 161.7 kB / 0.602 GB, free: 8.891 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.4912, allocations: 94.89 kB / 0.6021 GB, free: 8.793 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.7e-05/0.4912, allocations: 363.8 kB / 0.6025 GB, free: 8.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003211/0.4916, allocations: 166.1 kB / 0.6026 GB, free: 8.266 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.4919, allocations: 252.3 kB / 0.6029 GB, free: 7.996 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006652/0.4926, allocations: 453.8 kB / 0.6033 GB, free: 7.523 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4926, allocations: 0 / 0.6033 GB, free: 7.523 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008606/0.4935, allocations: 0.5663 MB / 0.6039 GB, free: 6.945 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.4935, allocations: 37.64 kB / 0.6039 GB, free: 6.902 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.4935, allocations: 3.938 kB / 0.6039 GB, free: 6.898 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.4936, allocations: 4 kB / 0.6039 GB, free: 6.895 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004746/0.494, allocations: 116.5 kB / 0.604 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.4941, allocations: 5.625 kB / 0.604 GB, free: 6.777 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.4944, allocations: 59.5 kB / 0.6041 GB, free: 6.719 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.08e-05/0.4944, allocations: 16 kB / 0.6041 GB, free: 6.703 MB / 446.1 MB 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.0001971/0.4946, allocations: 208.6 kB / 0.6043 GB, free: 6.492 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.836e-05/0.4947, allocations: 63.28 kB / 0.6044 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.4948, allocations: 62.23 kB / 0.6044 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.4948, allocations: 4 kB / 0.6044 GB, free: 6.367 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.4948, allocations: 1.719 kB / 0.6044 GB, free: 6.367 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4948, allocations: 3.984 kB / 0.6044 GB, free: 6.363 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.4962, allocations: 1.183 MB / 0.6056 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4962, allocations: 1.969 kB / 0.6056 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004213/0.4966, allocations: 95.89 kB / 0.6057 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.4967, allocations: 0 / 0.6057 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.581e-05/0.4967, allocations: 11.98 kB / 0.6057 GB, free: 5.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.4967, allocations: 0 / 0.6057 GB, free: 5.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.4967, allocations: 4.688 kB / 0.6057 GB, free: 5.016 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.4978, allocations: 0.7635 MB / 0.6064 GB, free: 4.242 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.498, allocations: 172.3 kB / 0.6066 GB, free: 4.055 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.498, allocations: 12 kB / 0.6066 GB, free: 4.043 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002668/0.4983, allocations: 26.48 kB / 0.6066 GB, free: 4.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.739e-05/0.4984, allocations: 36.39 kB / 0.6067 GB, free: 3.984 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.4984, allocations: 16 kB / 0.6067 GB, free: 3.969 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002576/0.4987, allocations: 310.9 kB / 0.607 GB, free: 3.668 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4987, allocations: 0 / 0.607 GB, free: 3.668 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004021/0.4991, allocations: 136.4 kB / 0.6071 GB, free: 3.535 MB / 446.1 MB 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.0001253/0.4992, allocations: 114.9 kB / 0.6072 GB, free: 3.418 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009437/0.5002, allocations: 0.4968 MB / 0.6077 GB, free: 2.906 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.5002, allocations: 0 / 0.6077 GB, free: 2.906 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.5006, allocations: 219.9 kB / 0.6079 GB, free: 2.691 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007134/0.5013, allocations: 159.4 kB / 0.6081 GB, free: 2.547 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.5036, allocations: 1.389 MB / 0.6094 GB, free: 1.133 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.5039, allocations: 0.8935 MB / 0.6103 GB, free: 216 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.504, allocations: 51.44 kB / 0.6103 GB, free: 164 kB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.5041, allocations: 0 / 0.6103 GB, free: 164 kB / 446.1 MB Notification: Performance of Templates: time 0.01169/0.5158, allocations: 7.589 MB / 0.6178 GB, free: 8.613 MB / 462.1 MB 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)