Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",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.001003/0.001007, allocations: 90.67 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.007895/0.007895, allocations: 172.4 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.351/1.351, allocations: 223.2 MB / 240.3 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00164/0.00164, allocations: 266.9 kB / 291.7 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9185/0.9185, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004637/0.0004638, allocations: 17.34 kB / 0.5988 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1567, allocations: 88.54 MB / 0.6852 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.004091/0.1608, allocations: 3.71 MB / 0.6888 GB, free: 11.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.1633, allocations: 1.265 MB / 0.6901 GB, free: 10.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005622/0.1639, allocations: 30.5 kB / 0.6901 GB, free: 9.984 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00027/0.1641, allocations: 91.22 kB / 0.6902 GB, free: 9.895 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003697/0.1645, allocations: 150.5 kB / 0.6903 GB, free: 9.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007613/0.1653, allocations: 376.7 kB / 0.6907 GB, free: 9.387 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007378/0.166, allocations: 0.8773 MB / 0.6916 GB, free: 8.508 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005363/0.1666, allocations: 433.6 kB / 0.692 GB, free: 8.066 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002391/0.1668, allocations: 237.3 kB / 0.6922 GB, free: 7.836 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.1671, allocations: 250.4 kB / 0.6924 GB, free: 7.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.413e-05/0.1672, allocations: 24 kB / 0.6925 GB, free: 7.566 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.079e-05/0.1672, allocations: 24 kB / 0.6925 GB, free: 7.543 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-05/0.1673, allocations: 103.4 kB / 0.6926 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002406/0.1676, allocations: 331.8 kB / 0.6929 GB, free: 7.109 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006845/0.1682, allocations: 0.9554 MB / 0.6938 GB, free: 6.152 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1683, allocations: 0 / 0.6938 GB, free: 6.152 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1683, allocations: 0 / 0.6938 GB, free: 6.152 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1683, allocations: 0 / 0.6938 GB, free: 6.152 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001433/0.1697, allocations: 0.9566 MB / 0.6948 GB, free: 5.141 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1698, allocations: 8.031 kB / 0.6948 GB, free: 5.133 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.1699, allocations: 102.7 kB / 0.6949 GB, free: 5.023 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.17, allocations: 83.94 kB / 0.6949 GB, free: 4.941 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000716/0.1707, allocations: 0.5534 MB / 0.6955 GB, free: 4.348 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.1708, allocations: 45.62 kB / 0.6955 GB, free: 4.305 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.765e-05/0.1709, allocations: 64.28 kB / 0.6956 GB, free: 4.242 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.1719, allocations: 0.6194 MB / 0.6962 GB, free: 3.602 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.1719, allocations: 0 / 0.6962 GB, free: 3.602 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.948e-05/0.172, allocations: 20 kB / 0.6962 GB, free: 3.582 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.172, allocations: 16 kB / 0.6962 GB, free: 3.566 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009444/0.1729, allocations: 473 kB / 0.6967 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002539/0.1755, allocations: 2.016 MB / 0.6986 GB, free: 1.02 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008774/0.1764, allocations: 455.7 kB / 0.6991 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004346/0.1768, allocations: 250.1 kB / 0.6993 GB, free: 328 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.679e-05/0.1769, allocations: 12.42 kB / 0.6993 GB, free: 316 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005433/0.1774, allocations: 265.3 kB / 0.6996 GB, free: 40 kB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 1.724e-06/0.1774, allocations: 0 / 0.6996 GB, free: 40 kB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001279/0.1787, allocations: 0.6039 MB / 0.7002 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.1788, allocations: 55.84 kB / 0.7002 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004438/0.1792, allocations: 446 kB / 0.7007 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.959e-05/0.1793, allocations: 41.64 kB / 0.7007 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.1795, allocations: 321 kB / 0.701 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.1796, allocations: 169.6 kB / 0.7012 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-05/0.1797, allocations: 49.69 kB / 0.7012 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1798, allocations: 362.8 kB / 0.7016 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/0.1802, allocations: 169 kB / 0.7017 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.1806, allocations: 261.8 kB / 0.702 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007912/0.1814, allocations: 464 kB / 0.7024 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1814, allocations: 0 / 0.7024 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001016/0.1825, allocations: 0.578 MB / 0.703 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.1825, allocations: 35.58 kB / 0.703 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1825, allocations: 0 / 0.703 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.1825, allocations: 4 kB / 0.703 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.183, allocations: 112.1 kB / 0.7031 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.183, allocations: 11.94 kB / 0.7031 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003332/0.1834, allocations: 67.5 kB / 0.7032 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.1834, allocations: 23.98 kB / 0.7032 GB, free: 12.19 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0002301/0.1836, allocations: 211 kB / 0.7034 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.918e-05/0.1837, allocations: 67.19 kB / 0.7035 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.1839, allocations: 65.58 kB / 0.7035 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.1839, allocations: 4 kB / 0.7035 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1839, allocations: 0 / 0.7035 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1839, allocations: 0 / 0.7035 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.1855, allocations: 1.185 MB / 0.7047 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1855, allocations: 11.94 kB / 0.7047 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004697/0.186, allocations: 99.81 kB / 0.7048 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.186, allocations: 4 kB / 0.7048 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.186, allocations: 8 kB / 0.7048 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.186, allocations: 8 kB / 0.7048 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.186, allocations: 0 / 0.7048 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.1873, allocations: 0.7719 MB / 0.7056 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.1875, allocations: 176.3 kB / 0.7058 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.635e-05/0.1876, allocations: 8 kB / 0.7058 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002981/0.1879, allocations: 39.88 kB / 0.7058 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.602e-05/0.188, allocations: 32.39 kB / 0.7058 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.619e-05/0.188, allocations: 19.94 kB / 0.7058 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003129/0.1883, allocations: 310.9 kB / 0.7061 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1883, allocations: 0 / 0.7061 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004031/0.1887, allocations: 139.5 kB / 0.7063 GB, free: 8.957 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.001535/0.1903, allocations: 1.336 MB / 0.7076 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008663/0.1911, allocations: 493.5 kB / 0.7081 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.1912, allocations: 8 kB / 0.7081 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004069/0.1916, allocations: 214.4 kB / 0.7083 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007501/0.1923, allocations: 147.8 kB / 0.7084 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007154/0.1995, allocations: 5.255 MB / 0.7135 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.1999, allocations: 0.8863 MB / 0.7144 GB, free: 432 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002649/0.2002, allocations: 64.58 kB / 0.7145 GB, free: 368 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002741/0.2005, allocations: 219.4 kB / 0.7147 GB, free: 148 kB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.2005, allocations: 0 / 0.7147 GB, free: 148 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03103/0.2315, allocations: 10.53 MB / 0.725 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/0.2317, allocations: 217.6 kB / 0.7252 GB, free: 5.594 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.095, allocations: 0 / 0.7252 GB, free: 5.594 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)