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.0009197/0.0009197, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005967/0.005967, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.31/1.31, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9188/0.9188, allocations: 135.3 MB / 426.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003931/0.0003931, allocations: 8 kB / 0.5077 GB, free: 4.672 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.1734, allocations: 82.32 MB / 0.5881 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.003736/0.1772, allocations: 3.299 MB / 0.5913 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00227/0.1795, allocations: 1.282 MB / 0.5925 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003132/0.1798, allocations: 23.88 kB / 0.5926 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002555/0.1801, allocations: 91.11 kB / 0.5927 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004599/0.1806, allocations: 142.5 kB / 0.5928 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.1816, allocations: 0.5331 MB / 0.5933 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008092/0.1824, allocations: 0.8979 MB / 0.5942 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004998/0.183, allocations: 333.6 kB / 0.5945 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003074/0.1833, allocations: 282.3 kB / 0.5948 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002993/0.1836, allocations: 278.1 kB / 0.595 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.331e-05/0.1837, allocations: 20 kB / 0.5951 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.769e-05/0.1837, allocations: 20 kB / 0.5951 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.1838, allocations: 111.3 kB / 0.5952 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002501/0.1841, allocations: 331.4 kB / 0.5955 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006241/0.1847, allocations: 0.7784 MB / 0.5963 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1847, allocations: 4 kB / 0.5963 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.194e-06/0.1847, allocations: 0 / 0.5963 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.016e-06/0.1848, allocations: 0 / 0.5963 GB, free: 10.08 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.001782/0.1865, allocations: 1.053 MB / 0.5973 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1866, allocations: 12.03 kB / 0.5973 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.1867, allocations: 98.69 kB / 0.5974 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.1868, allocations: 99.81 kB / 0.5975 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000847/0.1877, allocations: 0.5909 MB / 0.5981 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.1878, allocations: 101 kB / 0.5982 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.927e-05/0.1879, allocations: 60.36 kB / 0.5982 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.189, allocations: 0.6118 MB / 0.5988 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.189, allocations: 0 / 0.5988 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.313e-05/0.1891, allocations: 23.94 kB / 0.5988 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.1891, allocations: 12 kB / 0.5989 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009411/0.1901, allocations: 447.6 kB / 0.5993 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002595/0.1927, allocations: 2.129 MB / 0.6014 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.1939, allocations: 0.528 MB / 0.6019 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000464/0.1944, allocations: 234.8 kB / 0.6021 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.716e-05/0.1944, allocations: 11.94 kB / 0.6021 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006712/0.1951, allocations: 286.2 kB / 0.6024 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.014e-06/0.1951, allocations: 0 / 0.6024 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001437/0.1966, allocations: 0.6436 MB / 0.603 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.1966, allocations: 84.86 kB / 0.6031 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006775/0.1973, allocations: 0.6138 MB / 0.6037 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.753e-05/0.1974, allocations: 37.7 kB / 0.6037 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.1976, allocations: 352.9 kB / 0.6041 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.1978, allocations: 161.7 kB / 0.6042 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.837e-05/0.1978, allocations: 49.69 kB / 0.6043 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1979, allocations: 326 kB / 0.6046 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00044/0.1984, allocations: 189 kB / 0.6048 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004873/0.1989, allocations: 288 kB / 0.605 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009126/0.1998, allocations: 0.494 MB / 0.6055 GB, free: 220 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1998, allocations: 0 / 0.6055 GB, free: 220 kB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.2983/0.4981, allocations: 0.6077 MB / 0.6061 GB, free: 48.19 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.4983, allocations: 190.2 kB / 0.6063 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.4983, allocations: 3.031 kB / 0.6063 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/0.4983, allocations: 6.281 kB / 0.6063 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004579/0.4988, allocations: 110.6 kB / 0.6064 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.4988, allocations: 9.672 kB / 0.6064 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000408/0.4992, allocations: 69.59 kB / 0.6065 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.4993, allocations: 22.59 kB / 0.6065 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.682e-06/0.4993, allocations: 5.906 kB / 0.6065 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008809/0.5002, allocations: 0.5028 MB / 0.607 GB, free: 47.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/0.5002, allocations: 3.031 kB / 0.607 GB, free: 47.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.16e-06/0.5002, allocations: 9.875 kB / 0.607 GB, free: 47.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003932/0.5006, allocations: 104 kB / 0.6071 GB, free: 47.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.5006, allocations: 9.141 kB / 0.6071 GB, free: 47.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.501, allocations: 57.25 kB / 0.6072 GB, free: 47.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.501, allocations: 21.45 kB / 0.6072 GB, free: 47.95 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.0002801/0.5013, allocations: 277.6 kB / 0.6075 GB, free: 47.75 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.041e-05/0.5014, allocations: 76.19 kB / 0.6075 GB, free: 47.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001462/0.5015, allocations: 79.92 kB / 0.6076 GB, free: 47.74 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.5015, allocations: 3.125 kB / 0.6076 GB, free: 47.74 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.5015, allocations: 3.281 kB / 0.6076 GB, free: 47.74 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.5015, allocations: 3.328 kB / 0.6076 GB, free: 47.74 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005465/0.5021, allocations: 0.6204 MB / 0.6082 GB, free: 47.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.5021, allocations: 0 / 0.6082 GB, free: 47.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004263/0.5025, allocations: 88.83 kB / 0.6083 GB, free: 47.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.5026, allocations: 0 / 0.6083 GB, free: 47.55 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.804e-05/0.5026, allocations: 16.98 kB / 0.6083 GB, free: 47.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.5026, allocations: 3.594 kB / 0.6083 GB, free: 47.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.5026, allocations: 3.938 kB / 0.6083 GB, free: 47.54 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.5039, allocations: 0.7523 MB / 0.6091 GB, free: 47.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.5041, allocations: 193 kB / 0.6093 GB, free: 47.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.053e-05/0.5042, allocations: 19.8 kB / 0.6093 GB, free: 47.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004126/0.5046, allocations: 42.45 kB / 0.6093 GB, free: 47.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.61e-05/0.5047, allocations: 34.69 kB / 0.6093 GB, free: 47.33 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.5048, allocations: 18.61 kB / 0.6094 GB, free: 47.33 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004219/0.5052, allocations: 428.5 kB / 0.6098 GB, free: 47.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5052, allocations: 2.531 kB / 0.6098 GB, free: 47.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005372/0.5057, allocations: 209.4 kB / 0.61 GB, free: 47.21 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.001561/0.5073, allocations: 1.321 MB / 0.6113 GB, free: 46.55 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001467/0.5088, allocations: 0.8137 MB / 0.6121 GB, free: 46.39 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5088, allocations: 1.641 kB / 0.6121 GB, free: 46.39 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004148/0.5092, allocations: 222.6 kB / 0.6123 GB, free: 46.38 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008788/0.5101, allocations: 185.4 kB / 0.6124 GB, free: 46.38 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007213/0.5173, allocations: 5.927 MB / 0.6182 GB, free: 43.88 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.5176, allocations: 0.914 MB / 0.6191 GB, free: 43.17 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004159/0.5181, allocations: 97.58 kB / 0.6192 GB, free: 43.16 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002976/0.5184, allocations: 263.4 kB / 0.6195 GB, free: 42.96 MB / 0.4981 GB Notification: Performance of SimCode: time 9.22e-07/0.5184, allocations: 0 / 0.6195 GB, free: 42.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.672/2.19, allocations: 13.17 MB / 0.6323 GB, free: 42.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002296/2.191, allocations: 176.9 kB / 0.6325 GB, free: 41.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.26/4.45, allocations: 2.719 kB / 0.6325 GB, free: 41.89 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/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)