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.006308/0.006308, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001213/0.001213, allocations: 202.2 kB / 16.68 MB, free: 5.969 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9734/0.9734, allocations: 135.1 MB / 425.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 71.88 kB / 0.5851 GB, free: 3.824 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.454/0.4556, allocations: 80.91 MB / 0.6642 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002073/0.4577, allocations: 1.254 MB / 0.6654 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008144/0.4586, allocations: 0.5948 MB / 0.666 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.4586, allocations: 0 / 0.666 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.568e-05/0.4586, allocations: 0 / 0.666 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.013e-05/0.4587, allocations: 0 / 0.666 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005039/0.4592, allocations: 139.3 kB / 0.6661 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.27e-05/0.4593, allocations: 17.42 kB / 0.6661 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.456e-05/0.4593, allocations: 9.328 kB / 0.6661 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.939e-05/0.4594, allocations: 2.688 kB / 0.6661 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.988e-05/0.4594, allocations: 5.938 kB / 0.6661 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.4594, allocations: 1.125 kB / 0.6661 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004835/0.4599, allocations: 344.5 kB / 0.6665 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.372e-05/0.4599, allocations: 0 / 0.6665 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.965e-05/0.46, allocations: 2.969 kB / 0.6665 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002722/0.4603, allocations: 144.1 kB / 0.6666 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4603, allocations: 3.938 kB / 0.6666 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.844e-06/0.4603, allocations: 0 / 0.6666 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.4603, allocations: 0 / 0.6666 GB, free: 5.418 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.0003751/0.4607, allocations: 355.4 kB / 0.6669 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.4607, allocations: 9.531 kB / 0.667 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.168e-05/0.4608, allocations: 39.86 kB / 0.667 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.591e-05/0.4608, allocations: 4.891 kB / 0.667 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.297e-05/0.4609, allocations: 161.5 kB / 0.6671 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.4609, allocations: 1.469 kB / 0.6671 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.897e-06/0.4609, allocations: 5.188 kB / 0.6672 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.579e-05/0.461, allocations: 36.92 kB / 0.6672 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.461, allocations: 4 kB / 0.6672 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.4611, allocations: 0 / 0.6672 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.4611, allocations: 5.062 kB / 0.6672 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.576e-05/0.4611, allocations: 6.516 kB / 0.6672 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001225/0.4612, allocations: 148.2 kB / 0.6673 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.617e-05/0.4613, allocations: 19.95 kB / 0.6674 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.12e-05/0.4613, allocations: 19.53 kB / 0.6674 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.4613, allocations: 5.5 kB / 0.6674 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.755e-05/0.4614, allocations: 30.56 kB / 0.6674 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.4614, allocations: 5.344 kB / 0.6674 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001442/0.4615, allocations: 35.05 kB / 0.6675 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.4615, allocations: 51.41 kB / 0.6675 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.342e-05/0.4616, allocations: 100.5 kB / 0.6676 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.975e-06/0.4616, allocations: 25.7 kB / 0.6676 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.695e-05/0.4616, allocations: 85.73 kB / 0.6677 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.68e-05/0.4617, allocations: 5.359 kB / 0.6677 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.4617, allocations: 16.25 kB / 0.6677 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.044e-05/0.4618, allocations: 310.8 kB / 0.668 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.307e-05/0.4618, allocations: 2.469 kB / 0.668 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.839e-06/0.4618, allocations: 5.609 kB / 0.668 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.081e-05/0.4618, allocations: 17.52 kB / 0.668 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4618, allocations: 1.469 kB / 0.668 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.706e-05/0.4619, allocations: 41.48 kB / 0.6681 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.4619, allocations: 7 kB / 0.6681 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.4619, allocations: 1.344 kB / 0.6681 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.462, allocations: 0 / 0.6681 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.4621, allocations: 11.05 kB / 0.6681 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002593/0.4624, allocations: 0.5834 MB / 0.6687 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.898e-05/0.4624, allocations: 8.125 kB / 0.6687 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.4624, allocations: 5.344 kB / 0.6687 GB, free: 3.133 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 5.622e-05/0.4625, allocations: 107.4 kB / 0.6688 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-06/0.4625, allocations: 9.016 kB / 0.6688 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.4626, allocations: 44.06 kB / 0.6688 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.4626, allocations: 5.109 kB / 0.6688 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4626, allocations: 0 / 0.6688 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.4627, allocations: 1.781 kB / 0.6688 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.012e-05/0.4627, allocations: 163.8 kB / 0.669 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4628, allocations: 0 / 0.669 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.18e-05/0.4628, allocations: 15.67 kB / 0.669 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.4628, allocations: 0 / 0.669 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.4629, allocations: 5.344 kB / 0.669 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001916/0.4631, allocations: 0.5862 MB / 0.6696 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4631, allocations: 0 / 0.6696 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.17e-05/0.4631, allocations: 67 kB / 0.6697 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.849e-05/0.4632, allocations: 78.02 kB / 0.6697 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.4632, allocations: 5.156 kB / 0.6697 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.409e-05/0.4632, allocations: 0 / 0.6697 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.4632, allocations: 5.281 kB / 0.6697 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.4632, allocations: 1.406 kB / 0.6697 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.151e-05/0.4632, allocations: 76.47 kB / 0.6698 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4633, allocations: 4.094 kB / 0.6698 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002137/0.4635, allocations: 10.75 kB / 0.6698 GB, free: 1.887 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.0002873/0.4638, allocations: 0.6201 MB / 0.6704 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001762/0.464, allocations: 25.61 kB / 0.6705 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.464, allocations: 0 / 0.6705 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.01e-05/0.464, allocations: 17.67 kB / 0.6705 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001504/0.4642, allocations: 1.031 kB / 0.6705 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004208/0.4646, allocations: 130.2 kB / 0.6706 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.889e-05/0.4647, allocations: 0.6722 MB / 0.6713 GB, free: 416 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.755e-05/0.4648, allocations: 8.109 kB / 0.6713 GB, free: 408 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.433e-05/0.4648, allocations: 8.969 kB / 0.6713 GB, free: 400 kB / 0.4981 GB Notification: Performance of SimCode: time 5.31e-07/0.4648, allocations: 0 / 0.6713 GB, free: 400 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01918/0.484, allocations: 1.374 MB / 0.6726 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.51, allocations: 5.375 kB / 0.6726 GB, free: 15.68 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)