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.004907/0.004907, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001172/0.001173, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.271/1.271, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7784/0.7784, allocations: 135.1 MB / 425.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 60.09 kB / 0.5851 GB, free: 21.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1475, allocations: 80.93 MB / 0.6642 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002186/0.1497, allocations: 1.241 MB / 0.6654 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009414/0.1506, allocations: 0.5919 MB / 0.6659 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.469e-05/0.1507, allocations: 4 kB / 0.6659 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.1507, allocations: 7.875 kB / 0.666 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.132e-05/0.1508, allocations: 0 / 0.666 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004974/0.1513, allocations: 143.4 kB / 0.6661 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.75e-05/0.1513, allocations: 7.938 kB / 0.6661 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.257e-05/0.1514, allocations: 0 / 0.6661 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.182e-05/0.1514, allocations: 11.97 kB / 0.6661 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.369e-05/0.1515, allocations: 0 / 0.6661 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.299e-05/0.1515, allocations: 4 kB / 0.6661 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004737/0.1519, allocations: 339.3 kB / 0.6664 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.79e-05/0.152, allocations: 7.922 kB / 0.6664 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.152, allocations: 8 kB / 0.6665 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.1522, allocations: 135.9 kB / 0.6666 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1522, allocations: 4 kB / 0.6666 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.283e-06/0.1523, allocations: 3.938 kB / 0.6666 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.359e-06/0.1523, allocations: 0 / 0.6666 GB, free: 3.797 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.000386/0.1527, allocations: 351.1 kB / 0.6669 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1527, allocations: 9.109 kB / 0.6669 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.141e-05/0.1527, allocations: 30.75 kB / 0.667 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.851e-05/0.1528, allocations: 8.922 kB / 0.667 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.1529, allocations: 164.3 kB / 0.6671 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.1529, allocations: 4.375 kB / 0.6671 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.1529, allocations: 8.125 kB / 0.6671 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.649e-05/0.153, allocations: 29.7 kB / 0.6672 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.153, allocations: 0 / 0.6672 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.024e-06/0.153, allocations: 0 / 0.6672 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1531, allocations: 3.984 kB / 0.6672 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.654e-05/0.1531, allocations: 11.92 kB / 0.6672 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001439/0.1532, allocations: 149.7 kB / 0.6673 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.374e-05/0.1533, allocations: 22.61 kB / 0.6673 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.307e-05/0.1533, allocations: 20.84 kB / 0.6674 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.1533, allocations: 0 / 0.6674 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.1534, allocations: 30.56 kB / 0.6674 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.1534, allocations: 0 / 0.6674 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001407/0.1535, allocations: 45.64 kB / 0.6674 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.1536, allocations: 51.41 kB / 0.6675 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.062e-05/0.1536, allocations: 97.97 kB / 0.6676 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.1536, allocations: 25.7 kB / 0.6676 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.399e-05/0.1537, allocations: 88.08 kB / 0.6677 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.1537, allocations: 3.953 kB / 0.6677 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.754e-05/0.1537, allocations: 13.72 kB / 0.6677 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.1538, allocations: 314.8 kB / 0.668 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.148e-05/0.1539, allocations: 3.938 kB / 0.668 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.566e-06/0.1539, allocations: 4 kB / 0.668 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.969e-05/0.1539, allocations: 25.03 kB / 0.668 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1539, allocations: 0 / 0.668 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.43e-05/0.154, allocations: 41.58 kB / 0.6681 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.154, allocations: 8 kB / 0.6681 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.154, allocations: 0 / 0.6681 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.154, allocations: 0 / 0.6681 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.1542, allocations: 15.98 kB / 0.6681 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003423/0.1545, allocations: 0.5822 MB / 0.6687 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.758e-05/0.1546, allocations: 0 / 0.6687 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.1546, allocations: 3.938 kB / 0.6687 GB, free: 1.406 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 7.398e-05/0.1546, allocations: 110.5 kB / 0.6688 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-06/0.1547, allocations: 3.953 kB / 0.6688 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.806e-05/0.1548, allocations: 52.73 kB / 0.6688 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1548, allocations: 4.125 kB / 0.6688 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1548, allocations: 0 / 0.6688 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.1548, allocations: 0 / 0.6688 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.822e-05/0.1549, allocations: 157.6 kB / 0.669 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1549, allocations: 0 / 0.669 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.453e-05/0.155, allocations: 11.98 kB / 0.669 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.155, allocations: 0 / 0.669 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.155, allocations: 0 / 0.669 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002873/0.1553, allocations: 0.5937 MB / 0.6696 GB, free: 396 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1553, allocations: 0 / 0.6696 GB, free: 396 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.271e-05/0.1554, allocations: 65.16 kB / 0.6696 GB, free: 312 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.158e-05/0.1554, allocations: 81.05 kB / 0.6697 GB, free: 212 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.1554, allocations: 3.938 kB / 0.6697 GB, free: 208 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.423e-05/0.1555, allocations: 0 / 0.6697 GB, free: 208 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.1555, allocations: 4 kB / 0.6697 GB, free: 204 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.1555, allocations: 128 / 0.6697 GB, free: 204 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.174e-05/0.1555, allocations: 83.28 kB / 0.6698 GB, free: 120 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1555, allocations: 3.938 kB / 0.6698 GB, free: 116 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000191/0.1557, allocations: 8 kB / 0.6698 GB, free: 108 kB / 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.0003981/0.1561, allocations: 0.6241 MB / 0.6704 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001617/0.1563, allocations: 23.98 kB / 0.6705 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.1563, allocations: 0 / 0.6705 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 9.601e-05/0.1564, allocations: 15.92 kB / 0.6705 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.1566, allocations: 5.688 kB / 0.6705 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004508/0.157, allocations: 135.5 kB / 0.6706 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.1573, allocations: 0.6769 MB / 0.6713 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.573e-05/0.1573, allocations: 0 / 0.6713 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.589e-05/0.1574, allocations: 11.42 kB / 0.6713 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of SimCode: time 2.8e-07/0.1574, allocations: 0 / 0.6713 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.1746, allocations: 1.375 MB / 0.6726 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.83, allocations: 10.22 kB / 0.6726 GB, free: 13.32 MB / 0.5137 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)