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.001238/0.001238, allocations: 108 kB / 15.61 MB, free: 148 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.001319/0.001319, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.519/1.519, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.084/1.084, allocations: 135.1 MB / 425.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 68.05 kB / 0.5054 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1973, allocations: 80.92 MB / 0.5845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.006103/0.2034, allocations: 3.703 MB / 0.5881 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003451/0.2069, allocations: 1.325 MB / 0.5894 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009034/0.2078, allocations: 27.88 kB / 0.5894 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005483/0.2085, allocations: 126.6 kB / 0.5895 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001009/0.2095, allocations: 170.5 kB / 0.5897 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.2115, allocations: 0.5764 MB / 0.5902 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001781/0.2133, allocations: 0.9681 MB / 0.5912 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009827/0.2143, allocations: 345.6 kB / 0.5915 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007992/0.2151, allocations: 362.4 kB / 0.5919 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006779/0.2158, allocations: 350.1 kB / 0.5922 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003095/0.2161, allocations: 80 kB / 0.5923 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002134/0.2164, allocations: 76 kB / 0.5923 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002405/0.2166, allocations: 183.3 kB / 0.5925 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005737/0.2172, allocations: 381.7 kB / 0.5929 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0015/0.2187, allocations: 0.8528 MB / 0.5937 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.2187, allocations: 0 / 0.5937 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.705e-06/0.2187, allocations: 4 kB / 0.5937 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.41e-05/0.2188, allocations: 0 / 0.5937 GB, free: 10.95 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003215/0.222, allocations: 1.183 MB / 0.5949 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.2221, allocations: 12.03 kB / 0.5949 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001579/0.2223, allocations: 90.7 kB / 0.595 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002321/0.2225, allocations: 95.81 kB / 0.5951 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.2236, allocations: 0.5948 MB / 0.5956 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.2238, allocations: 100.9 kB / 0.5957 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.003e-05/0.2239, allocations: 52.38 kB / 0.5958 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.225, allocations: 0.6118 MB / 0.5964 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.225, allocations: 0 / 0.5964 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.736e-05/0.2251, allocations: 24 kB / 0.5964 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.2251, allocations: 12 kB / 0.5964 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009987/0.2261, allocations: 423.6 kB / 0.5968 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.2293, allocations: 2.114 MB / 0.5989 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.2307, allocations: 0.4989 MB / 0.5994 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004659/0.2312, allocations: 215.3 kB / 0.5996 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.611e-05/0.2313, allocations: 12 kB / 0.5996 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007506/0.232, allocations: 278.1 kB / 0.5999 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.595e-06/0.2321, allocations: 0 / 0.5999 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001561/0.2336, allocations: 0.6162 MB / 0.6005 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.2337, allocations: 84.86 kB / 0.6005 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008005/0.2345, allocations: 0.6099 MB / 0.6011 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.703e-05/0.2346, allocations: 37.7 kB / 0.6012 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/0.2349, allocations: 356.9 kB / 0.6015 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.2351, allocations: 153.8 kB / 0.6017 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.2352, allocations: 102.1 kB / 0.6018 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.2353, allocations: 322 kB / 0.6021 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004594/0.2358, allocations: 183 kB / 0.6022 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004917/0.2363, allocations: 277.3 kB / 0.6025 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009129/0.2372, allocations: 481.8 kB / 0.603 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-06/0.2373, allocations: 4 kB / 0.603 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00125/0.2385, allocations: 0.5943 MB / 0.6036 GB, free: 476 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.415e-05/0.2386, allocations: 33.7 kB / 0.6036 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/0.2386, allocations: 320 / 0.6036 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.2386, allocations: 15.94 kB / 0.6036 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004779/0.2391, allocations: 103.9 kB / 0.6037 GB, free: 316 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/0.2391, allocations: 7.938 kB / 0.6037 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004375/0.2396, allocations: 63.5 kB / 0.6038 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.2396, allocations: 19.94 kB / 0.6038 GB, free: 224 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.3706/0.6102, allocations: 309.7 kB / 0.6041 GB, free: 52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005258/0.6108, allocations: 265.9 kB / 0.6043 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008056/0.6116, allocations: 452.5 kB / 0.6048 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.999e-06/0.6116, allocations: 2.594 kB / 0.6048 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001108/0.6128, allocations: 0.5802 MB / 0.6053 GB, free: 51.72 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/0.6128, allocations: 34.92 kB / 0.6054 GB, free: 51.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.6128, allocations: 3.141 kB / 0.6054 GB, free: 51.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.644e-06/0.6128, allocations: 5.406 kB / 0.6054 GB, free: 51.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.6133, allocations: 107.7 kB / 0.6055 GB, free: 51.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.6133, allocations: 5.156 kB / 0.6055 GB, free: 51.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/0.6137, allocations: 49.52 kB / 0.6055 GB, free: 51.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.6138, allocations: 19.69 kB / 0.6055 GB, free: 51.69 MB / 0.4981 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.0001932/0.6139, allocations: 220 kB / 0.6058 GB, free: 51.51 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.541e-05/0.6141, allocations: 71.84 kB / 0.6058 GB, free: 51.51 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001841/0.6142, allocations: 80.03 kB / 0.6059 GB, free: 51.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.6143, allocations: 6.156 kB / 0.6059 GB, free: 51.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.6143, allocations: 2.812 kB / 0.6059 GB, free: 51.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.6143, allocations: 0 / 0.6059 GB, free: 51.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005685/0.6148, allocations: 0.6175 MB / 0.6065 GB, free: 51.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.217e-06/0.6149, allocations: 3.938 kB / 0.6065 GB, free: 51.31 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004221/0.6153, allocations: 88.12 kB / 0.6066 GB, free: 51.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.6153, allocations: 2.938 kB / 0.6066 GB, free: 51.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.6153, allocations: 10.69 kB / 0.6066 GB, free: 51.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.6153, allocations: 2.25 kB / 0.6066 GB, free: 51.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.6154, allocations: 0 / 0.6066 GB, free: 51.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.6167, allocations: 0.7327 MB / 0.6073 GB, free: 51.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.6168, allocations: 193.7 kB / 0.6075 GB, free: 51.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.489e-05/0.6169, allocations: 10.97 kB / 0.6075 GB, free: 51.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.6173, allocations: 40.23 kB / 0.6076 GB, free: 51.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.618e-05/0.6174, allocations: 34.06 kB / 0.6076 GB, free: 51.06 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.6175, allocations: 17.16 kB / 0.6076 GB, free: 51.05 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000473/0.6179, allocations: 429 kB / 0.608 GB, free: 50.86 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6179, allocations: 1.531 kB / 0.608 GB, free: 50.86 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005945/0.6185, allocations: 216.1 kB / 0.6082 GB, free: 50.82 MB / 0.4981 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.001494/0.62, allocations: 1.279 MB / 0.6095 GB, free: 49.96 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001539/0.6216, allocations: 0.8044 MB / 0.6103 GB, free: 49.64 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.6216, allocations: 0 / 0.6103 GB, free: 49.64 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004026/0.622, allocations: 212 kB / 0.6105 GB, free: 49.58 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008518/0.6229, allocations: 212.6 kB / 0.6107 GB, free: 49.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006638/0.6295, allocations: 5.619 MB / 0.6162 GB, free: 46.42 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.6299, allocations: 0.9167 MB / 0.6171 GB, free: 45.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004306/0.6303, allocations: 89.81 kB / 0.6171 GB, free: 45.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002977/0.6306, allocations: 262 kB / 0.6174 GB, free: 45.5 MB / 0.4981 GB Notification: Performance of SimCode: time 7.71e-07/0.6306, allocations: 4 kB / 0.6174 GB, free: 45.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03956/0.6702, allocations: 13.84 MB / 0.6309 GB, free: 44.42 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.602, allocations: 1.969 kB / 0.6309 GB, free: 44.42 MB / 0.4981 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)