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.001087/0.001087, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.00123/0.00123, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 223.2 MB / 239.9 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9304/0.9304, allocations: 135.2 MB / 426.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003462, allocations: 11.98 kB / 0.5069 GB, free: 5.148 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1882, allocations: 82.3 MB / 0.5873 GB, free: 3.027 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.004625/0.1929, allocations: 3.123 MB / 0.5903 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002869/0.1958, allocations: 1.2 MB / 0.5915 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000759/0.1966, allocations: 27.81 kB / 0.5915 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.1967, allocations: 47.39 kB / 0.5916 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006151/0.1974, allocations: 187.4 kB / 0.5917 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.1984, allocations: 466.4 kB / 0.5922 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007711/0.1992, allocations: 0.61 MB / 0.5928 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003786/0.1996, allocations: 247.1 kB / 0.593 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003334/0.2, allocations: 302.5 kB / 0.5933 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000281/0.2002, allocations: 262.4 kB / 0.5936 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.621e-05/0.2003, allocations: 20 kB / 0.5936 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.387e-05/0.2004, allocations: 20 kB / 0.5936 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.649e-05/0.2005, allocations: 107.4 kB / 0.5937 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.924e-05/0.2006, allocations: 141.3 kB / 0.5938 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004873/0.2011, allocations: 0.6197 MB / 0.5944 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.2011, allocations: 0 / 0.5944 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2011, allocations: 0 / 0.5944 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.867e-06/0.2011, allocations: 3.938 kB / 0.5944 GB, free: 11.64 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.001717/0.2028, allocations: 1.063 MB / 0.5955 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.2029, allocations: 12.03 kB / 0.5955 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.203, allocations: 90.52 kB / 0.5956 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.2031, allocations: 90.88 kB / 0.5957 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008561/0.204, allocations: 0.5707 MB / 0.5962 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.2041, allocations: 108.4 kB / 0.5963 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.08e-05/0.2042, allocations: 55.91 kB / 0.5964 GB, free: 9.539 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009561/0.2052, allocations: 0.6079 MB / 0.597 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2052, allocations: 4 kB / 0.597 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.918e-05/0.2052, allocations: 24 kB / 0.597 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.2052, allocations: 12 kB / 0.597 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008868/0.2061, allocations: 443.6 kB / 0.5974 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002491/0.2086, allocations: 2.133 MB / 0.5995 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.2098, allocations: 0.5349 MB / 0.6 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.523e-05/0.2099, allocations: 4 kB / 0.6 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006326/0.2105, allocations: 290.1 kB / 0.6003 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 1.844e-06/0.2105, allocations: 0 / 0.6003 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001353/0.2119, allocations: 0.6346 MB / 0.6009 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.212, allocations: 88.86 kB / 0.601 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006157/0.2126, allocations: 0.6098 MB / 0.6016 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.883e-05/0.2126, allocations: 37.7 kB / 0.6017 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.2129, allocations: 348.8 kB / 0.602 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.213, allocations: 165.6 kB / 0.6021 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/0.213, allocations: 8 kB / 0.6021 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.2132, allocations: 333.9 kB / 0.6025 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004074/0.2136, allocations: 181 kB / 0.6026 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004678/0.2141, allocations: 288.2 kB / 0.6029 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004843/0.2145, allocations: 234.5 kB / 0.6031 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.2146, allocations: 0 / 0.6031 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001086/0.2157, allocations: 0.6099 MB / 0.6037 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003848/0.2161, allocations: 0.9978 MB / 0.6047 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.2161, allocations: 0 / 0.6047 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.2161, allocations: 11.94 kB / 0.6047 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004463/0.2165, allocations: 107.9 kB / 0.6048 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.2166, allocations: 7.938 kB / 0.6048 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003628/0.2169, allocations: 71.5 kB / 0.6049 GB, free: 488 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.217, allocations: 16 kB / 0.6049 GB, free: 472 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.133e-06/0.217, allocations: 5.094 kB / 0.6049 GB, free: 468 kB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2937/0.5107, allocations: 0.5028 MB / 0.6054 GB, free: 48.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.5108, allocations: 3.938 kB / 0.6054 GB, free: 48.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.5108, allocations: 4.188 kB / 0.6054 GB, free: 48.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.5114, allocations: 105.2 kB / 0.6055 GB, free: 48.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.5114, allocations: 11.03 kB / 0.6055 GB, free: 48.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/0.5119, allocations: 58.14 kB / 0.6056 GB, free: 48.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.5119, allocations: 19 kB / 0.6056 GB, free: 48.41 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003213/0.5123, allocations: 272.2 kB / 0.6059 GB, free: 48.22 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.394e-05/0.5124, allocations: 76.72 kB / 0.6059 GB, free: 48.22 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.5125, allocations: 84.59 kB / 0.606 GB, free: 48.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.5125, allocations: 7.047 kB / 0.606 GB, free: 48.21 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5125, allocations: 0 / 0.606 GB, free: 48.21 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.5125, allocations: 1.828 kB / 0.606 GB, free: 48.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005425/0.5131, allocations: 0.6227 MB / 0.6066 GB, free: 48.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.5131, allocations: 0 / 0.6066 GB, free: 48.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004078/0.5135, allocations: 90.36 kB / 0.6067 GB, free: 48.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.5135, allocations: 0 / 0.6067 GB, free: 48.02 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.5135, allocations: 10 kB / 0.6067 GB, free: 48.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.5136, allocations: 3.875 kB / 0.6067 GB, free: 48.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.5136, allocations: 0 / 0.6067 GB, free: 48.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.5148, allocations: 0.7493 MB / 0.6075 GB, free: 47.96 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.515, allocations: 195.4 kB / 0.6076 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.863e-05/0.5151, allocations: 11.5 kB / 0.6077 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003655/0.5155, allocations: 44.2 kB / 0.6077 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.134e-05/0.5156, allocations: 36.78 kB / 0.6077 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.425e-05/0.5156, allocations: 21.25 kB / 0.6078 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003774/0.516, allocations: 424.3 kB / 0.6082 GB, free: 47.75 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.516, allocations: 0 / 0.6082 GB, free: 47.75 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005362/0.5165, allocations: 210 kB / 0.6084 GB, free: 47.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001417/0.5179, allocations: 1.308 MB / 0.6096 GB, free: 47.09 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001345/0.5193, allocations: 0.8028 MB / 0.6104 GB, free: 46.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5193, allocations: 1.422 kB / 0.6104 GB, free: 46.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004191/0.5197, allocations: 229.1 kB / 0.6106 GB, free: 46.96 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007355/0.5205, allocations: 185.5 kB / 0.6108 GB, free: 46.95 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.5227, allocations: 3.29 MB / 0.614 GB, free: 44.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.523, allocations: 0.9323 MB / 0.6149 GB, free: 43.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003224/0.5233, allocations: 85.11 kB / 0.615 GB, free: 43.72 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00026/0.5236, allocations: 259.8 kB / 0.6153 GB, free: 43.72 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.5236, allocations: 0 / 0.6153 GB, free: 43.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.135/3.659, allocations: 12.81 MB / 0.6278 GB, free: 42.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/3.659, allocations: 162.3 kB / 0.6279 GB, free: 42.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.604/7.263, allocations: 0 / 0.6279 GB, free: 42.67 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1) Environment - environmentSimulation: