Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="IBPSA_latest_IBPSA_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.001644/0.001644, allocations: 106.1 kB / 16.27 MB, free: 6.395 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.001733/0.001733, allocations: 189.2 kB / 17.2 MB, free: 5.938 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.293/1.293, allocations: 222.9 MB / 240.9 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7444/0.7444, allocations: 122.9 MB / 413.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 59.91 kB / 0.4912 GB, free: 7.363 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3309, allocations: 77.93 MB / 0.5673 GB, free: 32.73 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002106/0.333, allocations: 1.24 MB / 0.5685 GB, free: 31.87 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007882/0.3338, allocations: 0.5845 MB / 0.5691 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.125e-05/0.3339, allocations: 1.281 kB / 0.5691 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.313e-05/0.3339, allocations: 0.7969 kB / 0.5691 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.61e-05/0.3339, allocations: 0.6875 kB / 0.5691 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004386/0.3344, allocations: 141 kB / 0.5692 GB, free: 31.4 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.98e-05/0.3344, allocations: 11.84 kB / 0.5692 GB, free: 31.4 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.562e-05/0.3345, allocations: 5.094 kB / 0.5692 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.588e-05/0.3345, allocations: 2.312 kB / 0.5692 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.549e-05/0.3345, allocations: 7.266 kB / 0.5692 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.457e-06/0.3345, allocations: 2.062 kB / 0.5692 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004806/0.335, allocations: 341.3 kB / 0.5696 GB, free: 31.29 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.868e-06/0.335, allocations: 8.125 kB / 0.5696 GB, free: 31.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.879e-05/0.3351, allocations: 6.219 kB / 0.5696 GB, free: 31.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.3353, allocations: 149.2 kB / 0.5697 GB, free: 31.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.3353, allocations: 1.094 kB / 0.5697 GB, free: 31.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3353, allocations: 0 / 0.5697 GB, free: 31.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.3353, allocations: 0 / 0.5697 GB, free: 31.23 MB / 446.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.0002747/0.3356, allocations: 345.5 kB / 0.57 GB, free: 30.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.3357, allocations: 11.19 kB / 0.5701 GB, free: 30.86 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.067e-05/0.3357, allocations: 30.75 kB / 0.5701 GB, free: 30.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.136e-05/0.3357, allocations: 11.11 kB / 0.5701 GB, free: 30.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.503e-05/0.3358, allocations: 162.7 kB / 0.5703 GB, free: 30.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.767e-06/0.3358, allocations: 1.281 kB / 0.5703 GB, free: 30.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-06/0.3358, allocations: 2.078 kB / 0.5703 GB, free: 30.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.138e-05/0.3359, allocations: 36.16 kB / 0.5703 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.3359, allocations: 5.156 kB / 0.5703 GB, free: 30.58 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-06/0.3359, allocations: 0.5625 kB / 0.5703 GB, free: 30.58 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3359, allocations: 1.281 kB / 0.5703 GB, free: 30.58 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.265e-05/0.3359, allocations: 4.469 kB / 0.5703 GB, free: 30.58 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.437e-05/0.336, allocations: 150.3 kB / 0.5704 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.83e-05/0.3361, allocations: 29.91 kB / 0.5705 GB, free: 30.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.616e-05/0.3361, allocations: 8.516 kB / 0.5705 GB, free: 30.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.3361, allocations: 1.906 kB / 0.5705 GB, free: 30.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.39e-05/0.3362, allocations: 36.5 kB / 0.5705 GB, free: 30.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 9.41e-07/0.3362, allocations: 0.5 kB / 0.5705 GB, free: 30.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.000117/0.3363, allocations: 46.19 kB / 0.5706 GB, free: 30.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.906e-05/0.3363, allocations: 53.27 kB / 0.5706 GB, free: 30.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.777e-05/0.3364, allocations: 93.61 kB / 0.5707 GB, free: 30.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.954e-06/0.3364, allocations: 26.86 kB / 0.5707 GB, free: 30.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.26e-05/0.3364, allocations: 82.27 kB / 0.5708 GB, free: 30 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.3364, allocations: 14.02 kB / 0.5708 GB, free: 29.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.327e-05/0.3364, allocations: 13.55 kB / 0.5708 GB, free: 29.97 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.767e-05/0.3365, allocations: 313 kB / 0.5711 GB, free: 29.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.306e-05/0.3365, allocations: 2.062 kB / 0.5711 GB, free: 29.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.927e-06/0.3365, allocations: 7.094 kB / 0.5711 GB, free: 29.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.071e-05/0.3366, allocations: 16.95 kB / 0.5712 GB, free: 29.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3366, allocations: 0 / 0.5712 GB, free: 29.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.354e-05/0.3366, allocations: 44.02 kB / 0.5712 GB, free: 29.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.3366, allocations: 9.531 kB / 0.5712 GB, free: 29.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3367, allocations: 1.312 kB / 0.5712 GB, free: 29.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.3367, allocations: 4.5 kB / 0.5712 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.3368, allocations: 11.19 kB / 0.5712 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002776/0.3371, allocations: 0.5848 MB / 0.5718 GB, free: 29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.677e-05/0.3372, allocations: 0.5 kB / 0.5718 GB, free: 29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.3372, allocations: 1.594 kB / 0.5718 GB, free: 29 MB / 446.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 6.02e-05/0.3372, allocations: 118.5 kB / 0.5719 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-06/0.3373, allocations: 4.688 kB / 0.5719 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.3374, allocations: 44.91 kB / 0.572 GB, free: 28.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.3374, allocations: 0.8438 kB / 0.572 GB, free: 28.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3374, allocations: 0.6875 kB / 0.572 GB, free: 28.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3374, allocations: 3.547 kB / 0.572 GB, free: 28.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.546e-05/0.3375, allocations: 155.2 kB / 0.5721 GB, free: 28.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.3375, allocations: 0 / 0.5721 GB, free: 28.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.086e-05/0.3376, allocations: 13.33 kB / 0.5721 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.3376, allocations: 2.438 kB / 0.5721 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.3376, allocations: 1.375 kB / 0.5721 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001968/0.3378, allocations: 0.5818 MB / 0.5727 GB, free: 28.06 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3378, allocations: 3.938 kB / 0.5727 GB, free: 28.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.71e-05/0.3379, allocations: 61.38 kB / 0.5728 GB, free: 27.99 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.765e-05/0.3379, allocations: 80.02 kB / 0.5728 GB, free: 27.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.3379, allocations: 4.547 kB / 0.5728 GB, free: 27.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.355e-05/0.3379, allocations: 4.094 kB / 0.5728 GB, free: 27.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.707e-05/0.338, allocations: 5.734 kB / 0.5728 GB, free: 27.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-06/0.338, allocations: 0.9375 kB / 0.5728 GB, free: 27.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.168e-05/0.338, allocations: 81.34 kB / 0.5729 GB, free: 27.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.338, allocations: 0 / 0.5729 GB, free: 27.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002094/0.3382, allocations: 12.39 kB / 0.5729 GB, free: 27.8 MB / 446.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.0003334/0.3386, allocations: 0.603 MB / 0.5735 GB, free: 27.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001659/0.3387, allocations: 26.41 kB / 0.5735 GB, free: 27.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3387, allocations: 0 / 0.5735 GB, free: 27.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.624e-05/0.3388, allocations: 12.83 kB / 0.5736 GB, free: 27.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001406/0.339, allocations: 7.734 kB / 0.5736 GB, free: 27.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004216/0.3394, allocations: 147.3 kB / 0.5737 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.3395, allocations: 0.674 MB / 0.5744 GB, free: 26.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.666e-05/0.3396, allocations: 1.812 kB / 0.5744 GB, free: 26.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.069e-05/0.3396, allocations: 9.469 kB / 0.5744 GB, free: 26.34 MB / 446.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3396, allocations: 0 / 0.5744 GB, free: 26.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01821/0.3578, allocations: 1.342 MB / 0.5757 GB, free: 26.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.64, allocations: 12.62 kB / 0.5757 GB, free: 26 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)