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.009926/0.009926, allocations: 96.23 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.001987/0.001987, allocations: 195.1 kB / 16.67 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.517/1.517, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.093/1.093, allocations: 135.1 MB / 425.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001578, allocations: 63.91 kB / 0.5851 GB, free: 3.883 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.566/0.5676, allocations: 80.91 MB / 0.6641 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005258/0.5729, allocations: 4.105 MB / 0.6681 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002986/0.5759, allocations: 1.316 MB / 0.6694 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006439/0.5766, allocations: 25.84 kB / 0.6694 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003803/0.577, allocations: 128.1 kB / 0.6696 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004264/0.5774, allocations: 189.1 kB / 0.6697 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009613/0.5784, allocations: 415.5 kB / 0.6701 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001036/0.5794, allocations: 0.9596 MB / 0.6711 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007765/0.5802, allocations: 457.1 kB / 0.6715 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004115/0.5806, allocations: 336.8 kB / 0.6718 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003578/0.581, allocations: 332.1 kB / 0.6721 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001675/0.5812, allocations: 90.47 kB / 0.6722 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.5813, allocations: 94.53 kB / 0.6723 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.5815, allocations: 175.8 kB / 0.6725 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003197/0.5818, allocations: 392.8 kB / 0.6729 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.583, allocations: 1.076 MB / 0.6739 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.583, allocations: 0 / 0.6739 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.576e-06/0.583, allocations: 1.188 kB / 0.6739 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.892e-05/0.583, allocations: 3.938 kB / 0.6739 GB, free: 15.64 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.002226/0.5853, allocations: 1.1 MB / 0.675 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.5853, allocations: 10.03 kB / 0.675 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001387/0.5855, allocations: 101.5 kB / 0.6751 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.5857, allocations: 86.48 kB / 0.6752 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.5868, allocations: 0.5707 MB / 0.6757 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.755e-05/0.5869, allocations: 53.55 kB / 0.6758 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.587, allocations: 58.38 kB / 0.6759 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.5882, allocations: 0.6064 MB / 0.6764 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.5883, allocations: 5.406 kB / 0.6764 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.802e-05/0.5883, allocations: 21.81 kB / 0.6765 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.5884, allocations: 17.69 kB / 0.6765 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.5894, allocations: 461 kB / 0.6769 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003229/0.5927, allocations: 1.993 MB / 0.6789 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.5937, allocations: 446.5 kB / 0.6793 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005044/0.5942, allocations: 249.9 kB / 0.6795 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.205e-05/0.5943, allocations: 5.281 kB / 0.6795 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005996/0.5949, allocations: 269.6 kB / 0.6798 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.926e-06/0.5949, allocations: 0 / 0.6798 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001483/0.5964, allocations: 0.5838 MB / 0.6804 GB, free: 11 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.5965, allocations: 58.31 kB / 0.6804 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000602/0.5971, allocations: 443.5 kB / 0.6808 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.5971, allocations: 36.08 kB / 0.6809 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.5974, allocations: 329.4 kB / 0.6812 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.5976, allocations: 174.7 kB / 0.6814 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.5978, allocations: 102.2 kB / 0.6815 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.5979, allocations: 368 kB / 0.6818 GB, free: 9.758 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000415/0.5984, allocations: 160 kB / 0.682 GB, free: 9.684 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004903/0.5989, allocations: 253.6 kB / 0.6822 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008889/0.5998, allocations: 452.3 kB / 0.6826 GB, free: 9.219 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.5998, allocations: 0 / 0.6826 GB, free: 9.219 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001187/0.601, allocations: 0.5709 MB / 0.6832 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.168e-05/0.601, allocations: 31.77 kB / 0.6832 GB, free: 8.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.601, allocations: 6.812 kB / 0.6832 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.6011, allocations: 4.75 kB / 0.6832 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005403/0.6016, allocations: 114 kB / 0.6833 GB, free: 8.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.6016, allocations: 3.5 kB / 0.6833 GB, free: 8.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.602, allocations: 62.86 kB / 0.6834 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/0.6021, allocations: 17.38 kB / 0.6834 GB, free: 8.793 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.0003001/0.6024, allocations: 208.7 kB / 0.6836 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.891e-05/0.6025, allocations: 62.44 kB / 0.6837 GB, free: 8.582 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001425/0.6026, allocations: 69.31 kB / 0.6837 GB, free: 8.527 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.6026, allocations: 4.719 kB / 0.6838 GB, free: 8.527 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.6027, allocations: 5.562 kB / 0.6838 GB, free: 8.523 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.6027, allocations: 3.984 kB / 0.6838 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/0.6046, allocations: 1.175 MB / 0.6849 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.6047, allocations: 3.938 kB / 0.6849 GB, free: 7.652 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004787/0.6051, allocations: 92.08 kB / 0.685 GB, free: 7.633 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.597e-05/0.6052, allocations: 1.812 kB / 0.685 GB, free: 7.633 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.46e-05/0.6052, allocations: 18.77 kB / 0.685 GB, free: 7.617 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.6052, allocations: 1.812 kB / 0.685 GB, free: 7.617 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.6052, allocations: 1.281 kB / 0.685 GB, free: 7.617 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.6067, allocations: 0.7703 MB / 0.6858 GB, free: 7.152 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000209/0.6069, allocations: 168.3 kB / 0.6859 GB, free: 6.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.785e-05/0.607, allocations: 10.62 kB / 0.6859 GB, free: 6.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002955/0.6073, allocations: 26.41 kB / 0.686 GB, free: 6.965 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.741e-05/0.6074, allocations: 32.27 kB / 0.686 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.6074, allocations: 13.47 kB / 0.686 GB, free: 6.945 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004252/0.6079, allocations: 312 kB / 0.6863 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6079, allocations: 0 / 0.6863 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000572/0.6084, allocations: 145.4 kB / 0.6865 GB, free: 6.711 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.001799/0.6103, allocations: 1.325 MB / 0.6877 GB, free: 5.703 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001069/0.6113, allocations: 479.7 kB / 0.6882 GB, free: 5.453 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6113, allocations: 0 / 0.6882 GB, free: 5.453 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004709/0.6118, allocations: 215.5 kB / 0.6884 GB, free: 5.363 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008068/0.6126, allocations: 150.4 kB / 0.6886 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008196/0.6208, allocations: 4.795 MB / 0.6932 GB, free: 2.051 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006791/0.6216, allocations: 0.8895 MB / 0.6941 GB, free: 1.27 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003815/0.622, allocations: 68.36 kB / 0.6942 GB, free: 1.23 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003209/0.6223, allocations: 217.9 kB / 0.6944 GB, free: 1.047 MB / 0.5137 GB Notification: Performance of SimCode: time 1.022e-06/0.6223, allocations: 0 / 0.6944 GB, free: 1.047 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03593/0.6582, allocations: 11.31 MB / 0.7054 GB, free: 6.785 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.747/9.406, allocations: 22.14 kB / 0.7054 GB, free: 6.766 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)