Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="IDEAS_IDEAS_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.001717/0.001716, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 190.6 kB / 16.67 MB, free: 6.539 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8653/0.8653, allocations: 132.2 MB / 422.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001994, allocations: 64.45 kB / 0.5809 GB, free: 1.125 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1718, allocations: 80.21 MB / 0.6592 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002661/0.1745, allocations: 1.242 MB / 0.6604 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001154/0.1757, allocations: 0.5941 MB / 0.661 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.151e-05/0.1758, allocations: 0 / 0.661 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.124e-05/0.1758, allocations: 3.938 kB / 0.661 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.966e-05/0.1759, allocations: 7.984 kB / 0.661 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006509/0.1766, allocations: 139.4 kB / 0.6611 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.335e-05/0.1766, allocations: 11.94 kB / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.074e-05/0.1767, allocations: 0 / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.358e-05/0.1767, allocations: 7.984 kB / 0.6611 GB, free: 12 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.488e-05/0.1768, allocations: 4 kB / 0.6611 GB, free: 12 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.1768, allocations: 7.875 kB / 0.6611 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006249/0.1775, allocations: 343.3 kB / 0.6615 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.59e-05/0.1775, allocations: 4 kB / 0.6615 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.642e-05/0.1775, allocations: 4 kB / 0.6615 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.1778, allocations: 145.2 kB / 0.6616 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1779, allocations: 0 / 0.6616 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.074e-06/0.1779, allocations: 0 / 0.6616 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.406e-06/0.1779, allocations: 0 / 0.6616 GB, free: 11.51 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005325/0.1784, allocations: 355.1 kB / 0.662 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.1785, allocations: 8.031 kB / 0.662 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.035e-05/0.1785, allocations: 30.75 kB / 0.662 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.894e-05/0.1786, allocations: 8.891 kB / 0.662 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.1788, allocations: 168.4 kB / 0.6622 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-06/0.1788, allocations: 384 / 0.6622 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.1788, allocations: 4.125 kB / 0.6622 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.1789, allocations: 33.7 kB / 0.6622 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.1789, allocations: 0 / 0.6622 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-06/0.1789, allocations: 0 / 0.6622 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1789, allocations: 3.984 kB / 0.6622 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.236e-05/0.179, allocations: 4 kB / 0.6622 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002092/0.1792, allocations: 161.6 kB / 0.6624 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.762e-05/0.1793, allocations: 18.61 kB / 0.6624 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.78e-05/0.1793, allocations: 12.86 kB / 0.6624 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.1793, allocations: 7.984 kB / 0.6624 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.1794, allocations: 30.56 kB / 0.6624 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.1794, allocations: 0 / 0.6624 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001952/0.1796, allocations: 41.73 kB / 0.6625 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.1796, allocations: 55.44 kB / 0.6625 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.174e-05/0.1797, allocations: 105.8 kB / 0.6626 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.1798, allocations: 25.7 kB / 0.6626 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.731e-05/0.1798, allocations: 80.14 kB / 0.6627 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.1799, allocations: 3.953 kB / 0.6627 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.644e-05/0.1799, allocations: 17.72 kB / 0.6627 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.18, allocations: 310.8 kB / 0.663 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.307e-05/0.1801, allocations: 4.125 kB / 0.663 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.218e-05/0.1801, allocations: 4 kB / 0.663 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.648e-05/0.1801, allocations: 16.84 kB / 0.6631 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1801, allocations: 0 / 0.6631 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.781e-05/0.1802, allocations: 41.58 kB / 0.6631 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1802, allocations: 8 kB / 0.6631 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.1803, allocations: 0 / 0.6631 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.1803, allocations: 3.938 kB / 0.6631 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.1805, allocations: 12.08 kB / 0.6631 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004654/0.1809, allocations: 0.5821 MB / 0.6637 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.629e-05/0.181, allocations: 11.95 kB / 0.6637 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.181, allocations: 3.938 kB / 0.6637 GB, free: 9.109 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 (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 0.0001168/0.1811, allocations: 110.5 kB / 0.6638 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-06/0.1811, allocations: 0 / 0.6638 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.1813, allocations: 52.84 kB / 0.6639 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1813, allocations: 0 / 0.6639 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1813, allocations: 0 / 0.6639 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1813, allocations: 0 / 0.6639 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.1815, allocations: 157.6 kB / 0.664 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1815, allocations: 0 / 0.664 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.163e-05/0.1816, allocations: 11.98 kB / 0.664 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.1816, allocations: 0 / 0.664 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.1816, allocations: 0 / 0.664 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004055/0.182, allocations: 0.5938 MB / 0.6646 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.182, allocations: 4 kB / 0.6646 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.7e-05/0.1821, allocations: 61.12 kB / 0.6647 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.483e-05/0.1822, allocations: 81.05 kB / 0.6647 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.1822, allocations: 3.938 kB / 0.6648 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.457e-05/0.1822, allocations: 4.125 kB / 0.6648 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.221e-05/0.1823, allocations: 4 kB / 0.6648 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.1823, allocations: 3.938 kB / 0.6648 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.535e-05/0.1823, allocations: 75.28 kB / 0.6648 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1824, allocations: 0 / 0.6648 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002366/0.1826, allocations: 8 kB / 0.6648 GB, free: 7.82 MB / 0.4981 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.0005356/0.1831, allocations: 0.6241 MB / 0.6655 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002277/0.1834, allocations: 19.98 kB / 0.6655 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1834, allocations: 0 / 0.6655 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.68e-05/0.1835, allocations: 15.98 kB / 0.6655 GB, free: 7.129 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.1837, allocations: 5.312 kB / 0.6655 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006159/0.1843, allocations: 141.9 kB / 0.6656 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.1846, allocations: 0.6729 MB / 0.6663 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.096e-05/0.1847, allocations: 0 / 0.6663 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.803e-05/0.1847, allocations: 11.42 kB / 0.6663 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of SimCode: time 7.92e-07/0.1847, allocations: 3.938 kB / 0.6663 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.2112, allocations: 1.376 MB / 0.6676 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.01, allocations: 11.11 kB / 0.6677 GB, free: 5.07 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)