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.00125/0.00125, 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.001378/0.001378, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.353/1.353, 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.002406/0.002406, allocations: 283 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.031/1.031, allocations: 178.6 MB / 0.5073 GB, free: 4.605 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002602/0.002602, allocations: 100.3 kB / 0.6065 GB, free: 24.83 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1462, allocations: 89.14 MB / 0.6936 GB, free: 4.234 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.00239/0.1487, allocations: 1.245 MB / 0.6948 GB, free: 2.988 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.1497, allocations: 0.5981 MB / 0.6954 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.118e-05/0.1497, allocations: 0 / 0.6954 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.1498, allocations: 3.938 kB / 0.6954 GB, free: 2.387 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.216e-05/0.1498, allocations: 3.984 kB / 0.6954 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000474/0.1503, allocations: 133.2 kB / 0.6955 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.636e-05/0.1503, allocations: 19.92 kB / 0.6955 GB, free: 2.234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.542e-05/0.1504, allocations: 4 kB / 0.6956 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.636e-05/0.1504, allocations: 4 kB / 0.6956 GB, free: 2.227 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.586e-05/0.1505, allocations: 7.938 kB / 0.6956 GB, free: 2.219 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.1505, allocations: 3.984 kB / 0.6956 GB, free: 2.215 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000503/0.151, allocations: 343.3 kB / 0.6959 GB, free: 1.879 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.806e-06/0.151, allocations: 0 / 0.6959 GB, free: 1.879 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.02e-05/0.151, allocations: 7.984 kB / 0.6959 GB, free: 1.871 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.1513, allocations: 140 kB / 0.696 GB, free: 1.734 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1513, allocations: 0 / 0.696 GB, free: 1.734 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1513, allocations: 3.938 kB / 0.696 GB, free: 1.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1513, allocations: 4 kB / 0.696 GB, free: 1.727 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.0003921/0.1517, allocations: 351.5 kB / 0.6964 GB, free: 1.332 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.1517, allocations: 12.03 kB / 0.6964 GB, free: 1.32 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.064e-05/0.1518, allocations: 30.75 kB / 0.6964 GB, free: 1.281 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.069e-05/0.1518, allocations: 4.844 kB / 0.6964 GB, free: 1.277 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.1519, allocations: 164.4 kB / 0.6966 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.733e-06/0.1519, allocations: 384 / 0.6966 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.966e-06/0.152, allocations: 384 / 0.6966 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.677e-05/0.1521, allocations: 38.25 kB / 0.6966 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1521, allocations: 3.938 kB / 0.6966 GB, free: 1.031 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.1521, allocations: 0 / 0.6966 GB, free: 1.031 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1521, allocations: 4 kB / 0.6966 GB, free: 1.027 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.713e-05/0.1521, allocations: 7.938 kB / 0.6966 GB, free: 1.02 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001595/0.1523, allocations: 157.6 kB / 0.6968 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.452e-05/0.1523, allocations: 18.58 kB / 0.6968 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.702e-05/0.1524, allocations: 4.922 kB / 0.6968 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.1524, allocations: 4 kB / 0.6968 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.1524, allocations: 38.56 kB / 0.6968 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.1524, allocations: 0 / 0.6968 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001296/0.1526, allocations: 49.5 kB / 0.6969 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.1526, allocations: 55.41 kB / 0.6969 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.812e-05/0.1527, allocations: 93.86 kB / 0.697 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.1527, allocations: 25.7 kB / 0.6971 GB, free: 488 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.155e-05/0.1527, allocations: 80.14 kB / 0.6971 GB, free: 404 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.1528, allocations: 7.906 kB / 0.6971 GB, free: 396 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.1528, allocations: 21.95 kB / 0.6972 GB, free: 368 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1529, allocations: 314.8 kB / 0.6975 GB, free: 44 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.025e-05/0.1529, allocations: 0 / 0.6975 GB, free: 44 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.987e-06/0.1529, allocations: 4 kB / 0.6975 GB, free: 40 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.753e-05/0.153, allocations: 12.86 kB / 0.6975 GB, free: 24 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.153, allocations: 0 / 0.6975 GB, free: 24 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.841e-05/0.1531, allocations: 41.62 kB / 0.6975 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1531, allocations: 8.031 kB / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.1531, allocations: 4 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1531, allocations: 4 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.1533, allocations: 4 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003865/0.1537, allocations: 0.586 MB / 0.6981 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.711e-05/0.1537, allocations: 0 / 0.6981 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-06/0.1537, allocations: 4 kB / 0.6981 GB, free: 15.34 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 7.346e-05/0.1538, allocations: 113.9 kB / 0.6982 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.325e-05/0.1538, allocations: 7.906 kB / 0.6982 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.643e-05/0.1539, allocations: 52.75 kB / 0.6983 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1539, allocations: 0 / 0.6983 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.1539, allocations: 0 / 0.6983 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1539, allocations: 0 / 0.6983 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.154, allocations: 153.6 kB / 0.6984 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.154, allocations: 0 / 0.6984 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.184e-05/0.1541, allocations: 8.031 kB / 0.6984 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1541, allocations: 4 kB / 0.6984 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.1541, allocations: 7.938 kB / 0.6984 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003223/0.1545, allocations: 0.586 MB / 0.699 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1545, allocations: 3.938 kB / 0.699 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.487e-05/0.1546, allocations: 69.25 kB / 0.6991 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.1546, allocations: 77.11 kB / 0.6992 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.109e-05/0.1546, allocations: 3.984 kB / 0.6992 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.376e-05/0.1546, allocations: 0 / 0.6992 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.507e-05/0.1547, allocations: 7.875 kB / 0.6992 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.1547, allocations: 4 kB / 0.6992 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.305e-05/0.1547, allocations: 75.28 kB / 0.6993 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1547, allocations: 0 / 0.6993 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001874/0.1549, allocations: 11.94 kB / 0.6993 GB, free: 14.05 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.000413/0.1553, allocations: 0.6165 MB / 0.6999 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.1555, allocations: 19.98 kB / 0.6999 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1555, allocations: 0 / 0.6999 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.547e-05/0.1556, allocations: 20.03 kB / 0.6999 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.1557, allocations: 8.688 kB / 0.6999 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004054/0.1562, allocations: 135.7 kB / 0.7 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.1564, allocations: 0.6727 MB / 0.7007 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.53e-05/0.1565, allocations: 4 kB / 0.7007 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.942e-05/0.1565, allocations: 11.5 kB / 0.7007 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1565, allocations: 0 / 0.7007 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.1795, allocations: 1.363 MB / 0.702 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/10.88, allocations: 9.656 kB / 0.7021 GB, free: 11.3 MB / 0.4981 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)