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.001344/0.001344, allocations: 108 kB / 15.6 MB, free: 132 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.001499/0.001499, allocations: 194 kB / 16.53 MB, free: 6.391 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.508/1.508, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.083/1.083, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 63.94 kB / 0.5053 GB, free: 5.312 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.232, allocations: 80.93 MB / 0.5844 GB, free: 4.539 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.005345/0.2374, allocations: 3.696 MB / 0.588 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003051/0.2405, allocations: 1.325 MB / 0.5893 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005169/0.2411, allocations: 23.88 kB / 0.5893 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003667/0.2415, allocations: 126.6 kB / 0.5894 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005733/0.242, allocations: 170.5 kB / 0.5896 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.2433, allocations: 0.579 MB / 0.5901 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001103/0.2444, allocations: 0.9682 MB / 0.5911 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006439/0.2451, allocations: 349.6 kB / 0.5914 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005932/0.2457, allocations: 362.4 kB / 0.5918 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003935/0.2461, allocations: 354.1 kB / 0.5921 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.2462, allocations: 76 kB / 0.5922 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.2463, allocations: 80 kB / 0.5922 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.2465, allocations: 175.3 kB / 0.5924 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003281/0.2469, allocations: 389.7 kB / 0.5928 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.2479, allocations: 0.8527 MB / 0.5936 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.2479, allocations: 4 kB / 0.5936 GB, free: 11 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.844e-06/0.2479, allocations: 0 / 0.5936 GB, free: 11 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.146e-05/0.2479, allocations: 0 / 0.5936 GB, free: 11 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002355/0.2503, allocations: 1.183 MB / 0.5948 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.2504, allocations: 8.031 kB / 0.5948 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.2505, allocations: 95.81 kB / 0.5949 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009263/0.2515, allocations: 0.587 MB / 0.5955 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.2516, allocations: 101 kB / 0.5955 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.359e-05/0.2517, allocations: 52.38 kB / 0.5956 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.2529, allocations: 0.608 MB / 0.5962 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.2529, allocations: 0 / 0.5962 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.964e-05/0.253, allocations: 24 kB / 0.5962 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.253, allocations: 12 kB / 0.5962 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.2542, allocations: 419.7 kB / 0.5966 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003386/0.2576, allocations: 2.121 MB / 0.5987 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.259, allocations: 0.4952 MB / 0.5992 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004786/0.2595, allocations: 211.3 kB / 0.5994 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.134e-05/0.2595, allocations: 12 kB / 0.5994 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008301/0.2604, allocations: 278.1 kB / 0.5997 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.915e-06/0.2604, allocations: 0 / 0.5997 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001824/0.2622, allocations: 0.6163 MB / 0.6003 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/0.2623, allocations: 88.86 kB / 0.6003 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000778/0.2631, allocations: 0.6099 MB / 0.6009 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.987e-05/0.2631, allocations: 33.7 kB / 0.601 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002983/0.2635, allocations: 364.8 kB / 0.6013 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.2636, allocations: 149.8 kB / 0.6015 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.2638, allocations: 102.1 kB / 0.6016 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002342/0.264, allocations: 322 kB / 0.6019 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000446/0.2645, allocations: 186.9 kB / 0.602 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005442/0.265, allocations: 272.3 kB / 0.6023 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.2661, allocations: 481.9 kB / 0.6028 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.2661, allocations: 7.938 kB / 0.6028 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001175/0.2673, allocations: 0.5982 MB / 0.6034 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.956e-05/0.2673, allocations: 33.7 kB / 0.6034 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.2673, allocations: 1.406 kB / 0.6034 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.2674, allocations: 12 kB / 0.6034 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000471/0.2678, allocations: 107.8 kB / 0.6035 GB, free: 484 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.2679, allocations: 4 kB / 0.6035 GB, free: 480 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004048/0.2683, allocations: 63.5 kB / 0.6036 GB, free: 416 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.2683, allocations: 16 kB / 0.6036 GB, free: 400 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006184/0.2689, allocations: 313.2 kB / 0.6039 GB, free: 84 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.4267/0.6957, allocations: 261.5 kB / 0.6041 GB, free: 51.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009308/0.6966, allocations: 457.6 kB / 0.6046 GB, free: 51.86 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.439e-06/0.6967, allocations: 1.828 kB / 0.6046 GB, free: 51.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001189/0.6979, allocations: 0.582 MB / 0.6051 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.6979, allocations: 35.67 kB / 0.6052 GB, free: 51.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.6979, allocations: 2.562 kB / 0.6052 GB, free: 51.76 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.6979, allocations: 5.219 kB / 0.6052 GB, free: 51.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004264/0.6984, allocations: 107.7 kB / 0.6053 GB, free: 51.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.6984, allocations: 2.781 kB / 0.6053 GB, free: 51.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003735/0.6988, allocations: 52.22 kB / 0.6053 GB, free: 51.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.6988, allocations: 22.2 kB / 0.6054 GB, free: 51.76 MB / 0.4981 GB 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.0002185/0.699, allocations: 218.6 kB / 0.6056 GB, free: 51.58 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-05/0.6991, allocations: 68.5 kB / 0.6056 GB, free: 51.58 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.6993, allocations: 79.61 kB / 0.6057 GB, free: 51.57 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.6993, allocations: 5.406 kB / 0.6057 GB, free: 51.57 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.6993, allocations: 0 / 0.6057 GB, free: 51.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.6994, allocations: 3.188 kB / 0.6057 GB, free: 51.57 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006341/0.7, allocations: 0.6203 MB / 0.6063 GB, free: 51.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.7, allocations: 0 / 0.6063 GB, free: 51.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/0.7004, allocations: 85.03 kB / 0.6064 GB, free: 51.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.7004, allocations: 0.5469 kB / 0.6064 GB, free: 51.38 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-05/0.7005, allocations: 13.78 kB / 0.6064 GB, free: 51.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.7005, allocations: 6.688 kB / 0.6064 GB, free: 51.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.7005, allocations: 0 / 0.6064 GB, free: 51.38 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.7018, allocations: 0.7333 MB / 0.6071 GB, free: 51.31 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001856/0.702, allocations: 191.1 kB / 0.6073 GB, free: 51.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.114e-05/0.7021, allocations: 10.25 kB / 0.6073 GB, free: 51.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/0.7025, allocations: 38.23 kB / 0.6074 GB, free: 51.18 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.407e-05/0.7026, allocations: 31.67 kB / 0.6074 GB, free: 51.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.7026, allocations: 15.89 kB / 0.6074 GB, free: 51.17 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000424/0.703, allocations: 429.8 kB / 0.6078 GB, free: 50.98 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.703, allocations: 3.375 kB / 0.6078 GB, free: 50.98 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005788/0.7036, allocations: 225.5 kB / 0.608 GB, free: 50.93 MB / 0.4981 GB 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.0001431/0.7038, allocations: 107.4 kB / 0.6081 GB, free: 50.84 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001534/0.7053, allocations: 0.81 MB / 0.6089 GB, free: 50.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.7053, allocations: 0 / 0.6089 GB, free: 50.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004027/0.7057, allocations: 219.5 kB / 0.6091 GB, free: 50.46 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000853/0.7066, allocations: 208.9 kB / 0.6093 GB, free: 50.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.7085, allocations: 1.191 MB / 0.6105 GB, free: 49.79 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.7088, allocations: 0.9135 MB / 0.6114 GB, free: 49.08 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003649/0.7092, allocations: 94.73 kB / 0.6115 GB, free: 49.06 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.7093, allocations: 46.38 kB / 0.6115 GB, free: 49.06 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.7093, allocations: 3.344 kB / 0.6115 GB, free: 49.06 MB / 0.4981 GB Notification: Performance of Templates: time 0.01365/0.723, allocations: 7.575 MB / 0.6189 GB, free: 48.63 MB / 0.4981 GB 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 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)