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.001288/0.001287, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001479/0.00148, allocations: 194 kB / 16.14 MB, free: 6.707 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8019/0.8019, allocations: 132.2 MB / 422.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 68.33 kB / 0.5012 GB, free: 9.164 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1786/0.18, allocations: 80.2 MB / 0.5795 GB, free: 9.184 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.005511/0.1855, allocations: 3.719 MB / 0.5831 GB, free: 5.441 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002903/0.1885, allocations: 1.293 MB / 0.5844 GB, free: 4.141 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008107/0.1893, allocations: 27.88 kB / 0.5844 GB, free: 4.113 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005031/0.1899, allocations: 91.11 kB / 0.5845 GB, free: 4.023 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009561/0.1909, allocations: 147 kB / 0.5846 GB, free: 3.879 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.1923, allocations: 0.53 MB / 0.5852 GB, free: 3.363 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.1936, allocations: 0.9018 MB / 0.586 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006512/0.1943, allocations: 329.6 kB / 0.5864 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005934/0.1949, allocations: 326.2 kB / 0.5867 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005742/0.1955, allocations: 334 kB / 0.587 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001587/0.1957, allocations: 36 kB / 0.587 GB, free: 1.441 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.1958, allocations: 36 kB / 0.5871 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.1959, allocations: 143.2 kB / 0.5872 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003103/0.1962, allocations: 341.7 kB / 0.5875 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007044/0.1969, allocations: 0.8059 MB / 0.5883 GB, free: 124 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.197, allocations: 0 / 0.5883 GB, free: 124 kB / 494.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.197, allocations: 0 / 0.5883 GB, free: 124 kB / 494.1 MB Notification: Performance of Transformations before backend: time 2.753e-05/0.197, allocations: 0 / 0.5883 GB, free: 124 kB / 494.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.002192/0.1992, allocations: 1.187 MB / 0.5895 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.1993, allocations: 12.03 kB / 0.5895 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.1994, allocations: 90.7 kB / 0.5896 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.1995, allocations: 95.81 kB / 0.5897 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009097/0.2004, allocations: 0.5948 MB / 0.5902 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.2006, allocations: 96.95 kB / 0.5903 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.79e-05/0.2007, allocations: 52.38 kB / 0.5904 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.2017, allocations: 0.6001 MB / 0.591 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.2018, allocations: 0 / 0.591 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.328e-05/0.2018, allocations: 20 kB / 0.591 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.2018, allocations: 12 kB / 0.591 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009433/0.2028, allocations: 427.6 kB / 0.5914 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002814/0.2056, allocations: 2.118 MB / 0.5935 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.2068, allocations: 0.5058 MB / 0.594 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004734/0.2073, allocations: 216.7 kB / 0.5942 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.369e-05/0.2074, allocations: 7.984 kB / 0.5942 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007428/0.2081, allocations: 291 kB / 0.5945 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 3.697e-06/0.2081, allocations: 0 / 0.5945 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001522/0.2096, allocations: 0.6063 MB / 0.595 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/0.2097, allocations: 88.8 kB / 0.5951 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007661/0.2105, allocations: 0.6099 MB / 0.5957 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.903e-05/0.2106, allocations: 37.7 kB / 0.5958 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/0.2109, allocations: 352.9 kB / 0.5961 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.211, allocations: 153.8 kB / 0.5962 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.2112, allocations: 98.14 kB / 0.5963 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.2113, allocations: 326 kB / 0.5966 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004423/0.2118, allocations: 187 kB / 0.5968 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005012/0.2123, allocations: 276.2 kB / 0.5971 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009336/0.2132, allocations: 481.8 kB / 0.5976 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.2133, allocations: 0 / 0.5976 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00122/0.2145, allocations: 0.5983 MB / 0.5981 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.611e-05/0.2145, allocations: 33.7 kB / 0.5982 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2146, allocations: 0 / 0.5982 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.2146, allocations: 7.938 kB / 0.5982 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004864/0.2151, allocations: 111.8 kB / 0.5983 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.2151, allocations: 4.25 kB / 0.5983 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004101/0.2155, allocations: 63.5 kB / 0.5983 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.111e-05/0.2156, allocations: 20 kB / 0.5984 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005801/0.2162, allocations: 313.8 kB / 0.5987 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004504/0.2166, allocations: 269.1 kB / 0.5989 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008446/0.2175, allocations: 457.9 kB / 0.5994 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.104e-06/0.2175, allocations: 0 / 0.5994 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001072/0.2186, allocations: 0.575 MB / 0.5999 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.2186, allocations: 33.7 kB / 0.6 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.2186, allocations: 0 / 0.6 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.801e-06/0.2186, allocations: 8 kB / 0.6 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004252/0.2191, allocations: 103.8 kB / 0.6001 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.2191, allocations: 7.938 kB / 0.6001 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/0.2195, allocations: 59.56 kB / 0.6001 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.2195, allocations: 16 kB / 0.6001 GB, free: 3.473 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.0002298/0.2197, allocations: 226.3 kB / 0.6004 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.903e-05/0.2199, allocations: 71.06 kB / 0.6004 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.22, allocations: 83.2 kB / 0.6005 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.22, allocations: 4 kB / 0.6005 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.22, allocations: 0 / 0.6005 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.2201, allocations: 3.984 kB / 0.6005 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00077/0.2208, allocations: 0.6219 MB / 0.6011 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2208, allocations: 0 / 0.6011 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004647/0.2213, allocations: 87.89 kB / 0.6012 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2213, allocations: 0 / 0.6012 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.698e-05/0.2214, allocations: 11.98 kB / 0.6012 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.2214, allocations: 4 kB / 0.6012 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2214, allocations: 0 / 0.6012 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.2229, allocations: 0.7363 MB / 0.6019 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/0.2231, allocations: 192.1 kB / 0.6021 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.298e-05/0.2232, allocations: 12 kB / 0.6021 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.2236, allocations: 35.97 kB / 0.6022 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.2237, allocations: 27.95 kB / 0.6022 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-05/0.2238, allocations: 19.98 kB / 0.6022 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005184/0.2243, allocations: 431 kB / 0.6026 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2243, allocations: 0 / 0.6026 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006182/0.2249, allocations: 215.3 kB / 0.6028 GB, free: 0.6289 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.3314/0.5564, allocations: 1.284 MB / 0.6041 GB, free: 55.35 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001474/0.5579, allocations: 0.7829 MB / 0.6048 GB, free: 55.23 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5579, allocations: 1 kB / 0.6048 GB, free: 55.23 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004025/0.5583, allocations: 216.4 kB / 0.605 GB, free: 55.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.5594, allocations: 185.7 kB / 0.6052 GB, free: 55.23 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007221/0.5666, allocations: 5.848 MB / 0.6109 GB, free: 52.16 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.5669, allocations: 0.9167 MB / 0.6118 GB, free: 51.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004556/0.5674, allocations: 93.05 kB / 0.6119 GB, free: 51.45 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002822/0.5676, allocations: 253.4 kB / 0.6122 GB, free: 51.26 MB / 0.4981 GB Notification: Performance of SimCode: time 8.01e-07/0.5677, allocations: 3.062 kB / 0.6122 GB, free: 51.26 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0253/0.593, allocations: 13.33 MB / 0.6252 GB, free: 50.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.5932, allocations: 175.8 kB / 0.6253 GB, free: 50.13 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.619, allocations: 0 / 0.6253 GB, free: 50.13 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_LimPID.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)