Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.005101/0.005101, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.001258/0.001258, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.248/1.248, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.8126/0.8126, allocations: 143.1 MB / 433.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 59.78 kB / 0.595 GB, free: 12.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1355, allocations: 82.02 MB / 0.6751 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.005174/0.1407, allocations: 4.11 MB / 0.6791 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00247/0.1432, allocations: 1.328 MB / 0.6804 GB, free: 5.391 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005297/0.1438, allocations: 19.94 kB / 0.6805 GB, free: 5.371 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0003623/0.1442, allocations: 130.7 kB / 0.6806 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0003816/0.1446, allocations: 178.4 kB / 0.6807 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008174/0.1454, allocations: 421.5 kB / 0.6811 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0007845/0.1462, allocations: 0.967 MB / 0.6821 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005537/0.1467, allocations: 462.4 kB / 0.6825 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003028/0.147, allocations: 330.7 kB / 0.6828 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002931/0.1473, allocations: 342.3 kB / 0.6832 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.65e-05/0.1475, allocations: 96 kB / 0.6833 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 9.185e-05/0.1475, allocations: 88 kB / 0.6834 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.1477, allocations: 175.5 kB / 0.6835 GB, free: 2.203 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002841/0.148, allocations: 394 kB / 0.6839 GB, free: 1.816 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008881/0.1489, allocations: 1.117 MB / 0.685 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1489, allocations: 4 kB / 0.685 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1489, allocations: 3.938 kB / 0.685 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.377e-05/0.1489, allocations: 0 / 0.685 GB, free: 0.6875 MB / 0.5137 GB 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.001659/0.1506, allocations: 1.098 MB / 0.6861 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.1506, allocations: 12.03 kB / 0.6861 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.1507, allocations: 98.69 kB / 0.6862 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.1508, allocations: 88.42 kB / 0.6863 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008182/0.1517, allocations: 0.5732 MB / 0.6868 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.1517, allocations: 45.69 kB / 0.6869 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.828e-05/0.1518, allocations: 56.38 kB / 0.6869 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009841/0.1528, allocations: 0.6038 MB / 0.6875 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.1528, allocations: 7.938 kB / 0.6875 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.422e-05/0.1529, allocations: 24 kB / 0.6875 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.1529, allocations: 16 kB / 0.6875 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009333/0.1538, allocations: 457 kB / 0.688 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002476/0.1563, allocations: 2.005 MB / 0.6899 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000852/0.1572, allocations: 445.7 kB / 0.6904 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004228/0.1576, allocations: 238.1 kB / 0.6906 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.1577, allocations: 12.42 kB / 0.6906 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004952/0.1582, allocations: 265.2 kB / 0.6909 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=49): time 1.883e-06/0.1582, allocations: 0 / 0.6909 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of matching and sorting (n=49): time 0.001191/0.1594, allocations: 0.5846 MB / 0.6914 GB, free: 9.859 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.1594, allocations: 55.84 kB / 0.6915 GB, free: 9.793 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004279/0.1599, allocations: 446 kB / 0.6919 GB, free: 9.348 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.1599, allocations: 37.7 kB / 0.6919 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.1601, allocations: 329.5 kB / 0.6923 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.1602, allocations: 178.5 kB / 0.6924 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.1604, allocations: 90.25 kB / 0.6925 GB, free: 8.707 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1605, allocations: 366.8 kB / 0.6929 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003656/0.1609, allocations: 165 kB / 0.693 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003991/0.1613, allocations: 249.8 kB / 0.6933 GB, free: 7.906 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007593/0.162, allocations: 452 kB / 0.6937 GB, free: 7.434 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1621, allocations: 4 kB / 0.6937 GB, free: 7.43 MB / 0.5294 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009527/0.163, allocations: 0.5626 MB / 0.6942 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.1631, allocations: 37.69 kB / 0.6943 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1631, allocations: 256 / 0.6943 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1631, allocations: 12 kB / 0.6943 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004643/0.1636, allocations: 111.8 kB / 0.6944 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1636, allocations: 4 kB / 0.6944 GB, free: 6.688 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.1639, allocations: 59.61 kB / 0.6945 GB, free: 6.629 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.1639, allocations: 16 kB / 0.6945 GB, free: 6.613 MB / 0.5294 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.0002135/0.1642, allocations: 211.6 kB / 0.6947 GB, free: 6.398 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.532e-05/0.1642, allocations: 63.61 kB / 0.6947 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.1643, allocations: 61.59 kB / 0.6948 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1644, allocations: 7.984 kB / 0.6948 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1644, allocations: 4 kB / 0.6948 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1644, allocations: 0 / 0.6948 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.1659, allocations: 1.182 MB / 0.696 GB, free: 5.027 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1659, allocations: 4 kB / 0.696 GB, free: 5.023 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/0.1664, allocations: 95.88 kB / 0.6961 GB, free: 4.93 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.1664, allocations: 0 / 0.6961 GB, free: 4.93 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/0.1665, allocations: 12 kB / 0.6961 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.1665, allocations: 4 kB / 0.6961 GB, free: 4.914 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1665, allocations: 0 / 0.6961 GB, free: 4.914 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/0.1677, allocations: 0.7692 MB / 0.6968 GB, free: 4.125 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.1679, allocations: 184.5 kB / 0.697 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.962e-05/0.168, allocations: 8 kB / 0.697 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.1682, allocations: 19.98 kB / 0.697 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.228e-05/0.1683, allocations: 36.39 kB / 0.6971 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.1684, allocations: 15.98 kB / 0.6971 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002994/0.1687, allocations: 310.9 kB / 0.6974 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.21e-07/0.1687, allocations: 0 / 0.6974 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000395/0.1691, allocations: 139.7 kB / 0.6975 GB, free: 3.41 MB / 0.5294 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.001479/0.1706, allocations: 1.325 MB / 0.6988 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0008476/0.1714, allocations: 477.6 kB / 0.6993 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1714, allocations: 4 kB / 0.6993 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003946/0.1718, allocations: 222.3 kB / 0.6995 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007204/0.1726, allocations: 158.1 kB / 0.6996 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006342/0.1789, allocations: 4.81 MB / 0.7043 GB, free: 12.26 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.1793, allocations: 0.8821 MB / 0.7052 GB, free: 11.35 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002447/0.1796, allocations: 68.58 kB / 0.7052 GB, free: 11.29 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.1799, allocations: 223.4 kB / 0.7055 GB, free: 11.07 MB / 0.545 GB Notification: Performance of SimCode: time 3.8e-07/0.1799, allocations: 0 / 0.7055 GB, free: 11.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02919/0.2091, allocations: 11.34 MB / 0.7165 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.664/7.873, allocations: 3.938 kB / 0.7165 GB, free: 15.92 MB / 0.5606 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)