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.001006/0.001006, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.0088/0.0088, allocations: 169.4 kB / 16.26 MB, free: 6.68 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.541/1.541, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.036/1.036, allocations: 135.3 MB / 426.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000371/0.0003711, allocations: 9.375 kB / 0.5076 GB, free: 4.809 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2264, allocations: 82.3 MB / 0.588 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006449/0.2329, allocations: 3.689 MB / 0.5916 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004213/0.2372, allocations: 1.278 MB / 0.5928 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009621/0.2383, allocations: 19.94 kB / 0.5928 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004341/0.2387, allocations: 95.22 kB / 0.5929 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005077/0.2392, allocations: 150.8 kB / 0.5931 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.2403, allocations: 380.3 kB / 0.5934 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009853/0.2413, allocations: 0.8734 MB / 0.5943 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007092/0.2421, allocations: 426.1 kB / 0.5947 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004249/0.2425, allocations: 230.7 kB / 0.5949 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003182/0.2428, allocations: 258.4 kB / 0.5951 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.189e-05/0.2429, allocations: 24 kB / 0.5952 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.923e-05/0.243, allocations: 20 kB / 0.5952 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.2431, allocations: 103.4 kB / 0.5953 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003077/0.2434, allocations: 331.8 kB / 0.5956 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008785/0.2443, allocations: 0.9575 MB / 0.5965 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2443, allocations: 4 kB / 0.5965 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.725e-06/0.2443, allocations: 0 / 0.5965 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.163e-05/0.2444, allocations: 0 / 0.5965 GB, free: 9.805 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.001937/0.2463, allocations: 0.9524 MB / 0.5975 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/0.2464, allocations: 8.031 kB / 0.5975 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001677/0.2465, allocations: 95.89 kB / 0.5976 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.2476, allocations: 0.5456 MB / 0.5981 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.485e-05/0.2476, allocations: 45.69 kB / 0.5981 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.703e-05/0.2477, allocations: 56.38 kB / 0.5982 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.2489, allocations: 0.6195 MB / 0.5988 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.2489, allocations: 4 kB / 0.5988 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.778e-05/0.249, allocations: 24 kB / 0.5988 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.249, allocations: 12 kB / 0.5988 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.2501, allocations: 473 kB / 0.5993 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003329/0.2535, allocations: 2.02 MB / 0.6013 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000975/0.2545, allocations: 461.9 kB / 0.6017 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004859/0.2549, allocations: 261.7 kB / 0.602 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.255, allocations: 4.438 kB / 0.602 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006155/0.2556, allocations: 265.3 kB / 0.6022 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 4.679e-06/0.2556, allocations: 4 kB / 0.6022 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001406/0.257, allocations: 0.589 MB / 0.6028 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.2572, allocations: 67.78 kB / 0.6029 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005468/0.2577, allocations: 449.9 kB / 0.6033 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.2578, allocations: 41.64 kB / 0.6033 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002535/0.258, allocations: 324.3 kB / 0.6036 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.2582, allocations: 165.6 kB / 0.6038 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.14e-05/0.2583, allocations: 49.69 kB / 0.6038 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.2585, allocations: 362.8 kB / 0.6042 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003968/0.2589, allocations: 177 kB / 0.6044 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004566/0.2593, allocations: 253.8 kB / 0.6046 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.2604, allocations: 460 kB / 0.605 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2604, allocations: 0 / 0.605 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00109/0.2615, allocations: 0.574 MB / 0.6056 GB, free: 204 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.636e-05/0.2615, allocations: 41.89 kB / 0.6056 GB, free: 156 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.2616, allocations: 4 kB / 0.6056 GB, free: 152 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.2616, allocations: 4 kB / 0.6056 GB, free: 148 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004858/0.2621, allocations: 115.8 kB / 0.6058 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.2621, allocations: 4 kB / 0.6058 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4755/0.7376, allocations: 65.72 kB / 0.6058 GB, free: 48.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.01e-05/0.7377, allocations: 19.27 kB / 0.6058 GB, free: 48.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.0005066/0.7383, allocations: 209.6 kB / 0.606 GB, free: 48.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.7384, allocations: 58.69 kB / 0.6061 GB, free: 48.38 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001656/0.7386, allocations: 64.55 kB / 0.6062 GB, free: 48.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.7386, allocations: 7.719 kB / 0.6062 GB, free: 48.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.7386, allocations: 3.375 kB / 0.6062 GB, free: 48.38 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-06/0.7386, allocations: 4.016 kB / 0.6062 GB, free: 48.38 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001907/0.7405, allocations: 1.194 MB / 0.6073 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.7405, allocations: 0 / 0.6073 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004727/0.741, allocations: 97.05 kB / 0.6074 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.741, allocations: 0.5156 kB / 0.6074 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/0.7411, allocations: 16.5 kB / 0.6075 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.7411, allocations: 0 / 0.6075 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.7411, allocations: 1.562 kB / 0.6075 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.7424, allocations: 0.7833 MB / 0.6082 GB, free: 47.94 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.7426, allocations: 167.7 kB / 0.6084 GB, free: 47.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.962e-05/0.7426, allocations: 13.17 kB / 0.6084 GB, free: 47.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.7429, allocations: 32.64 kB / 0.6084 GB, free: 47.85 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.743, allocations: 37.92 kB / 0.6085 GB, free: 47.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.7431, allocations: 13.19 kB / 0.6085 GB, free: 47.85 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003386/0.7434, allocations: 306.5 kB / 0.6088 GB, free: 47.76 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7434, allocations: 0 / 0.6088 GB, free: 47.76 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004855/0.7439, allocations: 142.3 kB / 0.6089 GB, free: 47.76 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.0001474/0.7441, allocations: 116.7 kB / 0.609 GB, free: 47.67 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009267/0.745, allocations: 495.5 kB / 0.6095 GB, free: 47.61 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.745, allocations: 1.969 kB / 0.6095 GB, free: 47.61 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004152/0.7454, allocations: 218.1 kB / 0.6097 GB, free: 47.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000832/0.7463, allocations: 154.4 kB / 0.6098 GB, free: 47.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.7491, allocations: 1.688 MB / 0.6115 GB, free: 46.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.7495, allocations: 0.8848 MB / 0.6124 GB, free: 45.99 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002922/0.7498, allocations: 68.3 kB / 0.6124 GB, free: 45.97 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.7499, allocations: 40.12 kB / 0.6125 GB, free: 45.96 MB / 0.4981 GB Notification: Performance of SimCode: time 1.303e-06/0.7499, allocations: 0 / 0.6125 GB, free: 45.96 MB / 0.4981 GB Notification: Performance of Templates: time 0.01064/0.7605, allocations: 5.506 MB / 0.6178 GB, free: 45.65 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)