Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_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.004833/0.004833, allocations: 100 kB / 15.73 MB, free: 6.008 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.001343/0.001343, allocations: 193.3 kB / 16.67 MB, free: 5.926 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00233/0.00233, allocations: 283.8 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9501/0.9501, allocations: 169.2 MB / 0.4983 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002668/0.002668, allocations: 95.84 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.3956, allocations: 86.98 MB / 0.7659 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002183/0.3978, allocations: 1.241 MB / 0.7671 GB, free: 2.613 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009885/0.3988, allocations: 0.5895 MB / 0.7677 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.281e-05/0.3988, allocations: 0 / 0.7677 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.75e-05/0.3988, allocations: 0 / 0.7677 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.821e-05/0.3989, allocations: 3.938 kB / 0.7677 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004887/0.3994, allocations: 139.4 kB / 0.7678 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.818e-05/0.3994, allocations: 7.938 kB / 0.7678 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.844e-05/0.3995, allocations: 7.938 kB / 0.7678 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.467e-05/0.3995, allocations: 0 / 0.7678 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.676e-05/0.3995, allocations: 7.984 kB / 0.7679 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.059e-05/0.3996, allocations: 4 kB / 0.7679 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005328/0.4001, allocations: 343.4 kB / 0.7682 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.205e-06/0.4001, allocations: 0 / 0.7682 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.058e-05/0.4001, allocations: 7.938 kB / 0.7682 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002496/0.4004, allocations: 144.6 kB / 0.7683 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.4004, allocations: 0 / 0.7683 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.437e-06/0.4004, allocations: 0 / 0.7683 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.4004, allocations: 3.938 kB / 0.7683 GB, free: 1.375 MB / 0.5294 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.0004052/0.4008, allocations: 355.1 kB / 0.7687 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.4009, allocations: 16.03 kB / 0.7687 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.4009, allocations: 30.75 kB / 0.7687 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.802e-05/0.4009, allocations: 4.875 kB / 0.7687 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.4011, allocations: 164.4 kB / 0.7689 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.4011, allocations: 4.375 kB / 0.7689 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.203e-06/0.4011, allocations: 8.359 kB / 0.7689 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.503e-05/0.4012, allocations: 26.27 kB / 0.7689 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.4012, allocations: 7.938 kB / 0.7689 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.4012, allocations: 4 kB / 0.7689 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-06/0.4012, allocations: 4 kB / 0.7689 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.397e-05/0.4012, allocations: 4 kB / 0.7689 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001553/0.4014, allocations: 149.7 kB / 0.7691 GB, free: 472 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.146e-05/0.4015, allocations: 26.55 kB / 0.7691 GB, free: 436 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.878e-05/0.4015, allocations: 8.859 kB / 0.7691 GB, free: 424 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.4015, allocations: 0 / 0.7691 GB, free: 424 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.4015, allocations: 38.62 kB / 0.7691 GB, free: 376 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.4015, allocations: 0 / 0.7691 GB, free: 376 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001416/0.4017, allocations: 45.62 kB / 0.7692 GB, free: 324 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.4017, allocations: 55.34 kB / 0.7692 GB, free: 256 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.764e-05/0.4018, allocations: 93.86 kB / 0.7693 GB, free: 152 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.4018, allocations: 25.7 kB / 0.7694 GB, free: 120 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.4019, allocations: 80.14 kB / 0.7694 GB, free: 36 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.4019, allocations: 11.92 kB / 0.7694 GB, free: 24 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.568e-05/0.402, allocations: 21.97 kB / 0.7695 GB, free: 16 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.4021, allocations: 310.8 kB / 0.7698 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.38e-05/0.4021, allocations: 4 kB / 0.7698 GB, free: 15.68 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.695e-06/0.4021, allocations: 0 / 0.7698 GB, free: 15.68 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.21e-05/0.4022, allocations: 12.86 kB / 0.7698 GB, free: 15.66 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.4022, allocations: 7.938 kB / 0.7698 GB, free: 15.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.398e-05/0.4022, allocations: 37.69 kB / 0.7698 GB, free: 15.61 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.4023, allocations: 11.88 kB / 0.7698 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.4023, allocations: 4.094 kB / 0.7698 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.4023, allocations: 0 / 0.7698 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.4024, allocations: 15.98 kB / 0.7699 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000415/0.4029, allocations: 0.5821 MB / 0.7704 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.682e-05/0.4029, allocations: 0 / 0.7704 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.4029, allocations: 4.031 kB / 0.7704 GB, free: 14.97 MB / 0.545 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.833e-05/0.403, allocations: 120.2 kB / 0.7705 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.572e-06/0.403, allocations: 0 / 0.7705 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.924e-05/0.4031, allocations: 48.75 kB / 0.7706 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.4031, allocations: 0 / 0.7706 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.4031, allocations: 4 kB / 0.7706 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.4031, allocations: 0 / 0.7706 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.4033, allocations: 153.6 kB / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.4033, allocations: 0 / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.922e-05/0.4033, allocations: 8 kB / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-06/0.4034, allocations: 8.031 kB / 0.7708 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.4034, allocations: 0 / 0.7708 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003546/0.4037, allocations: 0.5821 MB / 0.7713 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4037, allocations: 3.938 kB / 0.7713 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.691e-05/0.4038, allocations: 69.16 kB / 0.7714 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.064e-05/0.4039, allocations: 81.09 kB / 0.7715 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.658e-06/0.4039, allocations: 4 kB / 0.7715 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.561e-05/0.4039, allocations: 4 kB / 0.7715 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.124e-05/0.4039, allocations: 3.938 kB / 0.7715 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.4039, allocations: 0 / 0.7715 GB, free: 13.77 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.295e-05/0.404, allocations: 83.28 kB / 0.7716 GB, free: 13.69 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/0.404, allocations: 0 / 0.7716 GB, free: 13.69 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001879/0.4042, allocations: 11.94 kB / 0.7716 GB, free: 13.68 MB / 0.545 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.0004465/0.4046, allocations: 0.6125 MB / 0.7722 GB, free: 13.04 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001568/0.4048, allocations: 19.98 kB / 0.7722 GB, free: 13.02 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4048, allocations: 0 / 0.7722 GB, free: 13.02 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.936e-05/0.4049, allocations: 24.02 kB / 0.7722 GB, free: 12.99 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.4051, allocations: 5.484 kB / 0.7722 GB, free: 12.99 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004119/0.4055, allocations: 131.7 kB / 0.7723 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.4058, allocations: 0.6805 MB / 0.773 GB, free: 12.11 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.393e-05/0.4058, allocations: 0 / 0.773 GB, free: 12.11 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.07e-05/0.4058, allocations: 7.438 kB / 0.773 GB, free: 12.1 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4058, allocations: 8 kB / 0.773 GB, free: 12.09 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.4287, allocations: 1.405 MB / 0.7744 GB, free: 10.92 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.08, allocations: 8.641 kB / 0.7744 GB, free: 10.92 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)