Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.LimPID,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_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.001123/0.001123, 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.001115/0.001115, 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.734/0.734, allocations: 132.2 MB / 422.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 59.03 kB / 0.5019 GB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4243/0.4263, allocations: 80.2 MB / 0.5802 GB, free: 4.574 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.004548/0.4309, allocations: 3.7 MB / 0.5838 GB, free: 1.922 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002466/0.4334, allocations: 1.338 MB / 0.5851 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003701/0.4338, allocations: 25.12 kB / 0.5851 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003135/0.4341, allocations: 130.9 kB / 0.5853 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004971/0.4346, allocations: 175.6 kB / 0.5854 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.4357, allocations: 0.574 MB / 0.586 GB, free: 416 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009907/0.4367, allocations: 0.9556 MB / 0.5869 GB, free: 15.92 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005696/0.4373, allocations: 350.9 kB / 0.5872 GB, free: 15.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004481/0.4378, allocations: 369.2 kB / 0.5876 GB, free: 15.53 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004137/0.4382, allocations: 348.3 kB / 0.5879 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.4383, allocations: 77.03 kB / 0.588 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.4385, allocations: 79.09 kB / 0.5881 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.4387, allocations: 177.3 kB / 0.5882 GB, free: 15.21 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000347/0.439, allocations: 387.8 kB / 0.5886 GB, free: 14.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009997/0.44, allocations: 0.8555 MB / 0.5895 GB, free: 14.54 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.44, allocations: 0 / 0.5895 GB, free: 14.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4401, allocations: 0.5312 kB / 0.5895 GB, free: 14.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.4401, allocations: 4 kB / 0.5895 GB, free: 14.53 MB / 446.1 MB 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.00212/0.4422, allocations: 1.184 MB / 0.5906 GB, free: 13.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4422, allocations: 9.125 kB / 0.5906 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.4424, allocations: 91.45 kB / 0.5907 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.4425, allocations: 93.62 kB / 0.5908 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009813/0.4435, allocations: 0.5921 MB / 0.5914 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.4437, allocations: 97.12 kB / 0.5915 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-05/0.4438, allocations: 56.25 kB / 0.5915 GB, free: 13.08 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.4449, allocations: 0.6019 MB / 0.5921 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.4449, allocations: 1.094 kB / 0.5921 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.809e-05/0.445, allocations: 22.48 kB / 0.5921 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.445, allocations: 17.09 kB / 0.5922 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.4461, allocations: 421.5 kB / 0.5926 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003069/0.4491, allocations: 2.117 MB / 0.5946 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.4504, allocations: 0.4986 MB / 0.5951 GB, free: 10.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004766/0.4509, allocations: 218.5 kB / 0.5953 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.4509, allocations: 5.688 kB / 0.5953 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006977/0.4516, allocations: 290.4 kB / 0.5956 GB, free: 10.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=45): time 2.204e-06/0.4516, allocations: 0 / 0.5956 GB, free: 10.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.001466/0.4531, allocations: 0.6051 MB / 0.5962 GB, free: 10.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.4532, allocations: 86.14 kB / 0.5963 GB, free: 10.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007191/0.4539, allocations: 0.6153 MB / 0.5969 GB, free: 9.938 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.115e-05/0.454, allocations: 36.23 kB / 0.5969 GB, free: 9.898 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/0.4542, allocations: 354 kB / 0.5972 GB, free: 9.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.4544, allocations: 160.5 kB / 0.5974 GB, free: 9.449 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.4545, allocations: 99.38 kB / 0.5975 GB, free: 9.383 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.4546, allocations: 326.4 kB / 0.5978 GB, free: 9.062 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004538/0.4551, allocations: 185.7 kB / 0.598 GB, free: 8.965 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004919/0.4556, allocations: 275.9 kB / 0.5982 GB, free: 8.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009223/0.4565, allocations: 482.2 kB / 0.5987 GB, free: 8.453 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4565, allocations: 1.219 kB / 0.5987 GB, free: 8.453 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001187/0.4577, allocations: 0.6006 MB / 0.5993 GB, free: 8.125 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.586e-05/0.4578, allocations: 36.31 kB / 0.5993 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.4578, allocations: 3.812 kB / 0.5993 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.4578, allocations: 5.281 kB / 0.5993 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.4583, allocations: 116.7 kB / 0.5994 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.4583, allocations: 5 kB / 0.5995 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004114/0.4587, allocations: 64.31 kB / 0.5995 GB, free: 8.012 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.4588, allocations: 18.88 kB / 0.5995 GB, free: 8.008 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005495/0.4593, allocations: 309 kB / 0.5998 GB, free: 7.809 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004612/0.4598, allocations: 277.4 kB / 0.6001 GB, free: 7.605 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008365/0.4607, allocations: 448.8 kB / 0.6005 GB, free: 7.305 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.703e-06/0.4607, allocations: 1.5 kB / 0.6005 GB, free: 7.305 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00111/0.4618, allocations: 0.5839 MB / 0.6011 GB, free: 6.984 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.221e-05/0.4619, allocations: 31.83 kB / 0.6011 GB, free: 6.953 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.4619, allocations: 2.531 kB / 0.6011 GB, free: 6.953 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.161e-06/0.4619, allocations: 6.062 kB / 0.6011 GB, free: 6.953 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004238/0.4623, allocations: 104.6 kB / 0.6012 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.4623, allocations: 5.781 kB / 0.6012 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003675/0.4627, allocations: 52.39 kB / 0.6013 GB, free: 6.891 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.4627, allocations: 22.66 kB / 0.6013 GB, free: 6.883 MB / 446.1 MB 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.0002054/0.4629, allocations: 218.2 kB / 0.6015 GB, free: 6.672 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.4631, allocations: 72.53 kB / 0.6016 GB, free: 6.633 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001474/0.4632, allocations: 79.31 kB / 0.6017 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.4632, allocations: 4.406 kB / 0.6017 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.4632, allocations: 0 / 0.6017 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.4632, allocations: 5.109 kB / 0.6017 GB, free: 6.566 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000691/0.4639, allocations: 0.6132 MB / 0.6023 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.464, allocations: 5.156 kB / 0.6023 GB, free: 6.062 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004437/0.4644, allocations: 85.91 kB / 0.6024 GB, free: 6.039 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.177e-06/0.4644, allocations: 1.656 kB / 0.6024 GB, free: 6.039 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.4645, allocations: 10.28 kB / 0.6024 GB, free: 6.031 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.4645, allocations: 2.281 kB / 0.6024 GB, free: 6.031 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4645, allocations: 0 / 0.6024 GB, free: 6.031 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.466, allocations: 0.7426 MB / 0.6031 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002212/0.4662, allocations: 184.9 kB / 0.6033 GB, free: 5.434 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.587e-05/0.4663, allocations: 7.406 kB / 0.6033 GB, free: 5.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.4667, allocations: 40.77 kB / 0.6033 GB, free: 5.406 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.884e-05/0.4668, allocations: 31.86 kB / 0.6033 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/0.4668, allocations: 17.39 kB / 0.6034 GB, free: 5.383 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000494/0.4673, allocations: 424.8 kB / 0.6038 GB, free: 5.145 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4674, allocations: 1.094 kB / 0.6038 GB, free: 5.145 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006245/0.468, allocations: 222.9 kB / 0.604 GB, free: 5.082 MB / 446.1 MB 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.001817/0.4698, allocations: 1.283 MB / 0.6052 GB, free: 4.129 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.4715, allocations: 0.8076 MB / 0.606 GB, free: 3.691 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.4715, allocations: 0 / 0.606 GB, free: 3.691 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004697/0.472, allocations: 224 kB / 0.6062 GB, free: 3.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009079/0.4729, allocations: 203.7 kB / 0.6064 GB, free: 3.488 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008017/0.481, allocations: 5.618 MB / 0.6119 GB, free: 15.85 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005217/0.4815, allocations: 0.9165 MB / 0.6128 GB, free: 15.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004575/0.482, allocations: 89.58 kB / 0.6129 GB, free: 15.01 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000345/0.4823, allocations: 258 kB / 0.6131 GB, free: 14.8 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4823, allocations: 0 / 0.6131 GB, free: 14.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/0.519, allocations: 13.83 MB / 0.6266 GB, free: 1.309 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.531/8.05, allocations: 2.844 kB / 0.6266 GB, free: 1.309 MB / 462.1 MB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_Continuous_Examples_LimPID.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)