Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.001084/0.001084, allocations: 100.1 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.0008977/0.0008977, allocations: 177.3 kB / 15.95 MB, free: 216 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.291/1.291, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9921/0.9921, allocations: 143.3 MB / 434.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003441, allocations: 12 kB / 0.5159 GB, free: 11.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1854, allocations: 83.41 MB / 0.5974 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID): time 0.00346/0.1889, allocations: 3.125 MB / 0.6004 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001959/0.1908, allocations: 1.193 MB / 0.6016 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002817/0.1911, allocations: 31.81 kB / 0.6016 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 8.926e-05/0.1912, allocations: 51.38 kB / 0.6016 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005148/0.1918, allocations: 191.4 kB / 0.6018 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009715/0.1927, allocations: 461.6 kB / 0.6023 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007739/0.1935, allocations: 0.6061 MB / 0.6029 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003783/0.1939, allocations: 259.1 kB / 0.6031 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003488/0.1943, allocations: 290.6 kB / 0.6034 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.1946, allocations: 258.4 kB / 0.6036 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.98e-05/0.1946, allocations: 20 kB / 0.6037 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.332e-05/0.1947, allocations: 24 kB / 0.6037 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.661e-05/0.1948, allocations: 103.4 kB / 0.6038 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.1949, allocations: 145.2 kB / 0.6039 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005042/0.1954, allocations: 0.6392 MB / 0.6045 GB, free: 392 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.1954, allocations: 4 kB / 0.6045 GB, free: 388 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.312e-06/0.1954, allocations: 0 / 0.6045 GB, free: 388 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.1955, allocations: 0 / 0.6045 GB, free: 388 kB / 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.2916/0.487, allocations: 1.067 MB / 0.6056 GB, free: 40.62 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.4871, allocations: 10.62 kB / 0.6056 GB, free: 40.62 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.4872, allocations: 90.09 kB / 0.6057 GB, free: 40.59 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.4873, allocations: 92.78 kB / 0.6058 GB, free: 40.54 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007903/0.4881, allocations: 0.5733 MB / 0.6063 GB, free: 40.26 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.381e-05/0.4882, allocations: 95.19 kB / 0.6064 GB, free: 40.2 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.4883, allocations: 59.86 kB / 0.6065 GB, free: 40.2 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000877/0.4892, allocations: 0.6033 MB / 0.6071 GB, free: 40.07 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.4892, allocations: 0 / 0.6071 GB, free: 40.07 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.4892, allocations: 19.84 kB / 0.6071 GB, free: 40.07 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.4893, allocations: 17.19 kB / 0.6071 GB, free: 40.07 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000826/0.4901, allocations: 447.2 kB / 0.6075 GB, free: 40.06 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/0.4922, allocations: 2.13 MB / 0.6096 GB, free: 39.02 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.4933, allocations: 0.5296 MB / 0.6101 GB, free: 38.97 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.4934, allocations: 6.156 kB / 0.6101 GB, free: 38.97 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005432/0.4939, allocations: 292.2 kB / 0.6104 GB, free: 38.92 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 1.844e-06/0.4939, allocations: 0 / 0.6104 GB, free: 38.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001269/0.4952, allocations: 0.6413 MB / 0.611 GB, free: 38.82 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.4953, allocations: 89.64 kB / 0.6111 GB, free: 38.73 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005208/0.4958, allocations: 0.6048 MB / 0.6117 GB, free: 38.6 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.4958, allocations: 37.23 kB / 0.6117 GB, free: 38.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.496, allocations: 357.6 kB / 0.6121 GB, free: 38.42 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.056e-05/0.4961, allocations: 152.9 kB / 0.6122 GB, free: 38.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.4961, allocations: 12.69 kB / 0.6122 GB, free: 38.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.911e-05/0.4962, allocations: 325.1 kB / 0.6126 GB, free: 38.02 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.4966, allocations: 182.8 kB / 0.6127 GB, free: 38.02 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004447/0.4971, allocations: 282.9 kB / 0.613 GB, free: 37.92 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004567/0.4975, allocations: 239.5 kB / 0.6132 GB, free: 37.87 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4975, allocations: 0.75 kB / 0.6132 GB, free: 37.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001005/0.4985, allocations: 0.6151 MB / 0.6138 GB, free: 37.74 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.4987, allocations: 0.9903 MB / 0.6148 GB, free: 36.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.4987, allocations: 2.906 kB / 0.6148 GB, free: 36.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.4987, allocations: 9.703 kB / 0.6148 GB, free: 36.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004562/0.4992, allocations: 115.2 kB / 0.6149 GB, free: 36.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.4992, allocations: 6.781 kB / 0.6149 GB, free: 36.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.4996, allocations: 74.94 kB / 0.615 GB, free: 36.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-05/0.4996, allocations: 19.06 kB / 0.615 GB, free: 36.66 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.533e-06/0.4996, allocations: 6.234 kB / 0.615 GB, free: 36.66 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008143/0.5005, allocations: 0.5004 MB / 0.6155 GB, free: 36.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.5005, allocations: 6.938 kB / 0.6155 GB, free: 36.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.539e-06/0.5005, allocations: 2.938 kB / 0.6155 GB, free: 36.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004068/0.5009, allocations: 105.5 kB / 0.6156 GB, free: 36.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.5009, allocations: 9.797 kB / 0.6156 GB, free: 36.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.5012, allocations: 60.27 kB / 0.6157 GB, free: 36.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.8e-05/0.5013, allocations: 18.86 kB / 0.6157 GB, free: 36.56 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.0002064/0.5015, allocations: 275 kB / 0.616 GB, free: 36.36 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.441e-05/0.5016, allocations: 71.33 kB / 0.616 GB, free: 36.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001501/0.5017, allocations: 83.03 kB / 0.6161 GB, free: 36.31 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.5017, allocations: 2.875 kB / 0.6161 GB, free: 36.31 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.5017, allocations: 3.953 kB / 0.6161 GB, free: 36.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.5017, allocations: 0.6094 kB / 0.6161 GB, free: 36.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005551/0.5023, allocations: 0.6237 MB / 0.6167 GB, free: 36.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.5023, allocations: 0 / 0.6167 GB, free: 36.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004332/0.5028, allocations: 91.62 kB / 0.6168 GB, free: 36.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.5028, allocations: 3.938 kB / 0.6168 GB, free: 36.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-05/0.5028, allocations: 10.66 kB / 0.6168 GB, free: 36.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.5028, allocations: 2.844 kB / 0.6168 GB, free: 36.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.5028, allocations: 0 / 0.6168 GB, free: 36.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.5041, allocations: 0.7526 MB / 0.6176 GB, free: 35.76 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001796/0.5043, allocations: 196.5 kB / 0.6178 GB, free: 35.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.141e-05/0.5044, allocations: 10.78 kB / 0.6178 GB, free: 35.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003838/0.5048, allocations: 44.77 kB / 0.6178 GB, free: 35.58 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.45e-05/0.5048, allocations: 31.73 kB / 0.6178 GB, free: 35.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.198e-05/0.5049, allocations: 16.73 kB / 0.6179 GB, free: 35.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000372/0.5053, allocations: 427.6 kB / 0.6183 GB, free: 35.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5053, allocations: 3.828 kB / 0.6183 GB, free: 35.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005351/0.5058, allocations: 224.4 kB / 0.6185 GB, free: 35.32 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.001426/0.5072, allocations: 1.305 MB / 0.6198 GB, free: 34.45 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001276/0.5085, allocations: 0.8023 MB / 0.6205 GB, free: 34.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.5085, allocations: 0 / 0.6205 GB, free: 34.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004045/0.509, allocations: 229 kB / 0.6208 GB, free: 34.02 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007379/0.5097, allocations: 182.9 kB / 0.6209 GB, free: 33.97 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002188/0.5119, allocations: 3.284 MB / 0.6241 GB, free: 31.29 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.5122, allocations: 0.9304 MB / 0.625 GB, free: 30.58 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003359/0.5125, allocations: 93.83 kB / 0.6251 GB, free: 30.56 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.5128, allocations: 259.1 kB / 0.6254 GB, free: 30.37 MB / 0.4981 GB Notification: Performance of SimCode: time 4.21e-07/0.5128, allocations: 0 / 0.6254 GB, free: 30.37 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02322/0.5361, allocations: 12.83 MB / 0.6379 GB, free: 29.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001133/0.5362, allocations: 182.5 kB / 0.6381 GB, free: 29.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.438, allocations: 0 / 0.6381 GB, free: 29.3 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1) Environment - environmentSimulation: