Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="IBPSA_latest_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.001095/0.001095, allocations: 103.8 kB / 16.4 MB, free: 6 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.001038/0.001038, allocations: 197.1 kB / 17.34 MB, free: 5.582 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7568/0.7568, allocations: 122.9 MB / 414.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 63.03 kB / 0.5679 GB, free: 28.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 77.93 MB / 0.644 GB, free: 9.566 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPID): time 0.004468/0.1207, allocations: 3.687 MB / 0.6476 GB, free: 5.859 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.1228, allocations: 1.328 MB / 0.6489 GB, free: 4.523 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003022/0.1231, allocations: 23.88 kB / 0.6489 GB, free: 4.5 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.1234, allocations: 126.6 kB / 0.6491 GB, free: 4.375 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004924/0.1239, allocations: 193.7 kB / 0.6493 GB, free: 4.188 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.125, allocations: 0.5703 MB / 0.6498 GB, free: 3.625 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000885/0.1259, allocations: 0.972 MB / 0.6508 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004702/0.1264, allocations: 349.9 kB / 0.6511 GB, free: 2.289 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003742/0.1267, allocations: 374.4 kB / 0.6515 GB, free: 1.922 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000324/0.1271, allocations: 358 kB / 0.6518 GB, free: 1.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.1272, allocations: 76 kB / 0.6519 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.44e-05/0.1273, allocations: 80 kB / 0.6519 GB, free: 1.418 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.1274, allocations: 179.3 kB / 0.6521 GB, free: 1.242 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002798/0.1277, allocations: 381.7 kB / 0.6525 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008043/0.1285, allocations: 0.8944 MB / 0.6534 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1286, allocations: 8 kB / 0.6534 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.1286, allocations: 3.938 kB / 0.6534 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.053e-05/0.1286, allocations: 0 / 0.6534 GB, free: 15.96 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.001957/0.1305, allocations: 1.202 MB / 0.6545 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1306, allocations: 12.61 kB / 0.6545 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.429e-05/0.1307, allocations: 94.7 kB / 0.6546 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.1308, allocations: 100.3 kB / 0.6547 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009983/0.1318, allocations: 0.6188 MB / 0.6553 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.132, allocations: 96.95 kB / 0.6554 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.22e-05/0.132, allocations: 56.38 kB / 0.6555 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.1331, allocations: 0.6001 MB / 0.6561 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.1331, allocations: 15.91 kB / 0.6561 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.229e-05/0.1332, allocations: 24 kB / 0.6561 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.1332, allocations: 12 kB / 0.6561 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009692/0.1342, allocations: 419.7 kB / 0.6565 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002607/0.1368, allocations: 2.095 MB / 0.6586 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.138, allocations: 0.4959 MB / 0.6591 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000466/0.1385, allocations: 228.7 kB / 0.6593 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.615e-05/0.1386, allocations: 4 kB / 0.6593 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006259/0.1392, allocations: 274 kB / 0.6595 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 1.944e-06/0.1392, allocations: 4 kB / 0.6595 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001441/0.1407, allocations: 0.6198 MB / 0.6601 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/0.1407, allocations: 88.86 kB / 0.6602 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006555/0.1414, allocations: 0.6138 MB / 0.6608 GB, free: 8 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.1414, allocations: 37.64 kB / 0.6609 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002452/0.1417, allocations: 365.1 kB / 0.6612 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.1418, allocations: 158.6 kB / 0.6614 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.142, allocations: 102.2 kB / 0.6615 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.739e-05/0.1421, allocations: 322 kB / 0.6618 GB, free: 7.016 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004564/0.1425, allocations: 187 kB / 0.6619 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.143, allocations: 276.2 kB / 0.6622 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009236/0.144, allocations: 473.9 kB / 0.6627 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.144, allocations: 8 kB / 0.6627 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001194/0.1452, allocations: 0.6105 MB / 0.6633 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.1452, allocations: 33.7 kB / 0.6633 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.1452, allocations: 4 kB / 0.6633 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.1453, allocations: 4 kB / 0.6633 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005052/0.1458, allocations: 103.9 kB / 0.6634 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.1458, allocations: 7.938 kB / 0.6634 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.1462, allocations: 67.59 kB / 0.6635 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.1462, allocations: 16 kB / 0.6635 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005406/0.1468, allocations: 317.2 kB / 0.6638 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004512/0.1472, allocations: 264.3 kB / 0.664 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008279/0.1481, allocations: 449.9 kB / 0.6645 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.306e-06/0.1481, allocations: 3.984 kB / 0.6645 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001082/0.1492, allocations: 0.583 MB / 0.665 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.1492, allocations: 29.7 kB / 0.6651 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1492, allocations: 4 kB / 0.6651 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.101e-06/0.1492, allocations: 8.312 kB / 0.6651 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004677/0.1497, allocations: 107.8 kB / 0.6652 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.1497, allocations: 8 kB / 0.6652 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003696/0.1501, allocations: 51.7 kB / 0.6652 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.445e-05/0.1501, allocations: 20 kB / 0.6653 GB, free: 3.238 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.000145/0.1503, allocations: 216.8 kB / 0.6655 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.988e-05/0.1504, allocations: 83.42 kB / 0.6656 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000139/0.1505, allocations: 83.2 kB / 0.6656 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.1506, allocations: 8 kB / 0.6656 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1506, allocations: 0 / 0.6656 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.1506, allocations: 0 / 0.6656 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006015/0.1512, allocations: 0.6219 MB / 0.6662 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1512, allocations: 0 / 0.6662 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004832/0.1517, allocations: 83.83 kB / 0.6663 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.81e-06/0.1517, allocations: 4 kB / 0.6663 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.1517, allocations: 12 kB / 0.6663 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.865e-06/0.1517, allocations: 7.984 kB / 0.6663 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1518, allocations: 0 / 0.6663 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.1533, allocations: 0.7319 MB / 0.6671 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.1535, allocations: 196.5 kB / 0.6673 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.642e-05/0.1536, allocations: 8 kB / 0.6673 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004306/0.154, allocations: 31.97 kB / 0.6673 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.932e-05/0.1541, allocations: 31.95 kB / 0.6673 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/0.1542, allocations: 15.98 kB / 0.6673 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004872/0.1546, allocations: 435 kB / 0.6678 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1547, allocations: 0 / 0.6678 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005663/0.1552, allocations: 219.5 kB / 0.668 GB, free: 396 kB / 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.001775/0.157, allocations: 1.293 MB / 0.6692 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001514/0.1585, allocations: 0.7816 MB / 0.67 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1585, allocations: 0 / 0.67 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004734/0.159, allocations: 223.6 kB / 0.6702 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008805/0.1599, allocations: 201.5 kB / 0.6704 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007395/0.1673, allocations: 5.382 MB / 0.6756 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.1677, allocations: 0.9141 MB / 0.6765 GB, free: 7.367 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003495/0.1681, allocations: 97.05 kB / 0.6766 GB, free: 7.273 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003386/0.1684, allocations: 259.4 kB / 0.6769 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.1684, allocations: 0 / 0.6769 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03137/0.1998, allocations: 14.04 MB / 0.6906 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.215/8.415, allocations: 9.094 kB / 0.6906 GB, free: 9.133 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)