Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",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.001397/0.001397, allocations: 106.6 kB / 16.41 MB, free: 6.402 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.001347/0.001347, allocations: 194.4 kB / 17.34 MB, free: 5.691 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.425/1.425, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8314/0.8314, allocations: 126.7 MB / 417.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 65.14 kB / 0.5735 GB, free: 27.01 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1557, allocations: 78.87 MB / 0.6506 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002589/0.1583, allocations: 1.456 MB / 0.652 GB, free: 2.133 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1595, allocations: 0.6323 MB / 0.6526 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.329e-05/0.1595, allocations: 0 / 0.6526 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.929e-05/0.1596, allocations: 3.938 kB / 0.6526 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.064e-05/0.1596, allocations: 7.922 kB / 0.6526 GB, free: 1.488 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/0.1602, allocations: 155.4 kB / 0.6528 GB, free: 1.336 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.32e-05/0.1603, allocations: 59.83 kB / 0.6528 GB, free: 1.277 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.578e-05/0.1604, allocations: 4 kB / 0.6528 GB, free: 1.273 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.934e-05/0.1604, allocations: 19.92 kB / 0.6528 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.273e-05/0.1605, allocations: 31.89 kB / 0.6529 GB, free: 1.223 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.1605, allocations: 4 kB / 0.6529 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005199/0.161, allocations: 343.3 kB / 0.6532 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.106e-05/0.1611, allocations: 15.92 kB / 0.6532 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.136e-05/0.1611, allocations: 27.86 kB / 0.6532 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003073/0.1614, allocations: 175.6 kB / 0.6534 GB, free: 0.668 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.1614, allocations: 0 / 0.6534 GB, free: 0.668 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1615, allocations: 7.938 kB / 0.6534 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.1615, allocations: 0 / 0.6534 GB, free: 0.6602 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006149/0.1621, allocations: 402.9 kB / 0.6538 GB, free: 224 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1621, allocations: 8.625 kB / 0.6538 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.749e-05/0.1622, allocations: 50.67 kB / 0.6539 GB, free: 156 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.562e-05/0.1622, allocations: 8.891 kB / 0.6539 GB, free: 148 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.1624, allocations: 164.4 kB / 0.654 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.1624, allocations: 4.375 kB / 0.654 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.595e-05/0.1624, allocations: 20.08 kB / 0.654 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002457/0.1627, allocations: 73.66 kB / 0.6541 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1627, allocations: 0 / 0.6541 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.1627, allocations: 4 kB / 0.6541 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1627, allocations: 0 / 0.6541 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002442/0.163, allocations: 55.89 kB / 0.6542 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005941/0.1636, allocations: 328.7 kB / 0.6545 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00029/0.1639, allocations: 78.47 kB / 0.6546 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.164, allocations: 36.83 kB / 0.6546 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.1641, allocations: 0 / 0.6546 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.1641, allocations: 38.56 kB / 0.6546 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 2.826e-06/0.1641, allocations: 0 / 0.6546 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001685/0.1658, allocations: 0.6424 MB / 0.6553 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.1659, allocations: 55.41 kB / 0.6553 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.869e-05/0.166, allocations: 101.8 kB / 0.6554 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.166, allocations: 29.7 kB / 0.6554 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.491e-05/0.166, allocations: 92.09 kB / 0.6555 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.928e-05/0.1661, allocations: 35.69 kB / 0.6556 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/0.1661, allocations: 25.72 kB / 0.6556 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1663, allocations: 326.8 kB / 0.6559 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.1664, allocations: 35.97 kB / 0.6559 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.1666, allocations: 30.73 kB / 0.656 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.1668, allocations: 72.86 kB / 0.656 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.1668, allocations: 3.938 kB / 0.656 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003352/0.1672, allocations: 121.7 kB / 0.6561 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1672, allocations: 9.875 kB / 0.6562 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.1672, allocations: 0 / 0.6562 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/0.1672, allocations: 3.938 kB / 0.6562 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.1674, allocations: 27.92 kB / 0.6562 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.1674, allocations: 7.984 kB / 0.6562 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.222e-05/0.1675, allocations: 4 kB / 0.6562 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.1675, allocations: 4 kB / 0.6562 GB, free: 13.49 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 9.672e-05/0.1676, allocations: 113.8 kB / 0.6563 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.124e-05/0.1677, allocations: 11.95 kB / 0.6563 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000384/0.168, allocations: 129.5 kB / 0.6564 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1681, allocations: 8.125 kB / 0.6565 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1681, allocations: 4 kB / 0.6565 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1681, allocations: 3.984 kB / 0.6565 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006046/0.1687, allocations: 386.6 kB / 0.6568 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1687, allocations: 0 / 0.6568 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.1689, allocations: 27.98 kB / 0.6569 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1689, allocations: 3.938 kB / 0.6569 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.1689, allocations: 4 kB / 0.6569 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1689, allocations: 0 / 0.6569 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.1689, allocations: 4 kB / 0.6569 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005381/0.1694, allocations: 251.3 kB / 0.6571 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.821e-05/0.1695, allocations: 85.12 kB / 0.6572 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.1695, allocations: 3.984 kB / 0.6572 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.1696, allocations: 4.031 kB / 0.6572 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.953e-05/0.1697, allocations: 11.98 kB / 0.6572 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.1697, allocations: 4 kB / 0.6572 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.426e-05/0.1697, allocations: 79.28 kB / 0.6573 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1697, allocations: 0 / 0.6573 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002918/0.17, allocations: 43.86 kB / 0.6573 GB, free: 12.23 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0009465/0.171, allocations: 0.8208 MB / 0.6581 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003492/0.1714, allocations: 83.88 kB / 0.6582 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.1714, allocations: 4.062 kB / 0.6582 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001411/0.1715, allocations: 43.92 kB / 0.6583 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.1718, allocations: 15.92 kB / 0.6583 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002152/0.174, allocations: 1.591 MB / 0.6598 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.1743, allocations: 0.6924 MB / 0.6605 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.08e-05/0.1744, allocations: 16.64 kB / 0.6605 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.319e-05/0.1745, allocations: 27.44 kB / 0.6605 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of SimCode: time 4.4e-07/0.1745, allocations: 0 / 0.6605 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.2, allocations: 2.323 MB / 0.6628 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.137/8.337, allocations: 14.66 kB / 0.6628 GB, free: 6.648 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)