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.008342/0.008342, allocations: 96.48 kB / 15.73 MB, free: 6.484 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.001345/0.001346, allocations: 191.4 kB / 16.67 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.689/1.689, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.038/1.038, allocations: 135.1 MB / 425.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 59.91 kB / 0.5856 GB, free: 3.41 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5528/0.554, allocations: 80.93 MB / 0.6646 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.00515/0.5592, allocations: 4.093 MB / 0.6686 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002381/0.5616, allocations: 1.316 MB / 0.6699 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003783/0.562, allocations: 25.53 kB / 0.6699 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003163/0.5624, allocations: 134.8 kB / 0.67 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000308/0.5627, allocations: 179.8 kB / 0.6702 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007647/0.5634, allocations: 410.4 kB / 0.6706 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008609/0.5643, allocations: 0.9604 MB / 0.6715 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006356/0.565, allocations: 458.9 kB / 0.672 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003464/0.5653, allocations: 334.2 kB / 0.6723 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003263/0.5656, allocations: 324.2 kB / 0.6726 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001571/0.5658, allocations: 90.59 kB / 0.6727 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.566, allocations: 90.66 kB / 0.6728 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.5661, allocations: 187.8 kB / 0.673 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003135/0.5664, allocations: 392.4 kB / 0.6733 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009903/0.5674, allocations: 1.078 MB / 0.6744 GB, free: 208 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5674, allocations: 0 / 0.6744 GB, free: 208 kB / 0.4981 GB Notification: Performance of FrontEnd: time 2.234e-06/0.5674, allocations: 0 / 0.6744 GB, free: 208 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.5675, allocations: 1.312 kB / 0.6744 GB, free: 208 kB / 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.001991/0.5694, allocations: 1.093 MB / 0.6755 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.5695, allocations: 13.66 kB / 0.6755 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.5697, allocations: 90.86 kB / 0.6756 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009806/0.5707, allocations: 0.5658 MB / 0.6761 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.05e-05/0.5707, allocations: 46.75 kB / 0.6762 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.5708, allocations: 58.41 kB / 0.6762 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.572, allocations: 0.6107 MB / 0.6768 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.572, allocations: 1.219 kB / 0.6768 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.689e-05/0.5721, allocations: 29.25 kB / 0.6768 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.5721, allocations: 18.47 kB / 0.6769 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.5732, allocations: 457.1 kB / 0.6773 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002943/0.5761, allocations: 2.001 MB / 0.6792 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.5771, allocations: 446.2 kB / 0.6797 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004903/0.5777, allocations: 249.7 kB / 0.6799 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.182e-05/0.5777, allocations: 5.688 kB / 0.6799 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000567/0.5783, allocations: 261.2 kB / 0.6802 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.204e-06/0.5783, allocations: 0 / 0.6802 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001444/0.5797, allocations: 0.5849 MB / 0.6807 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.5798, allocations: 61.27 kB / 0.6808 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005498/0.5804, allocations: 446.9 kB / 0.6812 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.129e-05/0.5804, allocations: 37.05 kB / 0.6813 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002892/0.5807, allocations: 329.5 kB / 0.6816 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/0.5809, allocations: 173.2 kB / 0.6817 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.5811, allocations: 95.16 kB / 0.6818 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.5812, allocations: 367.5 kB / 0.6822 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003939/0.5816, allocations: 163.9 kB / 0.6823 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004412/0.5821, allocations: 253.1 kB / 0.6826 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008178/0.5829, allocations: 452.8 kB / 0.683 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.5829, allocations: 0 / 0.683 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001057/0.584, allocations: 0.563 MB / 0.6836 GB, free: 9.562 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.714e-05/0.5841, allocations: 40.88 kB / 0.6836 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.5841, allocations: 1.781 kB / 0.6836 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.593e-05/0.5841, allocations: 5.156 kB / 0.6836 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005213/0.5846, allocations: 113.2 kB / 0.6837 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.5847, allocations: 4.25 kB / 0.6837 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003619/0.585, allocations: 66.42 kB / 0.6838 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.5851, allocations: 17.59 kB / 0.6838 GB, free: 9.445 MB / 0.5137 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.0002608/0.5853, allocations: 203.7 kB / 0.684 GB, free: 9.273 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.708e-05/0.5854, allocations: 62.75 kB / 0.684 GB, free: 9.238 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.5856, allocations: 66.95 kB / 0.6841 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.5856, allocations: 4.75 kB / 0.6841 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.5856, allocations: 4 kB / 0.6841 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.5856, allocations: 3.938 kB / 0.6841 GB, free: 9.18 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.5874, allocations: 1.175 MB / 0.6853 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.5875, allocations: 3.984 kB / 0.6853 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004584/0.5879, allocations: 92.23 kB / 0.6854 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.5879, allocations: 2.25 kB / 0.6854 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.603e-05/0.588, allocations: 19.27 kB / 0.6854 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.588, allocations: 1.125 kB / 0.6854 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.588, allocations: 1.156 kB / 0.6854 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.5894, allocations: 0.7714 MB / 0.6861 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.5896, allocations: 166.8 kB / 0.6863 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.561e-05/0.5897, allocations: 11.84 kB / 0.6863 GB, free: 7.641 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002831/0.59, allocations: 27.09 kB / 0.6863 GB, free: 7.625 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.5901, allocations: 35.86 kB / 0.6864 GB, free: 7.605 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.5901, allocations: 8.5 kB / 0.6864 GB, free: 7.605 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003823/0.5905, allocations: 311.5 kB / 0.6867 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.61e-07/0.5905, allocations: 0 / 0.6867 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005208/0.5911, allocations: 146.7 kB / 0.6868 GB, free: 7.371 MB / 0.5137 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.000151/0.5912, allocations: 113.9 kB / 0.6869 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001052/0.5923, allocations: 480.6 kB / 0.6874 GB, free: 7.016 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5923, allocations: 4.438 kB / 0.6874 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004569/0.5928, allocations: 223.1 kB / 0.6876 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008385/0.5936, allocations: 169.2 kB / 0.6878 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.5967, allocations: 1.357 MB / 0.6891 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005218/0.5972, allocations: 0.8839 MB / 0.6899 GB, free: 5.137 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002929/0.5975, allocations: 64.2 kB / 0.69 GB, free: 5.102 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.5976, allocations: 43.06 kB / 0.69 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of SimCode: time 3.81e-07/0.5976, allocations: 0 / 0.69 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of Templates: time 0.01242/0.6101, allocations: 5.992 MB / 0.6959 GB, free: 1.316 MB / 0.5137 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)