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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.01171/0.01171, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.797/0.797, allocations: 135.2 MB / 151.1 MB, free: 13.81 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.749/1.749, allocations: 223.2 MB / 406.9 MB, free: 3.227 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009296/0.0009296, allocations: 101.9 kB / 489.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004891/0.0004892, allocations: 15.92 kB / 0.5691 GB, free: 14.18 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5682/0.5687, allocations: 82.3 MB / 0.6495 GB, free: 36.16 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1949/0.7636, allocations: 117.9 MB / 0.7646 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003471/0.7641, allocations: 83.95 kB / 0.7647 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.0344/0.7985, allocations: 12.37 MB / 0.7768 GB, free: 1.582 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.266e-06/0.7986, allocations: 0 / 0.7768 GB, free: 1.582 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.078e-05/0.7986, allocations: 24.12 kB / 0.7768 GB, free: 1.559 MB / 0.5417 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.002134/0.8008, allocations: 0.954 MB / 0.7778 GB, free: 0.5469 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.458e-05/0.8009, allocations: 12.03 kB / 0.7778 GB, free: 0.5352 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002059/0.8011, allocations: 90.91 kB / 0.7778 GB, free: 456 kB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009707/0.8021, allocations: 0.5213 MB / 0.7784 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.8022, allocations: 41.31 kB / 0.7784 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.8023, allocations: 63.91 kB / 0.7785 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.8037, allocations: 0.66 MB / 0.7791 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.8037, allocations: 0 / 0.7791 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-05/0.8038, allocations: 24 kB / 0.7791 GB, free: 15.06 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.8038, allocations: 19.95 kB / 0.7791 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/0.8049, allocations: 0.5165 MB / 0.7797 GB, free: 14.53 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003292/0.8082, allocations: 2.099 MB / 0.7817 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.8094, allocations: 0.5314 MB / 0.7822 GB, free: 11.82 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.316e-05/0.8094, allocations: 8.375 kB / 0.7822 GB, free: 11.82 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007056/0.8101, allocations: 305.3 kB / 0.7825 GB, free: 11.51 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=50): time 4.027e-06/0.8101, allocations: 0 / 0.7825 GB, free: 11.51 MB / 0.5573 GB Notification: Performance of matching and sorting (n=50): time 0.001548/0.8117, allocations: 0.7014 MB / 0.7832 GB, free: 10.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.8118, allocations: 166.7 kB / 0.7834 GB, free: 10.6 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005064/0.8124, allocations: 397.2 kB / 0.7837 GB, free: 10.2 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.378e-05/0.8124, allocations: 37.69 kB / 0.7838 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002769/0.8127, allocations: 313.2 kB / 0.7841 GB, free: 9.852 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.8129, allocations: 169.5 kB / 0.7842 GB, free: 9.684 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.577e-05/0.8129, allocations: 8 kB / 0.7842 GB, free: 9.676 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000194/0.8131, allocations: 366.8 kB / 0.7846 GB, free: 9.309 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004413/0.8135, allocations: 205 kB / 0.7848 GB, free: 9.109 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005336/0.8141, allocations: 307.5 kB / 0.7851 GB, free: 8.777 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004973/0.8146, allocations: 259.8 kB / 0.7853 GB, free: 8.52 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.8146, allocations: 4 kB / 0.7853 GB, free: 8.516 MB / 0.5573 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001198/0.8158, allocations: 0.6326 MB / 0.786 GB, free: 7.871 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 6.412e-05/0.8159, allocations: 29.7 kB / 0.786 GB, free: 7.836 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.8159, allocations: 4.188 kB / 0.786 GB, free: 7.832 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.816, allocations: 8 kB / 0.786 GB, free: 7.824 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005176/0.8165, allocations: 119.8 kB / 0.7861 GB, free: 7.707 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.8165, allocations: 4 kB / 0.7861 GB, free: 7.703 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.817, allocations: 79.64 kB / 0.7862 GB, free: 7.625 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.008e-05/0.817, allocations: 16 kB / 0.7862 GB, free: 7.609 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,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 (64): * Single equations (assignments): 63 * 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.0003581/0.8174, allocations: 213.7 kB / 0.7864 GB, free: 7.391 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.206e-05/0.8175, allocations: 63.2 kB / 0.7865 GB, free: 7.328 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.8177, allocations: 65.58 kB / 0.7865 GB, free: 7.262 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.8177, allocations: 8 kB / 0.7865 GB, free: 7.254 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.8177, allocations: 0 / 0.7865 GB, free: 7.254 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.8177, allocations: 4 kB / 0.7865 GB, free: 7.25 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.8199, allocations: 1.322 MB / 0.7878 GB, free: 5.871 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.8199, allocations: 0 / 0.7878 GB, free: 5.871 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005311/0.8204, allocations: 111.9 kB / 0.7879 GB, free: 5.762 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.8204, allocations: 0 / 0.7879 GB, free: 5.762 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.8205, allocations: 12 kB / 0.7879 GB, free: 5.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.8205, allocations: 0 / 0.7879 GB, free: 5.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.8205, allocations: 0 / 0.7879 GB, free: 5.75 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.8221, allocations: 0.889 MB / 0.7888 GB, free: 4.844 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002399/0.8224, allocations: 192.2 kB / 0.789 GB, free: 4.637 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/0.8224, allocations: 12 kB / 0.789 GB, free: 4.625 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003742/0.8228, allocations: 51.95 kB / 0.7891 GB, free: 4.574 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.8229, allocations: 32.39 kB / 0.7891 GB, free: 4.543 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.823, allocations: 19.98 kB / 0.7891 GB, free: 4.523 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003873/0.8234, allocations: 314.9 kB / 0.7894 GB, free: 4.219 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.41e-07/0.8234, allocations: 0 / 0.7894 GB, free: 4.219 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0005194/0.8239, allocations: 155.5 kB / 0.7896 GB, free: 4.066 MB / 0.5573 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.conPID.trigger,$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 (50): * Single equations (assignments): 48 * 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.0002113/0.8241, allocations: 115.2 kB / 0.7897 GB, free: 3.945 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001124/0.8253, allocations: 0.5482 MB / 0.7902 GB, free: 3.383 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.8253, allocations: 4 kB / 0.7902 GB, free: 3.379 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004991/0.8258, allocations: 254.4 kB / 0.7905 GB, free: 3.133 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000763/0.8266, allocations: 134 kB / 0.7906 GB, free: 3.004 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.83, allocations: 1.829 MB / 0.7924 GB, free: 1.141 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006156/0.8306, allocations: 0.9019 MB / 0.7932 GB, free: 220 kB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003196/0.8309, allocations: 72.53 kB / 0.7933 GB, free: 144 kB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.8311, allocations: 43.42 kB / 0.7934 GB, free: 100 kB / 0.5573 GB Notification: Performance of SimCode: time 2.41e-07/0.8311, allocations: 4 kB / 0.7934 GB, free: 96 kB / 0.5573 GB Notification: Performance of Templates: time 0.5145/1.346, allocations: 6.206 MB / 0.7994 GB, free: 131.5 MB / 0.5573 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)