Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.00541/0.00541, allocations: 99.81 kB / 15.73 MB, free: 6.492 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.001098/0.001098, allocations: 201.4 kB / 16.68 MB, free: 6.375 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.274/1.274, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002088/0.002088, allocations: 275 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.919/0.919, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 96.36 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1579, allocations: 86.97 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001892/0.1599, allocations: 1.245 MB / 0.7671 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008571/0.1607, allocations: 0.5954 MB / 0.7677 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.794e-05/0.1608, allocations: 4 kB / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.665e-05/0.1608, allocations: 0 / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.15e-05/0.1609, allocations: 0 / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004624/0.1613, allocations: 139.4 kB / 0.7678 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.115e-05/0.1614, allocations: 7.938 kB / 0.7678 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.636e-05/0.1614, allocations: 4 kB / 0.7678 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.672e-05/0.1614, allocations: 4 kB / 0.7678 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.338e-05/0.1615, allocations: 15.91 kB / 0.7679 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.128e-06/0.1615, allocations: 4 kB / 0.7679 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004654/0.162, allocations: 339.3 kB / 0.7682 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.093e-05/0.162, allocations: 4 kB / 0.7682 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.891e-05/0.162, allocations: 3.984 kB / 0.7682 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.1622, allocations: 143.8 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.1622, allocations: 0 / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.233e-06/0.1622, allocations: 0 / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.1623, allocations: 0 / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003497/0.1626, allocations: 355.1 kB / 0.7687 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.1627, allocations: 16.03 kB / 0.7687 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.698e-05/0.1627, allocations: 30.75 kB / 0.7687 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.811e-05/0.1627, allocations: 0.9375 kB / 0.7687 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.1628, allocations: 164.4 kB / 0.7689 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.1628, allocations: 4.359 kB / 0.7689 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.1628, allocations: 4.375 kB / 0.7689 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.953e-05/0.1629, allocations: 30.2 kB / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.1629, allocations: 7.875 kB / 0.7689 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.512e-06/0.163, allocations: 4 kB / 0.7689 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.163, allocations: 4 kB / 0.7689 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.292e-05/0.163, allocations: 4 kB / 0.7689 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001349/0.1631, allocations: 149.7 kB / 0.7691 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.77e-05/0.1632, allocations: 22.67 kB / 0.7691 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.572e-05/0.1632, allocations: 8.859 kB / 0.7691 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.1632, allocations: 0 / 0.7691 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.1633, allocations: 42.48 kB / 0.7691 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.1633, allocations: 7.938 kB / 0.7691 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001165/0.1634, allocations: 41.64 kB / 0.7692 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.1634, allocations: 51.41 kB / 0.7692 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.562e-05/0.1635, allocations: 93.86 kB / 0.7693 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.1635, allocations: 29.7 kB / 0.7694 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.719e-05/0.1635, allocations: 84.12 kB / 0.7694 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.1636, allocations: 3.953 kB / 0.7694 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/0.1636, allocations: 17.97 kB / 0.7695 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1637, allocations: 314.8 kB / 0.7698 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.9e-05/0.1637, allocations: 4 kB / 0.7698 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.004e-06/0.1637, allocations: 0 / 0.7698 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.643e-05/0.1638, allocations: 12.8 kB / 0.7698 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1638, allocations: 0 / 0.7698 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.679e-05/0.1638, allocations: 45.69 kB / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.1639, allocations: 7.938 kB / 0.7698 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.616e-06/0.1639, allocations: 4.094 kB / 0.7698 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.1639, allocations: 0 / 0.7698 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.164, allocations: 11.98 kB / 0.7698 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003213/0.1644, allocations: 0.5859 MB / 0.7704 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.668e-05/0.1644, allocations: 0 / 0.7704 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.1644, allocations: 4.031 kB / 0.7704 GB, free: 4.031 MB / 0.5606 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.112e-05/0.1645, allocations: 118.5 kB / 0.7705 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-06/0.1645, allocations: 0 / 0.7705 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.852e-05/0.1646, allocations: 44.81 kB / 0.7706 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1646, allocations: 0 / 0.7706 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1646, allocations: 8 kB / 0.7706 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1646, allocations: 0 / 0.7706 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.004e-05/0.1647, allocations: 153.5 kB / 0.7707 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1647, allocations: 3.938 kB / 0.7707 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.833e-05/0.1648, allocations: 8 kB / 0.7707 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.1648, allocations: 8.016 kB / 0.7707 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.1648, allocations: 7.938 kB / 0.7708 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002741/0.1651, allocations: 0.5782 MB / 0.7713 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1651, allocations: 3.938 kB / 0.7713 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.875e-05/0.1652, allocations: 65.73 kB / 0.7714 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.097e-05/0.1652, allocations: 89.03 kB / 0.7715 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.1652, allocations: 4 kB / 0.7715 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.581e-05/0.1652, allocations: 0 / 0.7715 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.151e-05/0.1653, allocations: 7.875 kB / 0.7715 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.1653, allocations: 0 / 0.7715 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.566e-05/0.1653, allocations: 79.28 kB / 0.7716 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1653, allocations: 0 / 0.7716 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001793/0.1655, allocations: 4 kB / 0.7716 GB, free: 2.738 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003402/0.1658, allocations: 0.6125 MB / 0.7722 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001494/0.166, allocations: 23.92 kB / 0.7722 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.166, allocations: 0 / 0.7722 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.033e-05/0.1661, allocations: 20.08 kB / 0.7722 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.1662, allocations: 5.969 kB / 0.7722 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003576/0.1666, allocations: 135.6 kB / 0.7723 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.1668, allocations: 0.6766 MB / 0.773 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.228e-05/0.1668, allocations: 0 / 0.773 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.929e-05/0.1669, allocations: 7.438 kB / 0.773 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of SimCode: time 3.3e-07/0.1669, allocations: 4.062 kB / 0.773 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.304/0.4709, allocations: 1.41 MB / 0.7744 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.5, allocations: 4.875 kB / 0.7744 GB, free: 14.68 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)