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.007743/0.007743, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.00168/0.00168, allocations: 196.1 kB / 16.68 MB, free: 5.934 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8112/0.8112, allocations: 132.2 MB / 422.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.69 kB / 0.5809 GB, free: 24.1 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1495, allocations: 80.2 MB / 0.6592 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002403/0.152, allocations: 1.24 MB / 0.6604 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00101/0.153, allocations: 0.6059 MB / 0.661 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.547e-05/0.153, allocations: 0 / 0.661 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.919e-05/0.1531, allocations: 0 / 0.661 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.833e-05/0.1531, allocations: 0 / 0.661 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006001/0.1537, allocations: 139.4 kB / 0.6611 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.475e-05/0.1538, allocations: 11.94 kB / 0.6611 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.731e-05/0.1539, allocations: 11.98 kB / 0.6611 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.736e-05/0.1539, allocations: 0 / 0.6611 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.616e-05/0.1539, allocations: 11.92 kB / 0.6611 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.154, allocations: 0 / 0.6611 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005375/0.1545, allocations: 339.3 kB / 0.6615 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.119e-05/0.1545, allocations: 4 kB / 0.6615 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.447e-05/0.1546, allocations: 7.984 kB / 0.6615 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.1549, allocations: 139.8 kB / 0.6616 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1549, allocations: 0 / 0.6616 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1549, allocations: 0 / 0.6616 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.1549, allocations: 0 / 0.6616 GB, free: 8.258 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.0004046/0.1553, allocations: 355.1 kB / 0.662 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.1553, allocations: 12.03 kB / 0.662 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.258e-05/0.1554, allocations: 34.73 kB / 0.662 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.043e-05/0.1554, allocations: 4.891 kB / 0.662 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.1556, allocations: 164.4 kB / 0.6622 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.1556, allocations: 384 / 0.6622 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.1556, allocations: 8.125 kB / 0.6622 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001118/0.1557, allocations: 29.7 kB / 0.6622 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1557, allocations: 4 kB / 0.6622 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.1557, allocations: 4 kB / 0.6622 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1558, allocations: 0 / 0.6622 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.047e-05/0.1558, allocations: 7.922 kB / 0.6622 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001807/0.156, allocations: 149.7 kB / 0.6624 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.451e-05/0.156, allocations: 18.61 kB / 0.6624 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.772e-05/0.1561, allocations: 20.84 kB / 0.6624 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.1561, allocations: 4 kB / 0.6624 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.1561, allocations: 30.56 kB / 0.6624 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 3.016e-06/0.1561, allocations: 7.938 kB / 0.6624 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001612/0.1563, allocations: 41.58 kB / 0.6625 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.1564, allocations: 55.41 kB / 0.6625 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.648e-05/0.1565, allocations: 97.84 kB / 0.6626 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.1565, allocations: 25.7 kB / 0.6626 GB, free: 7 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.563e-05/0.1565, allocations: 84.39 kB / 0.6627 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.1565, allocations: 3.953 kB / 0.6627 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.1566, allocations: 17.72 kB / 0.6627 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1567, allocations: 310.8 kB / 0.663 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.6e-05/0.1567, allocations: 4 kB / 0.663 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.193e-05/0.1568, allocations: 3.984 kB / 0.6631 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.289e-05/0.1568, allocations: 12.86 kB / 0.6631 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1568, allocations: 4.062 kB / 0.6631 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.358e-05/0.1569, allocations: 49.56 kB / 0.6631 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.1569, allocations: 4 kB / 0.6631 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.1569, allocations: 0 / 0.6631 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.1569, allocations: 0 / 0.6631 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.1571, allocations: 11.98 kB / 0.6631 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004371/0.1576, allocations: 0.5821 MB / 0.6637 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.436e-05/0.1576, allocations: 8.078 kB / 0.6637 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.1576, allocations: 7.969 kB / 0.6637 GB, free: 5.855 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 8.161e-05/0.1577, allocations: 110.7 kB / 0.6638 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-06/0.1577, allocations: 0 / 0.6638 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001198/0.1578, allocations: 44.81 kB / 0.6639 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.1578, allocations: 0 / 0.6639 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1579, allocations: 0 / 0.6639 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1579, allocations: 4 kB / 0.6639 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.158, allocations: 157.6 kB / 0.664 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.158, allocations: 0 / 0.664 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.728e-05/0.1581, allocations: 11.98 kB / 0.664 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1581, allocations: 0 / 0.664 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.1581, allocations: 4 kB / 0.664 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003695/0.1585, allocations: 0.5898 MB / 0.6646 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1585, allocations: 0 / 0.6646 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.782e-05/0.1586, allocations: 65.25 kB / 0.6647 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.164e-05/0.1587, allocations: 85.05 kB / 0.6648 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.1587, allocations: 7.938 kB / 0.6648 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.509e-05/0.1587, allocations: 3.938 kB / 0.6648 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.853e-05/0.1587, allocations: 0 / 0.6648 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.1587, allocations: 0 / 0.6648 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.13e-05/0.1588, allocations: 79.28 kB / 0.6648 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1588, allocations: 4.125 kB / 0.6648 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002151/0.159, allocations: 15.92 kB / 0.6649 GB, free: 4.555 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.0004661/0.1595, allocations: 0.6123 MB / 0.6655 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001972/0.1597, allocations: 24.02 kB / 0.6655 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1597, allocations: 0 / 0.6655 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.612e-05/0.1598, allocations: 19.92 kB / 0.6655 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.16, allocations: 5.719 kB / 0.6655 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005439/0.1605, allocations: 135.6 kB / 0.6656 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.1608, allocations: 0.6729 MB / 0.6663 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.43e-05/0.1608, allocations: 8.109 kB / 0.6663 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.984e-05/0.1609, allocations: 7.438 kB / 0.6663 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of SimCode: time 9.91e-07/0.1609, allocations: 0 / 0.6663 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.1804, allocations: 1.375 MB / 0.6676 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.24, allocations: 10.31 kB / 0.6677 GB, free: 1.809 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)