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.001579/0.001578, allocations: 108 kB / 15.61 MB, free: 152 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.001956/0.001956, allocations: 195.4 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.323/2.323, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002484/0.002484, allocations: 279 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.34/1.34, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003812/0.003812, allocations: 102.2 kB / 0.5954 GB, free: 27.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2961, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.004718/0.3008, allocations: 1.239 MB / 0.6815 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.3027, allocations: 0.5882 MB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.36e-05/0.3027, allocations: 3.938 kB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.788e-05/0.3028, allocations: 3.938 kB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.866e-05/0.3029, allocations: 0 / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.3039, allocations: 136.8 kB / 0.6822 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.116e-05/0.304, allocations: 9.062 kB / 0.6822 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.216e-05/0.3041, allocations: 8 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.35e-05/0.3041, allocations: 7.969 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.601e-05/0.3042, allocations: 12.88 kB / 0.6823 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.3042, allocations: 0 / 0.6823 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000986/0.3052, allocations: 339.3 kB / 0.6826 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.079e-05/0.3053, allocations: 11.98 kB / 0.6826 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.971e-05/0.3053, allocations: 0 / 0.6826 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000483/0.3058, allocations: 140 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3059, allocations: 0 / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3059, allocations: 0 / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.3059, allocations: 0 / 0.6827 GB, free: 14.11 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.0005777/0.3065, allocations: 355.4 kB / 0.6831 GB, free: 13.71 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.766e-05/0.3066, allocations: 12.03 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.459e-05/0.3066, allocations: 34.75 kB / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.3067, allocations: 0.9375 kB / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001794/0.3069, allocations: 164.4 kB / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.3069, allocations: 384 / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.3069, allocations: 4.375 kB / 0.6833 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.3071, allocations: 26.27 kB / 0.6833 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.3071, allocations: 7.922 kB / 0.6833 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.3071, allocations: 4 kB / 0.6833 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.3071, allocations: 0 / 0.6833 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.243e-05/0.3072, allocations: 4 kB / 0.6833 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002441/0.3075, allocations: 157.5 kB / 0.6835 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.919e-05/0.3076, allocations: 30.59 kB / 0.6835 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.641e-05/0.3076, allocations: 8.859 kB / 0.6835 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.3077, allocations: 0 / 0.6835 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.3077, allocations: 34.56 kB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.834e-06/0.3077, allocations: 0 / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002247/0.308, allocations: 49.67 kB / 0.6836 GB, free: 13.06 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.308, allocations: 51.41 kB / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.3082, allocations: 97.84 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.3082, allocations: 25.7 kB / 0.6837 GB, free: 12.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.169e-05/0.3083, allocations: 84.14 kB / 0.6838 GB, free: 12.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.712e-05/0.3083, allocations: 3.906 kB / 0.6838 GB, free: 12.77 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/0.3084, allocations: 13.72 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3086, allocations: 311 kB / 0.6841 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.757e-05/0.3086, allocations: 19.92 kB / 0.6842 GB, free: 12.42 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.505e-05/0.3086, allocations: 0 / 0.6842 GB, free: 12.42 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.967e-05/0.3087, allocations: 8.859 kB / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3087, allocations: 0 / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001251/0.3089, allocations: 45.64 kB / 0.6842 GB, free: 12.36 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.3089, allocations: 7.938 kB / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.3089, allocations: 0 / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.3089, allocations: 0 / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.3092, allocations: 16.08 kB / 0.6842 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006062/0.3098, allocations: 0.5782 MB / 0.6848 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.181e-05/0.3099, allocations: 0 / 0.6848 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.3099, allocations: 4.031 kB / 0.6848 GB, free: 11.73 MB / 494.1 MB 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.0001252/0.3101, allocations: 112.7 kB / 0.6849 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.3101, allocations: 3.984 kB / 0.6849 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.3103, allocations: 48.86 kB / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.3103, allocations: 0 / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3103, allocations: 0 / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3103, allocations: 4 kB / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.3105, allocations: 157.5 kB / 0.6851 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3105, allocations: 0 / 0.6851 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.3107, allocations: 11.98 kB / 0.6851 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.767e-06/0.3107, allocations: 4 kB / 0.6851 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.3107, allocations: 4 kB / 0.6851 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004819/0.3112, allocations: 0.5937 MB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.3113, allocations: 3.938 kB / 0.6857 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/0.3114, allocations: 65.14 kB / 0.6858 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.579e-05/0.3115, allocations: 77.11 kB / 0.6858 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.3115, allocations: 4.125 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.936e-05/0.3116, allocations: 8 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.073e-05/0.3116, allocations: 3.938 kB / 0.6859 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.3116, allocations: 0 / 0.6859 GB, free: 10.51 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.292e-05/0.3117, allocations: 83.27 kB / 0.6859 GB, free: 10.43 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3117, allocations: 0 / 0.6859 GB, free: 10.43 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003928/0.3121, allocations: 4 kB / 0.6859 GB, free: 10.43 MB / 494.1 MB 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.0006258/0.3127, allocations: 0.6164 MB / 0.6865 GB, free: 9.777 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002702/0.313, allocations: 23.92 kB / 0.6866 GB, free: 9.754 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.313, allocations: 0 / 0.6866 GB, free: 9.754 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.3132, allocations: 15.98 kB / 0.6866 GB, free: 9.738 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.3135, allocations: 7.875 kB / 0.6866 GB, free: 9.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007523/0.3143, allocations: 135.9 kB / 0.6867 GB, free: 9.559 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.3146, allocations: 0.6768 MB / 0.6874 GB, free: 8.855 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.555e-05/0.3147, allocations: 0 / 0.6874 GB, free: 8.855 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.33e-05/0.3147, allocations: 7.438 kB / 0.6874 GB, free: 8.852 MB / 494.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3147, allocations: 0 / 0.6874 GB, free: 8.852 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0334/0.3481, allocations: 1.366 MB / 0.6887 GB, free: 7.699 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.09/15.44, allocations: 6.688 kB / 0.6887 GB, free: 7.695 MB / 494.1 MB (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)