Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.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.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID") translateModel(IDEAS.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 112.6 kB / 16.37 MB, free: 6 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.001603/0.001603, allocations: 196 kB / 17.31 MB, free: 5.613 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.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.85/0.85, allocations: 135.1 MB / 426.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 67.89 kB / 0.5068 GB, free: 7.645 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5328/0.5341, allocations: 80.91 MB / 0.5858 GB, free: 25.77 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.004759/0.5389, allocations: 3.705 MB / 0.5894 GB, free: 22.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002568/0.5415, allocations: 1.33 MB / 0.5907 GB, free: 21.59 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004561/0.542, allocations: 26.5 kB / 0.5907 GB, free: 21.56 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003193/0.5423, allocations: 126.6 kB / 0.5908 GB, free: 21.44 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00046/0.5429, allocations: 173.4 kB / 0.591 GB, free: 21.27 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009628/0.5438, allocations: 0.5736 MB / 0.5916 GB, free: 20.71 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007249/0.5446, allocations: 0.9654 MB / 0.5925 GB, free: 19.75 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004551/0.545, allocations: 357 kB / 0.5928 GB, free: 19.4 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003007/0.5453, allocations: 354.5 kB / 0.5932 GB, free: 19.05 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002821/0.5456, allocations: 358.5 kB / 0.5935 GB, free: 18.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.292e-05/0.5457, allocations: 80 kB / 0.5936 GB, free: 18.62 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.711e-05/0.5458, allocations: 78.38 kB / 0.5937 GB, free: 18.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.5459, allocations: 187.2 kB / 0.5938 GB, free: 18.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002326/0.5462, allocations: 373.7 kB / 0.5942 GB, free: 18 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006217/0.5468, allocations: 0.8929 MB / 0.5951 GB, free: 17.1 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.5468, allocations: 0 / 0.5951 GB, free: 17.1 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5468, allocations: 0 / 0.5951 GB, free: 17.1 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.687e-05/0.5469, allocations: 1.938 kB / 0.5951 GB, free: 17.1 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001742/0.5486, allocations: 1.177 MB / 0.5962 GB, free: 15.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.5486, allocations: 9.109 kB / 0.5962 GB, free: 15.87 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.5488, allocations: 96.34 kB / 0.5963 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000895/0.5497, allocations: 0.6189 MB / 0.5969 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.975e-05/0.5498, allocations: 101.9 kB / 0.597 GB, free: 15.01 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.989e-05/0.5499, allocations: 53.16 kB / 0.5971 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008541/0.5507, allocations: 0.6012 MB / 0.5977 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.5508, allocations: 0 / 0.5977 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.5508, allocations: 25.94 kB / 0.5977 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.5508, allocations: 12 kB / 0.5977 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007897/0.5516, allocations: 424.8 kB / 0.5981 GB, free: 13.87 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.5538, allocations: 2.097 MB / 0.6002 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009899/0.5548, allocations: 0.4939 MB / 0.6006 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/0.5552, allocations: 210.9 kB / 0.6008 GB, free: 10.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.066e-05/0.5552, allocations: 11.98 kB / 0.6009 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005457/0.5558, allocations: 285 kB / 0.6011 GB, free: 10.69 MB / 446.1 MB Notification: Performance of pre-optimization done (n=45): time 2.064e-06/0.5558, allocations: 0 / 0.6011 GB, free: 10.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.00123/0.557, allocations: 0.6116 MB / 0.6017 GB, free: 10.08 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.5571, allocations: 84.86 kB / 0.6018 GB, free: 9.977 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005281/0.5576, allocations: 0.6138 MB / 0.6024 GB, free: 9.352 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.5577, allocations: 41.64 kB / 0.6024 GB, free: 9.305 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.5579, allocations: 357.4 kB / 0.6028 GB, free: 8.953 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.565e-05/0.558, allocations: 157.7 kB / 0.6029 GB, free: 8.797 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.5581, allocations: 99.53 kB / 0.603 GB, free: 8.695 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.205e-05/0.5582, allocations: 326 kB / 0.6033 GB, free: 8.371 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003702/0.5585, allocations: 181.7 kB / 0.6035 GB, free: 8.191 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.5589, allocations: 275.2 kB / 0.6038 GB, free: 7.891 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007359/0.5597, allocations: 481.2 kB / 0.6042 GB, free: 7.387 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.5597, allocations: 8.625 kB / 0.6042 GB, free: 7.379 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009655/0.5607, allocations: 0.597 MB / 0.6048 GB, free: 6.777 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/0.5607, allocations: 37.64 kB / 0.6049 GB, free: 6.734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.5607, allocations: 4 kB / 0.6049 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.5607, allocations: 4 kB / 0.6049 GB, free: 6.727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004252/0.5612, allocations: 107.8 kB / 0.605 GB, free: 6.621 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.5612, allocations: 7.984 kB / 0.605 GB, free: 6.613 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003524/0.5615, allocations: 66.91 kB / 0.605 GB, free: 6.551 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/0.5616, allocations: 19.98 kB / 0.6051 GB, free: 6.531 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004454/0.562, allocations: 314.1 kB / 0.6054 GB, free: 6.219 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003452/0.5624, allocations: 269.2 kB / 0.6056 GB, free: 5.926 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007679/0.5632, allocations: 453.8 kB / 0.606 GB, free: 5.445 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.235e-06/0.5632, allocations: 0 / 0.606 GB, free: 5.445 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.000983/0.5642, allocations: 0.5787 MB / 0.6066 GB, free: 4.852 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.5642, allocations: 37.69 kB / 0.6066 GB, free: 4.809 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.5642, allocations: 4 kB / 0.6067 GB, free: 4.805 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.58e-06/0.5642, allocations: 4 kB / 0.6067 GB, free: 4.801 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.5647, allocations: 103.8 kB / 0.6068 GB, free: 4.699 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.5647, allocations: 4 kB / 0.6068 GB, free: 4.695 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004121/0.5651, allocations: 59.75 kB / 0.6068 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.5652, allocations: 20 kB / 0.6068 GB, free: 4.617 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001493/0.5653, allocations: 216 kB / 0.607 GB, free: 4.398 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.883e-05/0.5654, allocations: 75.06 kB / 0.6071 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.5656, allocations: 79.2 kB / 0.6072 GB, free: 4.238 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.5656, allocations: 4 kB / 0.6072 GB, free: 4.234 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.5656, allocations: 4 kB / 0.6072 GB, free: 4.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.5656, allocations: 3.984 kB / 0.6072 GB, free: 4.227 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005155/0.5661, allocations: 0.6219 MB / 0.6078 GB, free: 3.555 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.5661, allocations: 0 / 0.6078 GB, free: 3.555 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004111/0.5665, allocations: 75.89 kB / 0.6079 GB, free: 3.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.5665, allocations: 4 kB / 0.6079 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.054e-05/0.5666, allocations: 15.98 kB / 0.6079 GB, free: 3.461 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.5666, allocations: 0 / 0.6079 GB, free: 3.461 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5666, allocations: 0 / 0.6079 GB, free: 3.461 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.5678, allocations: 0.7352 MB / 0.6086 GB, free: 2.707 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002103/0.568, allocations: 188.2 kB / 0.6088 GB, free: 2.504 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.96e-05/0.5681, allocations: 8 kB / 0.6088 GB, free: 2.496 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/0.5685, allocations: 39.95 kB / 0.6088 GB, free: 2.457 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.553e-05/0.5686, allocations: 27.97 kB / 0.6089 GB, free: 2.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.248e-05/0.5686, allocations: 15.98 kB / 0.6089 GB, free: 2.414 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003815/0.569, allocations: 435 kB / 0.6093 GB, free: 1.996 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.569, allocations: 0 / 0.6093 GB, free: 1.996 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005135/0.5695, allocations: 215.3 kB / 0.6095 GB, free: 1.785 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0001227/0.5696, allocations: 119.1 kB / 0.6096 GB, free: 1.656 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.5709, allocations: 0.7853 MB / 0.6104 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.5709, allocations: 0 / 0.6104 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000369/0.5713, allocations: 215.9 kB / 0.6106 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000782/0.5721, allocations: 213 kB / 0.6108 GB, free: 448 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.574, allocations: 1.172 MB / 0.6119 GB, free: 15.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.5745, allocations: 0.9141 MB / 0.6128 GB, free: 14.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003431/0.5748, allocations: 101 kB / 0.6129 GB, free: 14.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.575, allocations: 47.44 kB / 0.613 GB, free: 14.14 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.575, allocations: 0 / 0.613 GB, free: 14.14 MB / 462.1 MB Notification: Performance of Templates: time 0.01378/0.5888, allocations: 7.567 MB / 0.6204 GB, free: 6.664 MB / 462.1 MB make -j1 -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.makefile (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.sim & ./IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)