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.001012/0.001012, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.001253/0.001253, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.75/1.75, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.126/1.126, allocations: 135.3 MB / 426.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003649/0.0003651, allocations: 8 kB / 0.507 GB, free: 5.137 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.22, allocations: 82.3 MB / 0.5874 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.005099/0.2251, allocations: 3.123 MB / 0.5904 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003745/0.2289, allocations: 1.247 MB / 0.5916 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001021/0.23, allocations: 27.81 kB / 0.5917 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006423/0.2306, allocations: 91.09 kB / 0.5917 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009462/0.2316, allocations: 139 kB / 0.5919 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.2331, allocations: 457.4 kB / 0.5923 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001464/0.2346, allocations: 0.8277 MB / 0.5931 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006769/0.2353, allocations: 259.1 kB / 0.5934 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006309/0.2359, allocations: 266.5 kB / 0.5936 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005349/0.2365, allocations: 262.3 kB / 0.5939 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001611/0.2367, allocations: 20 kB / 0.5939 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.2368, allocations: 24 kB / 0.5939 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.2369, allocations: 111.4 kB / 0.594 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.2371, allocations: 137.3 kB / 0.5942 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006977/0.2378, allocations: 0.6159 MB / 0.5948 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.2379, allocations: 3.984 kB / 0.5948 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.884e-06/0.2379, allocations: 0 / 0.5948 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.141e-05/0.2379, allocations: 0 / 0.5948 GB, free: 11.39 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.002514/0.2404, allocations: 1.067 MB / 0.5958 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.2405, allocations: 12.03 kB / 0.5958 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003168/0.2408, allocations: 90.88 kB / 0.5959 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.242, allocations: 0.5707 MB / 0.5965 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002475/0.2423, allocations: 104.4 kB / 0.5966 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.2424, allocations: 52 kB / 0.5966 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.2437, allocations: 0.6002 MB / 0.5972 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.2438, allocations: 4 kB / 0.5972 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.699e-05/0.2438, allocations: 27.94 kB / 0.5972 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.2439, allocations: 12 kB / 0.5972 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.245, allocations: 439.7 kB / 0.5977 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003555/0.2485, allocations: 2.129 MB / 0.5997 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.2498, allocations: 0.5308 MB / 0.6003 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000484/0.2503, allocations: 227.9 kB / 0.6005 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.131e-05/0.2504, allocations: 11.98 kB / 0.6005 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007467/0.2511, allocations: 286.2 kB / 0.6008 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 3.016e-06/0.2511, allocations: 0 / 0.6008 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001471/0.2526, allocations: 0.6384 MB / 0.6014 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.855e-05/0.2527, allocations: 92.78 kB / 0.6015 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008825/0.2536, allocations: 0.6139 MB / 0.6021 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.522e-05/0.2536, allocations: 37.7 kB / 0.6021 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003253/0.254, allocations: 352.8 kB / 0.6024 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001507/0.2541, allocations: 153.7 kB / 0.6026 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.432e-05/0.2542, allocations: 15.94 kB / 0.6026 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2543, allocations: 333.9 kB / 0.6029 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004289/0.2548, allocations: 181 kB / 0.6031 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005017/0.2553, allocations: 284.2 kB / 0.6034 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004939/0.2558, allocations: 238.4 kB / 0.6036 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2558, allocations: 0 / 0.6036 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001415/0.2572, allocations: 0.6139 MB / 0.6042 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002188/0.2575, allocations: 181.3 kB / 0.6044 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.2575, allocations: 4 kB / 0.6044 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.2575, allocations: 8 kB / 0.6044 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004667/0.258, allocations: 115.8 kB / 0.6045 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/0.258, allocations: 4 kB / 0.6045 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004504/0.2585, allocations: 75.36 kB / 0.6046 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.2585, allocations: 20 kB / 0.6046 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.2586, allocations: 8 kB / 0.6046 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001002/0.2596, allocations: 0.4998 MB / 0.6051 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.2596, allocations: 4 kB / 0.6051 GB, free: 416 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.484e-06/0.2596, allocations: 4 kB / 0.6051 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.26, allocations: 107.8 kB / 0.6052 GB, free: 304 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.26, allocations: 8 kB / 0.6052 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003819/0.2604, allocations: 59.77 kB / 0.6053 GB, free: 236 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.105e-05/0.2605, allocations: 19.98 kB / 0.6053 GB, free: 216 kB / 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.4563/0.7168, allocations: 269.7 kB / 0.6055 GB, free: 48.29 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003451/0.7171, allocations: 76.55 kB / 0.6056 GB, free: 48.29 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003125/0.7174, allocations: 77.17 kB / 0.6057 GB, free: 48.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.7175, allocations: 5.344 kB / 0.6057 GB, free: 48.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.7175, allocations: 0 / 0.6057 GB, free: 48.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.7175, allocations: 4.281 kB / 0.6057 GB, free: 48.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009937/0.7185, allocations: 0.6211 MB / 0.6063 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.7185, allocations: 0 / 0.6063 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/0.7191, allocations: 89.06 kB / 0.6064 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.087e-05/0.7191, allocations: 1.406 kB / 0.6064 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.655e-05/0.7191, allocations: 13.14 kB / 0.6064 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.7191, allocations: 6.188 kB / 0.6064 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.7192, allocations: 2.062 kB / 0.6064 GB, free: 48.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.7206, allocations: 0.7475 MB / 0.6071 GB, free: 48.02 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/0.7209, allocations: 194 kB / 0.6073 GB, free: 47.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.629e-05/0.7209, allocations: 9.25 kB / 0.6073 GB, free: 47.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003528/0.7213, allocations: 45.09 kB / 0.6074 GB, free: 47.92 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.7214, allocations: 31.23 kB / 0.6074 GB, free: 47.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-05/0.7215, allocations: 17.33 kB / 0.6074 GB, free: 47.92 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005031/0.722, allocations: 432.1 kB / 0.6078 GB, free: 47.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.722, allocations: 1.594 kB / 0.6078 GB, free: 47.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007676/0.7228, allocations: 217 kB / 0.608 GB, free: 47.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001858/0.723, allocations: 111.4 kB / 0.6081 GB, free: 47.72 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001517/0.7245, allocations: 0.8079 MB / 0.6089 GB, free: 47.59 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.7245, allocations: 3.062 kB / 0.6089 GB, free: 47.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000435/0.7249, allocations: 225.9 kB / 0.6091 GB, free: 47.58 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009046/0.7259, allocations: 195 kB / 0.6093 GB, free: 47.58 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.7279, allocations: 1.378 MB / 0.6107 GB, free: 46.88 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003493/0.7283, allocations: 0.914 MB / 0.6116 GB, free: 46.18 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004047/0.7287, allocations: 90.09 kB / 0.6117 GB, free: 46.18 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.7288, allocations: 48.56 kB / 0.6117 GB, free: 46.18 MB / 0.4981 GB Notification: Performance of SimCode: time 9.72e-07/0.7288, allocations: 2.844 kB / 0.6117 GB, free: 46.18 MB / 0.4981 GB Notification: Performance of Templates: time 0.01293/0.7418, allocations: 6.88 MB / 0.6184 GB, free: 45.77 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)