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: "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_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.001155/0.001155, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 196.6 kB / 16.53 MB, free: 6.672 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7302/0.7302, allocations: 132.2 MB / 422.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 67.64 kB / 0.5019 GB, free: 8.668 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.139, allocations: 80.2 MB / 0.5802 GB, free: 8.688 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.004688/0.1437, allocations: 4.095 MB / 0.5842 GB, free: 4.562 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.1455, allocations: 1.325 MB / 0.5855 GB, free: 3.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002495/0.1458, allocations: 27.88 kB / 0.5855 GB, free: 3.203 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002764/0.1461, allocations: 126.7 kB / 0.5856 GB, free: 3.078 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002913/0.1464, allocations: 174.4 kB / 0.5858 GB, free: 2.906 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007152/0.1471, allocations: 421.1 kB / 0.5862 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007163/0.1478, allocations: 0.9516 MB / 0.5871 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000542/0.1484, allocations: 458.1 kB / 0.5876 GB, free: 1.078 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002837/0.1487, allocations: 326.7 kB / 0.5879 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.149, allocations: 338.4 kB / 0.5882 GB, free: 436 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.894e-05/0.1491, allocations: 88 kB / 0.5883 GB, free: 348 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.928e-05/0.1492, allocations: 92 kB / 0.5884 GB, free: 256 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.1493, allocations: 179.3 kB / 0.5885 GB, free: 76 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002933/0.1496, allocations: 394.2 kB / 0.5889 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000723/0.1504, allocations: 1.036 MB / 0.5899 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1504, allocations: 0 / 0.5899 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1504, allocations: 0 / 0.5899 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.1e-05/0.1504, allocations: 4 kB / 0.5899 GB, free: 14.64 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.001617/0.152, allocations: 1.083 MB / 0.591 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1521, allocations: 11.97 kB / 0.591 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.749e-05/0.1522, allocations: 102.7 kB / 0.5911 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.1523, allocations: 80 kB / 0.5912 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007056/0.153, allocations: 0.5533 MB / 0.5917 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.153, allocations: 41.69 kB / 0.5918 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.234e-05/0.1531, allocations: 60.36 kB / 0.5918 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009341/0.1541, allocations: 0.6077 MB / 0.5924 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.1541, allocations: 7.906 kB / 0.5924 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.917e-05/0.1542, allocations: 24 kB / 0.5924 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.1542, allocations: 12 kB / 0.5924 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008951/0.1551, allocations: 461 kB / 0.5929 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002442/0.1575, allocations: 2.016 MB / 0.5949 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008485/0.1584, allocations: 441.5 kB / 0.5953 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004146/0.1588, allocations: 246.1 kB / 0.5955 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.1589, allocations: 4.438 kB / 0.5955 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000525/0.1594, allocations: 257.3 kB / 0.5958 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 1.964e-06/0.1594, allocations: 4 kB / 0.5958 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001172/0.1606, allocations: 0.5843 MB / 0.5963 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.1606, allocations: 59.84 kB / 0.5964 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000415/0.161, allocations: 450 kB / 0.5968 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.1611, allocations: 37.7 kB / 0.5969 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.1613, allocations: 324.3 kB / 0.5972 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.1614, allocations: 165.6 kB / 0.5973 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.1615, allocations: 94.25 kB / 0.5974 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1617, allocations: 358.8 kB / 0.5978 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003628/0.162, allocations: 169 kB / 0.5979 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004029/0.1625, allocations: 253.8 kB / 0.5982 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007545/0.1632, allocations: 448 kB / 0.5986 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1632, allocations: 0 / 0.5986 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009552/0.1642, allocations: 0.5661 MB / 0.5991 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.1642, allocations: 37.7 kB / 0.5992 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1642, allocations: 0 / 0.5992 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.1643, allocations: 11.94 kB / 0.5992 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004659/0.1647, allocations: 119.8 kB / 0.5993 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1648, allocations: 4.25 kB / 0.5993 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.1651, allocations: 63.5 kB / 0.5994 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.1651, allocations: 16 kB / 0.5994 GB, free: 4.613 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 (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.0002213/0.1653, allocations: 206.7 kB / 0.5996 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.496e-05/0.1654, allocations: 63.27 kB / 0.5996 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.1655, allocations: 61.59 kB / 0.5997 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1655, allocations: 4 kB / 0.5997 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1655, allocations: 4 kB / 0.5997 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.1655, allocations: 3.984 kB / 0.5997 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.1671, allocations: 1.177 MB / 0.6009 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.1671, allocations: 0 / 0.6009 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004672/0.1676, allocations: 95.88 kB / 0.601 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1676, allocations: 4 kB / 0.601 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.1677, allocations: 12 kB / 0.601 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1677, allocations: 0 / 0.601 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1677, allocations: 4 kB / 0.601 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.169, allocations: 0.7639 MB / 0.6017 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.1692, allocations: 164.4 kB / 0.6019 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.323e-05/0.1692, allocations: 12 kB / 0.6019 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.1695, allocations: 23.97 kB / 0.6019 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.453e-05/0.1696, allocations: 32.39 kB / 0.6019 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/0.1696, allocations: 19.98 kB / 0.602 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002961/0.1699, allocations: 306.9 kB / 0.6023 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.61e-07/0.17, allocations: 0 / 0.6023 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003881/0.1703, allocations: 139.5 kB / 0.6024 GB, free: 1.438 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 (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.001485/0.1718, allocations: 1.331 MB / 0.6037 GB, free: 88 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.2223/0.3941, allocations: 0.4908 MB / 0.6042 GB, free: 55.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.3942, allocations: 0 / 0.6042 GB, free: 55.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003724/0.3946, allocations: 213.3 kB / 0.6044 GB, free: 55.96 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000784/0.3954, allocations: 153.8 kB / 0.6045 GB, free: 55.96 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00565/0.401, allocations: 4.888 MB / 0.6093 GB, free: 53.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.4013, allocations: 0.8897 MB / 0.6102 GB, free: 52.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002611/0.4016, allocations: 64.94 kB / 0.6102 GB, free: 52.78 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.4018, allocations: 217 kB / 0.6104 GB, free: 52.62 MB / 0.4981 GB Notification: Performance of SimCode: time 7.41e-07/0.4018, allocations: 4 kB / 0.6104 GB, free: 52.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/0.4288, allocations: 11.1 MB / 0.6213 GB, free: 51.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.238/7.666, allocations: 2.953 kB / 0.6213 GB, free: 51.7 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)