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.001552/0.001552, allocations: 108 kB / 15.6 MB, free: 132 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.001519/0.001519, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002439/0.002439, allocations: 286.7 kB / 290.7 MB, free: 2.035 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.973/0.973, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002613/0.002613, allocations: 99.95 kB / 0.5953 GB, free: 27.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1447, allocations: 86.99 MB / 0.6803 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002525/0.1472, allocations: 1.231 MB / 0.6815 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.1483, allocations: 0.5901 MB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.713e-05/0.1483, allocations: 0.875 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.807e-05/0.1484, allocations: 0 / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.254e-05/0.1484, allocations: 4.562 kB / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005112/0.1489, allocations: 140.8 kB / 0.6822 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.162e-05/0.149, allocations: 15.92 kB / 0.6822 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.326e-05/0.149, allocations: 8.656 kB / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.539e-05/0.1491, allocations: 0 / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.781e-05/0.1491, allocations: 11.94 kB / 0.6822 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.328e-06/0.1491, allocations: 0 / 0.6822 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004973/0.1496, allocations: 343.4 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.312e-05/0.1496, allocations: 0 / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.644e-05/0.1497, allocations: 3.938 kB / 0.6826 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.1499, allocations: 140 kB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1499, allocations: 0 / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1499, allocations: 0 / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1499, allocations: 0 / 0.6827 GB, free: 14.09 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.00039/0.1503, allocations: 355.4 kB / 0.6831 GB, free: 13.69 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.1504, allocations: 16.03 kB / 0.6831 GB, free: 13.67 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.1504, allocations: 34.69 kB / 0.6831 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.017e-05/0.1504, allocations: 0.9375 kB / 0.6831 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.1505, allocations: 160.4 kB / 0.6833 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1506, allocations: 4.375 kB / 0.6833 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.601e-06/0.1506, allocations: 384 / 0.6833 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.503e-05/0.1507, allocations: 42.23 kB / 0.6833 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1507, allocations: 3.938 kB / 0.6833 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-06/0.1507, allocations: 0 / 0.6833 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.1507, allocations: 4 kB / 0.6833 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.494e-05/0.1507, allocations: 8 kB / 0.6833 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.1509, allocations: 153.6 kB / 0.6835 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.964e-05/0.151, allocations: 26.55 kB / 0.6835 GB, free: 13.13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.235e-05/0.151, allocations: 4.859 kB / 0.6835 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.151, allocations: 3.938 kB / 0.6835 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.151, allocations: 38.62 kB / 0.6835 GB, free: 13.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/0.151, allocations: 0 / 0.6835 GB, free: 13.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001373/0.1512, allocations: 45.62 kB / 0.6836 GB, free: 13.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.1512, allocations: 55.34 kB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.149e-05/0.1513, allocations: 97.86 kB / 0.6837 GB, free: 12.85 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.1513, allocations: 25.7 kB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.728e-05/0.1514, allocations: 84.12 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.053e-05/0.1514, allocations: 3.906 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.528e-05/0.1514, allocations: 21.91 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1516, allocations: 318.8 kB / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.384e-05/0.1516, allocations: 4 kB / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.103e-06/0.1516, allocations: 0 / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.231e-05/0.1516, allocations: 16.86 kB / 0.6842 GB, free: 12.36 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1516, allocations: 0 / 0.6842 GB, free: 12.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.268e-05/0.1517, allocations: 37.64 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1517, allocations: 12.02 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.1517, allocations: 4 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.1518, allocations: 0 / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.1519, allocations: 8 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003757/0.1523, allocations: 0.5782 MB / 0.6848 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.118e-05/0.1523, allocations: 3.984 kB / 0.6848 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.249e-06/0.1523, allocations: 4.031 kB / 0.6848 GB, free: 11.68 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 8.359e-05/0.1524, allocations: 119.2 kB / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-06/0.1524, allocations: 0 / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.1525, allocations: 48.75 kB / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1525, allocations: 4 kB / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1526, allocations: 0 / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.1526, allocations: 0 / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.1527, allocations: 149.6 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1527, allocations: 4 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.27e-05/0.1528, allocations: 8.016 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1528, allocations: 8 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.1528, allocations: 0 / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003206/0.1531, allocations: 0.5859 MB / 0.6857 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/0.1531, allocations: 7.875 kB / 0.6857 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.503e-05/0.1532, allocations: 69.19 kB / 0.6858 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.104e-05/0.1532, allocations: 81.11 kB / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.919e-06/0.1533, allocations: 0 / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.324e-05/0.1533, allocations: 0 / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.315e-05/0.1533, allocations: 7.922 kB / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.1533, allocations: 4 kB / 0.6859 GB, free: 10.47 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.338e-05/0.1534, allocations: 79.28 kB / 0.6859 GB, free: 10.39 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1534, allocations: 0 / 0.6859 GB, free: 10.39 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001847/0.1536, allocations: 8 kB / 0.6859 GB, free: 10.39 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.0004008/0.154, allocations: 0.6164 MB / 0.6866 GB, free: 9.738 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001468/0.1541, allocations: 15.98 kB / 0.6866 GB, free: 9.723 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1541, allocations: 0 / 0.6866 GB, free: 9.723 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.558e-05/0.1542, allocations: 20.08 kB / 0.6866 GB, free: 9.703 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.1544, allocations: 7.938 kB / 0.6866 GB, free: 9.695 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004/0.1548, allocations: 131.7 kB / 0.6867 GB, free: 9.527 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.155, allocations: 0.6768 MB / 0.6874 GB, free: 8.824 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.313e-05/0.1551, allocations: 0 / 0.6874 GB, free: 8.824 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.327e-05/0.1551, allocations: 15.5 kB / 0.6874 GB, free: 8.809 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1551, allocations: 4 kB / 0.6874 GB, free: 8.805 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.1771, allocations: 1.36 MB / 0.6887 GB, free: 7.656 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.79, allocations: 3.672 kB / 0.6887 GB, free: 7.656 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)