Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.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.LimPID,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID",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.001415/0.001414, allocations: 112.5 kB / 15.73 MB, free: 76 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.001413/0.001413, allocations: 192.2 kB / 16.67 MB, free: 6.582 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.592/1.592, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.112/1.112, allocations: 135.6 MB / 426.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002024, allocations: 59.91 kB / 0.5857 GB, free: 3.25 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5613/0.5633, allocations: 81.03 MB / 0.6648 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.004736/0.5681, allocations: 3.706 MB / 0.6685 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002425/0.5705, allocations: 1.319 MB / 0.6697 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003747/0.5709, allocations: 29.22 kB / 0.6698 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003055/0.5713, allocations: 126.6 kB / 0.6699 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004873/0.5718, allocations: 172.8 kB / 0.6701 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.5729, allocations: 0.5753 MB / 0.6706 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001028/0.5739, allocations: 0.9622 MB / 0.6716 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005418/0.5745, allocations: 358 kB / 0.6719 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003927/0.5749, allocations: 362.8 kB / 0.6722 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003505/0.5752, allocations: 347.9 kB / 0.6726 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.5754, allocations: 77.94 kB / 0.6727 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.5755, allocations: 78.81 kB / 0.6727 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.5757, allocations: 186 kB / 0.6729 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002866/0.576, allocations: 379.3 kB / 0.6733 GB, free: 308 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.5771, allocations: 0.9053 MB / 0.6741 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.5771, allocations: 0 / 0.6741 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5771, allocations: 0 / 0.6741 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.644e-05/0.5771, allocations: 0 / 0.6741 GB, free: 15.59 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002338/0.5795, allocations: 1.204 MB / 0.6753 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.5795, allocations: 9.5 kB / 0.6753 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001227/0.5797, allocations: 96.08 kB / 0.6754 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.5798, allocations: 100.8 kB / 0.6755 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.5811, allocations: 0.6198 MB / 0.6761 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.5812, allocations: 98.2 kB / 0.6762 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.916e-05/0.5813, allocations: 51.88 kB / 0.6763 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.5826, allocations: 0.6078 MB / 0.6769 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.5826, allocations: 0 / 0.6769 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-05/0.5827, allocations: 22.22 kB / 0.6769 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.319e-05/0.5827, allocations: 12.19 kB / 0.6769 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.584, allocations: 423.7 kB / 0.6773 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004117/0.5881, allocations: 2.108 MB / 0.6794 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.5899, allocations: 0.4998 MB / 0.6798 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006494/0.5905, allocations: 220.7 kB / 0.6801 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 5.584e-05/0.5906, allocations: 4.625 kB / 0.6801 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009088/0.5915, allocations: 284.7 kB / 0.6803 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=45): time 2.465e-06/0.5915, allocations: 0 / 0.6803 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of matching and sorting (n=45): time 0.002116/0.5936, allocations: 0.615 MB / 0.6809 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.5938, allocations: 85.58 kB / 0.681 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.595, allocations: 0.6151 MB / 0.6816 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.464e-05/0.5951, allocations: 37.2 kB / 0.6817 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004612/0.5955, allocations: 358.2 kB / 0.682 GB, free: 9.793 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.5958, allocations: 157.2 kB / 0.6821 GB, free: 9.656 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.596, allocations: 99.69 kB / 0.6822 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002494/0.5963, allocations: 326.2 kB / 0.6825 GB, free: 9.266 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/0.5969, allocations: 189.2 kB / 0.6827 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007045/0.5976, allocations: 280.5 kB / 0.683 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.5988, allocations: 478.8 kB / 0.6835 GB, free: 8.648 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.5988, allocations: 0 / 0.6835 GB, free: 8.648 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001724/0.6006, allocations: 0.6012 MB / 0.684 GB, free: 8.324 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.528e-05/0.6007, allocations: 32.92 kB / 0.6841 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.6007, allocations: 2.812 kB / 0.6841 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.684e-05/0.6007, allocations: 5.312 kB / 0.6841 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005939/0.6013, allocations: 112.6 kB / 0.6842 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.015e-05/0.6014, allocations: 5.656 kB / 0.6842 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005028/0.6019, allocations: 73.56 kB / 0.6843 GB, free: 8.211 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.657e-05/0.602, allocations: 18.56 kB / 0.6843 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007368/0.6027, allocations: 310.6 kB / 0.6846 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005819/0.6033, allocations: 265.5 kB / 0.6848 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001011/0.6043, allocations: 461.7 kB / 0.6853 GB, free: 7.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.456e-06/0.6043, allocations: 5.156 kB / 0.6853 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001327/0.6057, allocations: 0.5761 MB / 0.6858 GB, free: 7.18 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/0.6057, allocations: 31.98 kB / 0.6859 GB, free: 7.148 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.6057, allocations: 7.438 kB / 0.6859 GB, free: 7.145 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.6057, allocations: 8.469 kB / 0.6859 GB, free: 7.141 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000465/0.6062, allocations: 105.7 kB / 0.686 GB, free: 7.113 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.6062, allocations: 9.469 kB / 0.686 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003931/0.6066, allocations: 52.8 kB / 0.686 GB, free: 7.074 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.187e-05/0.6067, allocations: 18.12 kB / 0.6861 GB, free: 7.07 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0002763/0.607, allocations: 213.5 kB / 0.6863 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.6071, allocations: 73.38 kB / 0.6863 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002281/0.6073, allocations: 82.8 kB / 0.6864 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.6074, allocations: 4.25 kB / 0.6864 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.6074, allocations: 1 kB / 0.6864 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.6074, allocations: 3.938 kB / 0.6864 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008756/0.6083, allocations: 0.6296 MB / 0.687 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.6083, allocations: 1.375 kB / 0.687 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004758/0.6088, allocations: 89.33 kB / 0.6871 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.6088, allocations: 1.531 kB / 0.6871 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.639e-05/0.6088, allocations: 10.58 kB / 0.6871 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.6088, allocations: 2.688 kB / 0.6871 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.6088, allocations: 0 / 0.6871 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/0.6105, allocations: 0.7303 MB / 0.6879 GB, free: 5.797 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/0.6108, allocations: 196.3 kB / 0.688 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.778e-05/0.6108, allocations: 11.12 kB / 0.688 GB, free: 5.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003912/0.6112, allocations: 29.59 kB / 0.6881 GB, free: 5.59 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.6114, allocations: 35.2 kB / 0.6881 GB, free: 5.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.6114, allocations: 17.61 kB / 0.6881 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006144/0.612, allocations: 434 kB / 0.6885 GB, free: 5.316 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.612, allocations: 3.938 kB / 0.6885 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007151/0.6128, allocations: 219 kB / 0.6888 GB, free: 5.254 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.002028/0.6148, allocations: 1.286 MB / 0.69 GB, free: 4.309 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001805/0.6166, allocations: 0.7847 MB / 0.6908 GB, free: 3.883 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.6166, allocations: 4.125 kB / 0.6908 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005063/0.6171, allocations: 216.6 kB / 0.691 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009846/0.6181, allocations: 208.6 kB / 0.6912 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009136/0.6273, allocations: 5.38 MB / 0.6964 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005867/0.6279, allocations: 0.9216 MB / 0.6973 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005121/0.6284, allocations: 97.11 kB / 0.6974 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003856/0.6288, allocations: 251.4 kB / 0.6977 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/0.6288, allocations: 0 / 0.6977 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07586/0.7047, allocations: 14.05 MB / 0.7114 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.51/10.21, allocations: 8 kB / 0.7114 GB, free: 0.543 MB / 0.5294 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)