Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.006501/0.006501, allocations: 99.98 kB / 15.73 MB, free: 6.496 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.001434/0.001434, allocations: 199 kB / 16.68 MB, free: 6.375 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7802/0.7802, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 67.88 kB / 0.5813 GB, free: 7.574 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5813/0.5826, allocations: 80.2 MB / 0.6596 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.00543/0.5881, allocations: 4.097 MB / 0.6636 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002578/0.5907, allocations: 1.324 MB / 0.6649 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004016/0.5911, allocations: 21.62 kB / 0.665 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.5915, allocations: 132 kB / 0.6651 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000332/0.5918, allocations: 180.8 kB / 0.6653 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007812/0.5926, allocations: 416.9 kB / 0.6657 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009202/0.5935, allocations: 0.9637 MB / 0.6666 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006351/0.5942, allocations: 452 kB / 0.667 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003252/0.5945, allocations: 333.9 kB / 0.6673 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.5948, allocations: 335.6 kB / 0.6677 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.5949, allocations: 95.53 kB / 0.6678 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.595, allocations: 90.56 kB / 0.6678 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.5952, allocations: 182.6 kB / 0.668 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002811/0.5955, allocations: 388.7 kB / 0.6684 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000823/0.5963, allocations: 1.066 MB / 0.6694 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.5963, allocations: 1.25 kB / 0.6694 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.886e-06/0.5963, allocations: 0 / 0.6694 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.143e-05/0.5963, allocations: 3.938 kB / 0.6694 GB, free: 3.016 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.001712/0.598, allocations: 1.084 MB / 0.6705 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.5981, allocations: 9.5 kB / 0.6705 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.5982, allocations: 85.38 kB / 0.6706 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008201/0.5991, allocations: 0.5699 MB / 0.6711 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.5991, allocations: 42.03 kB / 0.6712 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.143e-05/0.5992, allocations: 58.84 kB / 0.6712 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.6003, allocations: 0.6102 MB / 0.6718 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.6003, allocations: 1.469 kB / 0.6718 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.887e-05/0.6004, allocations: 24.81 kB / 0.6719 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.6004, allocations: 14.66 kB / 0.6719 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009779/0.6014, allocations: 458.1 kB / 0.6723 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002775/0.6041, allocations: 1.991 MB / 0.6742 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00095/0.6051, allocations: 453.8 kB / 0.6747 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.6056, allocations: 245.2 kB / 0.6749 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.976e-05/0.6056, allocations: 4.719 kB / 0.6749 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005575/0.6062, allocations: 266.1 kB / 0.6752 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.425e-06/0.6062, allocations: 0 / 0.6752 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001388/0.6076, allocations: 0.5797 MB / 0.6757 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.6077, allocations: 61.17 kB / 0.6758 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005491/0.6082, allocations: 440.8 kB / 0.6762 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.6083, allocations: 35.27 kB / 0.6763 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.6085, allocations: 333.9 kB / 0.6766 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.6087, allocations: 164.7 kB / 0.6767 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.6088, allocations: 90.78 kB / 0.6768 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001811/0.609, allocations: 366.8 kB / 0.6772 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003866/0.6094, allocations: 164.4 kB / 0.6773 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/0.6099, allocations: 258 kB / 0.6776 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008976/0.6108, allocations: 451.4 kB / 0.678 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.6108, allocations: 1.062 kB / 0.678 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001157/0.6119, allocations: 0.5586 MB / 0.6785 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.956e-05/0.612, allocations: 40.39 kB / 0.6786 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.612, allocations: 2.625 kB / 0.6786 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.588e-05/0.6121, allocations: 4.125 kB / 0.6786 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005021/0.6126, allocations: 118.4 kB / 0.6787 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.6126, allocations: 4.656 kB / 0.6787 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003494/0.6129, allocations: 57.09 kB / 0.6788 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-05/0.613, allocations: 18.53 kB / 0.6788 GB, free: 12.31 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.0002873/0.6133, allocations: 207 kB / 0.679 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.374e-05/0.6134, allocations: 62.44 kB / 0.679 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.6135, allocations: 69.83 kB / 0.6791 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.6136, allocations: 9.875 kB / 0.6791 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.6136, allocations: 0 / 0.6791 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.6136, allocations: 0 / 0.6791 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/0.6154, allocations: 1.179 MB / 0.6803 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.6154, allocations: 0 / 0.6803 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004631/0.6159, allocations: 95.64 kB / 0.6804 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.6159, allocations: 1.469 kB / 0.6804 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/0.6159, allocations: 15.77 kB / 0.6804 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.616, allocations: 6.188 kB / 0.6804 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.616, allocations: 0 / 0.6804 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.6174, allocations: 0.7591 MB / 0.6811 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001995/0.6176, allocations: 167.8 kB / 0.6813 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.909e-05/0.6177, allocations: 10.75 kB / 0.6813 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.618, allocations: 30.75 kB / 0.6813 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.6181, allocations: 32.27 kB / 0.6813 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.6181, allocations: 13.62 kB / 0.6814 GB, free: 10.47 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003663/0.6185, allocations: 315.1 kB / 0.6817 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/0.6185, allocations: 0 / 0.6817 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005134/0.619, allocations: 146.1 kB / 0.6818 GB, free: 10.23 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.0001622/0.6192, allocations: 106 kB / 0.6819 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009718/0.6202, allocations: 486.4 kB / 0.6824 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.6202, allocations: 3.938 kB / 0.6824 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004124/0.6206, allocations: 218 kB / 0.6826 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007716/0.6214, allocations: 161.3 kB / 0.6827 GB, free: 9.703 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.6242, allocations: 1.344 MB / 0.684 GB, free: 8.812 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.6247, allocations: 0.885 MB / 0.6849 GB, free: 8.031 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002786/0.6249, allocations: 63.73 kB / 0.685 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.6251, allocations: 42.72 kB / 0.685 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of SimCode: time 5.61e-07/0.6251, allocations: 0 / 0.685 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of Templates: time 0.01212/0.6372, allocations: 5.998 MB / 0.6909 GB, free: 5.098 MB / 0.5137 GB make -j1 -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)