Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="IDEAS_dev_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_dev_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.001159/0.001159, allocations: 108 kB / 15.6 MB, free: 132 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.001225/0.001225, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.406/1.406, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9548/0.9548, allocations: 135.1 MB / 425.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001395, allocations: 63.03 kB / 0.5054 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1669, allocations: 80.93 MB / 0.5845 GB, free: 4.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002534/0.1695, allocations: 1.233 MB / 0.5857 GB, free: 3.227 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.1707, allocations: 0.5892 MB / 0.5863 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.676e-05/0.1707, allocations: 0 / 0.5863 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.141e-05/0.1707, allocations: 0 / 0.5863 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.643e-05/0.1708, allocations: 11.92 kB / 0.5863 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000525/0.1713, allocations: 135.4 kB / 0.5864 GB, free: 2.492 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.207e-05/0.1714, allocations: 23.92 kB / 0.5864 GB, free: 2.469 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.926e-05/0.1715, allocations: 0 / 0.5864 GB, free: 2.469 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.039e-05/0.1715, allocations: 4 kB / 0.5864 GB, free: 2.465 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.441e-05/0.1715, allocations: 0 / 0.5864 GB, free: 2.465 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.1716, allocations: 0 / 0.5864 GB, free: 2.465 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005809/0.1721, allocations: 347.3 kB / 0.5868 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.262e-05/0.1722, allocations: 3.938 kB / 0.5868 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.51e-05/0.1722, allocations: 11.98 kB / 0.5868 GB, free: 2.109 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003527/0.1726, allocations: 135.9 kB / 0.5869 GB, free: 1.977 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.1726, allocations: 4 kB / 0.5869 GB, free: 1.973 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1726, allocations: 0 / 0.5869 GB, free: 1.973 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1726, allocations: 4 kB / 0.5869 GB, free: 1.969 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005132/0.1731, allocations: 351.4 kB / 0.5872 GB, free: 1.578 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1732, allocations: 8.031 kB / 0.5873 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.793e-05/0.1732, allocations: 30.75 kB / 0.5873 GB, free: 1.531 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.1733, allocations: 0.9375 kB / 0.5873 GB, free: 1.531 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.1734, allocations: 164.4 kB / 0.5874 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.1735, allocations: 384 / 0.5874 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.1735, allocations: 384 / 0.5874 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.1736, allocations: 49.62 kB / 0.5875 GB, free: 1.277 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1736, allocations: 3.938 kB / 0.5875 GB, free: 1.273 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.1736, allocations: 0 / 0.5875 GB, free: 1.273 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1737, allocations: 0 / 0.5875 GB, free: 1.273 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.662e-05/0.1737, allocations: 4 kB / 0.5875 GB, free: 1.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002749/0.174, allocations: 153.7 kB / 0.5876 GB, free: 1.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.107e-05/0.1741, allocations: 22.58 kB / 0.5877 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.139e-05/0.1741, allocations: 16.86 kB / 0.5877 GB, free: 1.02 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.1742, allocations: 11.92 kB / 0.5877 GB, free: 1.008 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/0.1742, allocations: 30.56 kB / 0.5877 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.623e-06/0.1742, allocations: 0 / 0.5877 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001915/0.1744, allocations: 41.62 kB / 0.5878 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.1745, allocations: 59.41 kB / 0.5878 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.216e-05/0.1746, allocations: 89.86 kB / 0.5879 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.1746, allocations: 25.95 kB / 0.5879 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.151e-05/0.1747, allocations: 88.14 kB / 0.588 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.154e-05/0.1747, allocations: 3.906 kB / 0.588 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.1748, allocations: 17.7 kB / 0.588 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.175, allocations: 314.8 kB / 0.5883 GB, free: 296 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.941e-05/0.175, allocations: 3.938 kB / 0.5883 GB, free: 292 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.427e-05/0.175, allocations: 4 kB / 0.5883 GB, free: 288 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.479e-05/0.1751, allocations: 16.8 kB / 0.5884 GB, free: 268 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1751, allocations: 4.062 kB / 0.5884 GB, free: 264 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001098/0.1752, allocations: 41.62 kB / 0.5884 GB, free: 216 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1752, allocations: 4 kB / 0.5884 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1753, allocations: 4 kB / 0.5884 GB, free: 208 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.1753, allocations: 0 / 0.5884 GB, free: 208 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/0.1755, allocations: 8 kB / 0.5884 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000587/0.1761, allocations: 0.5899 MB / 0.589 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.855e-05/0.1762, allocations: 4.125 kB / 0.589 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.1762, allocations: 0 / 0.589 GB, free: 15.58 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.0001457/0.1764, allocations: 111.1 kB / 0.5891 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.513e-05/0.1764, allocations: 7.938 kB / 0.5891 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.1765, allocations: 44.81 kB / 0.5892 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1766, allocations: 0 / 0.5892 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1766, allocations: 0 / 0.5892 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1766, allocations: 32 / 0.5892 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.1768, allocations: 161.6 kB / 0.5893 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1768, allocations: 0 / 0.5893 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.1769, allocations: 8 kB / 0.5893 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1769, allocations: 0 / 0.5893 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.177, allocations: 0 / 0.5893 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004891/0.1775, allocations: 0.5898 MB / 0.5899 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1775, allocations: 0 / 0.5899 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001038/0.1776, allocations: 65.27 kB / 0.59 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.376e-05/0.1776, allocations: 81.09 kB / 0.59 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.1777, allocations: 7.922 kB / 0.59 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.322e-05/0.1777, allocations: 4 kB / 0.59 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.891e-05/0.1777, allocations: 3.938 kB / 0.59 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.1777, allocations: 7.938 kB / 0.5901 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.658e-05/0.1778, allocations: 79.31 kB / 0.5901 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.1778, allocations: 0 / 0.5901 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003205/0.1781, allocations: 19.94 kB / 0.5901 GB, free: 14.27 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.0006043/0.1787, allocations: 0.6046 MB / 0.5907 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002491/0.179, allocations: 31.92 kB / 0.5908 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.179, allocations: 4 kB / 0.5908 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.1792, allocations: 12 kB / 0.5908 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.1795, allocations: 0 / 0.5908 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006567/0.1802, allocations: 143.7 kB / 0.5909 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.1806, allocations: 0.673 MB / 0.5916 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.112e-05/0.1806, allocations: 4 kB / 0.5916 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.1806, allocations: 11.44 kB / 0.5916 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1807, allocations: 0 / 0.5916 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02577/0.2064, allocations: 1.327 MB / 0.5929 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.2, allocations: 8.812 kB / 0.5929 GB, free: 11.57 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)