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: "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006999/0.006999, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001575/0.001575, allocations: 197.7 kB / 16.68 MB, free: 5.977 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.533/1.533, 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-master/package.mo): time 1.11/1.11, allocations: 135.5 MB / 426.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 71.89 kB / 0.5857 GB, free: 3.234 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.577/0.579, allocations: 81.02 MB / 0.6648 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005348/0.5844, allocations: 4.099 MB / 0.6688 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003084/0.5875, allocations: 1.316 MB / 0.6701 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006208/0.5882, allocations: 25.62 kB / 0.6702 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003686/0.5886, allocations: 127.9 kB / 0.6703 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004032/0.589, allocations: 179 kB / 0.6704 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009059/0.5899, allocations: 423 kB / 0.6708 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009599/0.5909, allocations: 0.9553 MB / 0.6718 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006651/0.5916, allocations: 463.3 kB / 0.6722 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003635/0.5919, allocations: 330.1 kB / 0.6725 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003288/0.5923, allocations: 335.9 kB / 0.6729 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.5924, allocations: 90.91 kB / 0.6729 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.5926, allocations: 95.34 kB / 0.673 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.5927, allocations: 174.4 kB / 0.6732 GB, free: 356 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003216/0.5931, allocations: 393.1 kB / 0.6736 GB, free: 52 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001418/0.5945, allocations: 1.069 MB / 0.6746 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5945, allocations: 0 / 0.6746 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.347e-06/0.5945, allocations: 0 / 0.6746 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.5945, allocations: 0 / 0.6746 GB, free: 15.2 MB / 0.5137 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.002245/0.5968, allocations: 1.107 MB / 0.6757 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.5968, allocations: 9.656 kB / 0.6757 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001362/0.597, allocations: 101.5 kB / 0.6758 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.5972, allocations: 89.66 kB / 0.6759 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.5983, allocations: 0.5742 MB / 0.6765 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.526e-05/0.5984, allocations: 40.94 kB / 0.6765 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.5985, allocations: 59.16 kB / 0.6765 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.5998, allocations: 0.6078 MB / 0.6771 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.5999, allocations: 0 / 0.6771 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.334e-05/0.5999, allocations: 25.08 kB / 0.6772 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.6, allocations: 18.69 kB / 0.6772 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.6011, allocations: 458.2 kB / 0.6776 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003534/0.6046, allocations: 2 MB / 0.6796 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.6057, allocations: 446.1 kB / 0.68 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000525/0.6062, allocations: 242 kB / 0.6802 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.602e-05/0.6063, allocations: 8.875 kB / 0.6802 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006417/0.6069, allocations: 269.5 kB / 0.6805 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.956e-06/0.607, allocations: 0 / 0.6805 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001532/0.6085, allocations: 0.5762 MB / 0.6811 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.6086, allocations: 57.41 kB / 0.6811 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006694/0.6093, allocations: 456.2 kB / 0.6815 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.173e-05/0.6093, allocations: 36.27 kB / 0.6816 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003231/0.6096, allocations: 325.8 kB / 0.6819 GB, free: 9.898 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.6098, allocations: 170.2 kB / 0.6821 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.61, allocations: 98.92 kB / 0.6821 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002431/0.6103, allocations: 362.6 kB / 0.6825 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/0.6107, allocations: 168.6 kB / 0.6827 GB, free: 9.25 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005124/0.6113, allocations: 257.2 kB / 0.6829 GB, free: 9.07 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009329/0.6122, allocations: 456.2 kB / 0.6833 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.6122, allocations: 0 / 0.6833 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001194/0.6134, allocations: 0.5596 MB / 0.6839 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.607e-05/0.6135, allocations: 42.34 kB / 0.6839 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.6135, allocations: 6.688 kB / 0.6839 GB, free: 8.43 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.6135, allocations: 4.906 kB / 0.6839 GB, free: 8.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005397/0.6141, allocations: 112.7 kB / 0.684 GB, free: 8.402 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.6141, allocations: 4.281 kB / 0.684 GB, free: 8.402 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003911/0.6145, allocations: 55.16 kB / 0.6841 GB, free: 8.367 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.88e-05/0.6145, allocations: 22.11 kB / 0.6841 GB, free: 8.359 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.0003432/0.6149, allocations: 211.3 kB / 0.6843 GB, free: 8.18 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.202e-05/0.615, allocations: 61.59 kB / 0.6844 GB, free: 8.145 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.6152, allocations: 62.61 kB / 0.6844 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.6152, allocations: 4.875 kB / 0.6844 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.615e-05/0.6152, allocations: 1.062 kB / 0.6844 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.6152, allocations: 0 / 0.6844 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.6174, allocations: 1.183 MB / 0.6856 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.6174, allocations: 0 / 0.6856 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005038/0.6179, allocations: 95 kB / 0.6857 GB, free: 7.203 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.6179, allocations: 2.438 kB / 0.6857 GB, free: 7.203 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.926e-05/0.6179, allocations: 11.56 kB / 0.6857 GB, free: 7.195 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.618, allocations: 1.125 kB / 0.6857 GB, free: 7.195 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.618, allocations: 1.062 kB / 0.6857 GB, free: 7.195 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.6196, allocations: 0.767 MB / 0.6865 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002308/0.6199, allocations: 171.5 kB / 0.6866 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.025e-05/0.62, allocations: 11.44 kB / 0.6866 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/0.6203, allocations: 26.73 kB / 0.6867 GB, free: 6.543 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.6204, allocations: 39.94 kB / 0.6867 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/0.6204, allocations: 17.03 kB / 0.6867 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004433/0.6209, allocations: 307.7 kB / 0.687 GB, free: 6.324 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6209, allocations: 0 / 0.687 GB, free: 6.324 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005816/0.6215, allocations: 141.6 kB / 0.6871 GB, free: 6.285 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.001939/0.6234, allocations: 1.323 MB / 0.6884 GB, free: 5.281 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001115/0.6246, allocations: 489.7 kB / 0.6889 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.6246, allocations: 0 / 0.6889 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000436/0.625, allocations: 222.4 kB / 0.6891 GB, free: 4.926 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008371/0.6259, allocations: 152.5 kB / 0.6893 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008675/0.6345, allocations: 4.799 MB / 0.6939 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006366/0.6352, allocations: 0.8855 MB / 0.6948 GB, free: 0.832 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003969/0.6356, allocations: 64.23 kB / 0.6949 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.636, allocations: 218.2 kB / 0.6951 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/0.636, allocations: 1.125 kB / 0.6951 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04467/0.6807, allocations: 11.31 MB / 0.7061 GB, free: 6.113 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.137/9.818, allocations: 11.61 kB / 0.7061 GB, free: 6.102 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)