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.001424/0.001424, allocations: 108 kB / 15.6 MB, free: 132 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.00184/0.00184, allocations: 193.7 kB / 16.53 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.481/1.481, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.049/1.049, allocations: 135.1 MB / 425.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 68.16 kB / 0.5054 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1957, allocations: 80.92 MB / 0.5845 GB, free: 4.488 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005847/0.2015, allocations: 4.092 MB / 0.5885 GB, free: 376 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.2043, allocations: 1.329 MB / 0.5898 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009542/0.2053, allocations: 19.94 kB / 0.5898 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005055/0.2058, allocations: 130.6 kB / 0.5899 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006354/0.2065, allocations: 170.4 kB / 0.5901 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.2076, allocations: 423.3 kB / 0.5905 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001196/0.2088, allocations: 0.9555 MB / 0.5914 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007068/0.2095, allocations: 458 kB / 0.5918 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004598/0.21, allocations: 326.8 kB / 0.5921 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004454/0.2104, allocations: 338.3 kB / 0.5925 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.2106, allocations: 92 kB / 0.5926 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.2108, allocations: 88 kB / 0.5926 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.2109, allocations: 175.5 kB / 0.5928 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003868/0.2113, allocations: 402 kB / 0.5932 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009527/0.2123, allocations: 1.028 MB / 0.5942 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2123, allocations: 7.938 kB / 0.5942 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2123, allocations: 0 / 0.5942 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.21e-05/0.2123, allocations: 0 / 0.5942 GB, free: 10.45 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.002109/0.2144, allocations: 1.081 MB / 0.5953 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.2145, allocations: 8.031 kB / 0.5953 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.2146, allocations: 102.6 kB / 0.5954 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.2148, allocations: 83.98 kB / 0.5954 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008254/0.2156, allocations: 0.5495 MB / 0.596 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.333e-05/0.2157, allocations: 45.69 kB / 0.596 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.562e-05/0.2158, allocations: 64.27 kB / 0.5961 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.2168, allocations: 0.6115 MB / 0.5967 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.2169, allocations: 0 / 0.5967 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.03e-05/0.2169, allocations: 28 kB / 0.5967 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.2169, allocations: 12 kB / 0.5967 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009714/0.2179, allocations: 461 kB / 0.5972 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.2207, allocations: 2.012 MB / 0.5991 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008977/0.2217, allocations: 446.2 kB / 0.5996 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004475/0.2221, allocations: 239.4 kB / 0.5998 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.2222, allocations: 8.438 kB / 0.5998 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005655/0.2227, allocations: 257.3 kB / 0.6 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 1.924e-06/0.2227, allocations: 0 / 0.6 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001265/0.224, allocations: 0.5843 MB / 0.6006 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.2241, allocations: 59.84 kB / 0.6007 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004796/0.2246, allocations: 446 kB / 0.6011 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.2246, allocations: 37.7 kB / 0.6011 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000226/0.2248, allocations: 328.3 kB / 0.6014 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.225, allocations: 161.7 kB / 0.6016 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.2251, allocations: 94.23 kB / 0.6017 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2253, allocations: 362.8 kB / 0.602 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003908/0.2257, allocations: 169 kB / 0.6022 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004298/0.2261, allocations: 253.8 kB / 0.6024 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007978/0.2269, allocations: 452 kB / 0.6029 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2269, allocations: 3.938 kB / 0.6029 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001021/0.228, allocations: 0.5701 MB / 0.6034 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.228, allocations: 33.7 kB / 0.6035 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.228, allocations: 0 / 0.6035 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.228, allocations: 4 kB / 0.6035 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.2285, allocations: 120.1 kB / 0.6036 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.2285, allocations: 4 kB / 0.6036 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.2289, allocations: 59.5 kB / 0.6036 GB, free: 452 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.83e-05/0.2289, allocations: 20 kB / 0.6037 GB, free: 432 kB / 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.0002412/0.2292, allocations: 211.6 kB / 0.6039 GB, free: 212 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.338e-05/0.2292, allocations: 59.28 kB / 0.6039 GB, free: 152 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.2294, allocations: 65.58 kB / 0.604 GB, free: 88 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2294, allocations: 8 kB / 0.604 GB, free: 80 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.2294, allocations: 4 kB / 0.604 GB, free: 76 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.2294, allocations: 3.984 kB / 0.604 GB, free: 72 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3073/0.5367, allocations: 1.168 MB / 0.6051 GB, free: 52.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.5367, allocations: 0 / 0.6051 GB, free: 52.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004593/0.5372, allocations: 98.95 kB / 0.6052 GB, free: 52.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.5372, allocations: 3.031 kB / 0.6052 GB, free: 52.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.5372, allocations: 13.5 kB / 0.6052 GB, free: 52.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.5372, allocations: 0 / 0.6052 GB, free: 52.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5372, allocations: 0 / 0.6052 GB, free: 52.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.5384, allocations: 0.7584 MB / 0.606 GB, free: 51.93 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.5385, allocations: 167.4 kB / 0.6061 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.297e-05/0.5386, allocations: 10.03 kB / 0.6061 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000279/0.5389, allocations: 25.19 kB / 0.6062 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.974e-05/0.539, allocations: 37.92 kB / 0.6062 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.539, allocations: 14.59 kB / 0.6062 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002941/0.5393, allocations: 313.3 kB / 0.6065 GB, free: 51.75 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5393, allocations: 0 / 0.6065 GB, free: 51.75 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004414/0.5398, allocations: 139.6 kB / 0.6067 GB, free: 51.75 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.0013/0.5411, allocations: 1.321 MB / 0.6079 GB, free: 50.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009659/0.542, allocations: 0.4997 MB / 0.6084 GB, free: 50.63 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.5421, allocations: 0 / 0.6084 GB, free: 50.63 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.5424, allocations: 210.2 kB / 0.6086 GB, free: 50.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007105/0.5432, allocations: 152.3 kB / 0.6088 GB, free: 50.53 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00617/0.5493, allocations: 4.893 MB / 0.6136 GB, free: 47.69 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.5497, allocations: 0.8885 MB / 0.6144 GB, free: 46.98 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002713/0.5499, allocations: 64.86 kB / 0.6145 GB, free: 46.97 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/0.5502, allocations: 216.3 kB / 0.6147 GB, free: 46.8 MB / 0.4981 GB Notification: Performance of SimCode: time 4.8e-07/0.5502, allocations: 4 kB / 0.6147 GB, free: 46.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.5825, allocations: 11.1 MB / 0.6255 GB, free: 45.88 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.675/8.258, allocations: 13.17 kB / 0.6256 GB, free: 45.87 MB / 0.4981 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)