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.001357/0.001356, allocations: 86.25 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.001437/0.001437, 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.593/1.593, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.155/1.155, allocations: 135.3 MB / 426.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004002, allocations: 8 kB / 0.507 GB, free: 5.133 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2248, allocations: 82.31 MB / 0.5874 GB, free: 3 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.004623/0.2295, allocations: 3.497 MB / 0.5908 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003008/0.2326, allocations: 1.243 MB / 0.592 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004775/0.2331, allocations: 19.94 kB / 0.592 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003203/0.2334, allocations: 87.2 kB / 0.5921 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003351/0.2338, allocations: 142.8 kB / 0.5922 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008674/0.2346, allocations: 279.5 kB / 0.5925 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009425/0.2356, allocations: 0.8384 MB / 0.5933 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005316/0.2361, allocations: 295.5 kB / 0.5936 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003097/0.2364, allocations: 226.9 kB / 0.5938 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003149/0.2368, allocations: 242.6 kB / 0.5941 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.617e-05/0.2368, allocations: 24 kB / 0.5941 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.277e-05/0.2369, allocations: 24 kB / 0.5941 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.237, allocations: 99.47 kB / 0.5942 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.2372, allocations: 153.3 kB / 0.5943 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008047/0.238, allocations: 0.8105 MB / 0.5951 GB, free: 11 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.238, allocations: 0 / 0.5951 GB, free: 11 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.446e-06/0.238, allocations: 0 / 0.5951 GB, free: 11 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.044e-05/0.238, allocations: 0 / 0.5951 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001803/0.2399, allocations: 0.9561 MB / 0.5961 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.2399, allocations: 8.031 kB / 0.5961 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.2401, allocations: 94.91 kB / 0.5962 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000854/0.241, allocations: 0.533 MB / 0.5967 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.865e-05/0.241, allocations: 41.31 kB / 0.5967 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.687e-05/0.2411, allocations: 59.98 kB / 0.5968 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.2423, allocations: 0.6075 MB / 0.5974 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.2423, allocations: 0 / 0.5974 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.69e-05/0.2424, allocations: 24 kB / 0.5974 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.2424, allocations: 12 kB / 0.5974 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009497/0.2434, allocations: 473 kB / 0.5979 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002997/0.2464, allocations: 2.02 MB / 0.5998 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008894/0.2473, allocations: 462.4 kB / 0.6003 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004327/0.2477, allocations: 242.1 kB / 0.6005 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.2478, allocations: 12.38 kB / 0.6005 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006144/0.2484, allocations: 261.4 kB / 0.6008 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 3.016e-06/0.2484, allocations: 0 / 0.6008 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001295/0.2497, allocations: 0.6076 MB / 0.6014 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.2498, allocations: 55.84 kB / 0.6014 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005161/0.2503, allocations: 442.7 kB / 0.6018 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.21e-05/0.2503, allocations: 33.7 kB / 0.6019 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002612/0.2506, allocations: 320.3 kB / 0.6022 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.2508, allocations: 165.5 kB / 0.6023 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.526e-05/0.2508, allocations: 16 kB / 0.6023 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002025/0.251, allocations: 366.8 kB / 0.6027 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003665/0.2514, allocations: 165 kB / 0.6029 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/0.2518, allocations: 261.8 kB / 0.6031 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004287/0.2523, allocations: 219.9 kB / 0.6033 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.2523, allocations: 4 kB / 0.6033 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00101/0.2533, allocations: 0.5663 MB / 0.6039 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.798e-05/0.2533, allocations: 33.7 kB / 0.6039 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.2534, allocations: 0 / 0.6039 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.145e-05/0.2534, allocations: 11.95 kB / 0.6039 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004869/0.2539, allocations: 120.1 kB / 0.604 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.2539, allocations: 4 kB / 0.604 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.2543, allocations: 67.56 kB / 0.6041 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.2543, allocations: 19.98 kB / 0.6041 GB, free: 1.484 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 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003125/0.2546, allocations: 215.5 kB / 0.6043 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.265e-05/0.2547, allocations: 55.34 kB / 0.6044 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001507/0.2549, allocations: 65.58 kB / 0.6044 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.2549, allocations: 4 kB / 0.6044 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.2549, allocations: 3.953 kB / 0.6044 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.2549, allocations: 4 kB / 0.6044 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4708/0.7257, allocations: 1.185 MB / 0.6056 GB, free: 48.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.7257, allocations: 0 / 0.6056 GB, free: 48.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005745/0.7263, allocations: 94.36 kB / 0.6057 GB, free: 48.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.137e-05/0.7263, allocations: 4.062 kB / 0.6057 GB, free: 48.61 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.7264, allocations: 14.23 kB / 0.6057 GB, free: 48.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/0.7264, allocations: 2.5 kB / 0.6057 GB, free: 48.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.7264, allocations: 3.844 kB / 0.6057 GB, free: 48.61 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.7278, allocations: 0.7737 MB / 0.6065 GB, free: 48.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.7281, allocations: 166.5 kB / 0.6066 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.37e-05/0.7281, allocations: 14.56 kB / 0.6066 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.7284, allocations: 34.7 kB / 0.6067 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.681e-05/0.7285, allocations: 33.11 kB / 0.6067 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.7286, allocations: 19.12 kB / 0.6067 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003902/0.729, allocations: 304.5 kB / 0.607 GB, free: 48.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.729, allocations: 0 / 0.607 GB, free: 48.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005166/0.7295, allocations: 144.4 kB / 0.6072 GB, free: 48.3 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 (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.0001527/0.7296, allocations: 122.4 kB / 0.6073 GB, free: 48.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009065/0.7306, allocations: 490 kB / 0.6077 GB, free: 48.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7306, allocations: 0 / 0.6077 GB, free: 48.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004081/0.731, allocations: 222.4 kB / 0.608 GB, free: 48.13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.7317, allocations: 138.8 kB / 0.6081 GB, free: 48.13 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.7344, allocations: 1.622 MB / 0.6097 GB, free: 47.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.7347, allocations: 0.8873 MB / 0.6105 GB, free: 46.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003006/0.7351, allocations: 62.78 kB / 0.6106 GB, free: 46.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.7352, allocations: 47.22 kB / 0.6106 GB, free: 46.57 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.7352, allocations: 0 / 0.6106 GB, free: 46.57 MB / 0.4981 GB Notification: Performance of Templates: time 0.01051/0.7457, allocations: 5.351 MB / 0.6159 GB, free: 46.27 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)