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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 110.7 kB / 16.46 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 216 kB / 19.43 MB, free: 3.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 230.6 MB / 252.8 MB, free: 8.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002438/0.002438, allocations: 282.4 kB / 309.1 MB, free: 3.984 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.196/1.196, allocations: 180.9 MB / 0.5333 GB, free: 13.86 MB / 382.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002796/0.002796, allocations: 106.8 kB / 0.7342 GB, free: 28.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1824, allocations: 95.34 MB / 0.8274 GB, free: 9.898 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002514/0.1849, allocations: 1.269 MB / 0.8286 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001079/0.1859, allocations: 0.5974 MB / 0.8292 GB, free: 8.02 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.37e-05/0.186, allocations: 0 / 0.8292 GB, free: 8.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.186, allocations: 0 / 0.8292 GB, free: 8.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.513e-05/0.186, allocations: 4 kB / 0.8292 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005743/0.1866, allocations: 139.4 kB / 0.8293 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 4.935e-05/0.1867, allocations: 11.94 kB / 0.8293 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.304e-05/0.1867, allocations: 0 / 0.8293 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 2.043e-05/0.1867, allocations: 7.984 kB / 0.8293 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.506e-05/0.1868, allocations: 7.938 kB / 0.8293 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.1868, allocations: 4 kB / 0.8293 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005488/0.1873, allocations: 351.2 kB / 0.8297 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.118e-05/0.1873, allocations: 0 / 0.8297 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.269e-05/0.1874, allocations: 4 kB / 0.8297 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.1876, allocations: 139.8 kB / 0.8298 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1876, allocations: 0 / 0.8298 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.747e-06/0.1876, allocations: 4 kB / 0.8298 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.1876, allocations: 0 / 0.8298 GB, free: 7.359 MB / 0.5762 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.000444/0.1881, allocations: 347.1 kB / 0.8301 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1881, allocations: 12.62 kB / 0.8302 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.82e-05/0.1882, allocations: 34.75 kB / 0.8302 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.1882, allocations: 8.922 kB / 0.8302 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.1883, allocations: 172.3 kB / 0.8304 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.1883, allocations: 384 / 0.8304 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.103e-06/0.1883, allocations: 384 / 0.8304 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.836e-05/0.1884, allocations: 30.27 kB / 0.8304 GB, free: 6.664 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1884, allocations: 7.875 kB / 0.8304 GB, free: 6.656 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.813e-06/0.1884, allocations: 0 / 0.8304 GB, free: 6.656 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.1885, allocations: 4 kB / 0.8304 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.876e-05/0.1885, allocations: 7.984 kB / 0.8304 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001729/0.1887, allocations: 149.7 kB / 0.8306 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.163e-05/0.1887, allocations: 22.58 kB / 0.8306 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.296e-05/0.1887, allocations: 8.844 kB / 0.8306 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.1887, allocations: 64 / 0.8306 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.1888, allocations: 34.56 kB / 0.8306 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.1888, allocations: 7.938 kB / 0.8306 GB, free: 6.355 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0001524/0.1889, allocations: 45.58 kB / 0.8307 GB, free: 6.305 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.189, allocations: 51.41 kB / 0.8307 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.446e-05/0.189, allocations: 97.84 kB / 0.8308 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.1891, allocations: 25.7 kB / 0.8308 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.485e-05/0.1891, allocations: 80.14 kB / 0.8309 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.1891, allocations: 11.95 kB / 0.8309 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.1891, allocations: 13.97 kB / 0.8309 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.1893, allocations: 310.8 kB / 0.8312 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.353e-05/0.1893, allocations: 4 kB / 0.8312 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.788e-06/0.1893, allocations: 4 kB / 0.8312 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.606e-05/0.1893, allocations: 20.78 kB / 0.8313 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1893, allocations: 0 / 0.8313 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.186e-05/0.1894, allocations: 37.7 kB / 0.8313 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.1894, allocations: 7.938 kB / 0.8313 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.1894, allocations: 4.094 kB / 0.8313 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.1895, allocations: 0 / 0.8313 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.1896, allocations: 11.98 kB / 0.8313 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004127/0.19, allocations: 0.5859 MB / 0.8319 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.19e-05/0.19, allocations: 4.031 kB / 0.8319 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.19, allocations: 0 / 0.8319 GB, free: 4.969 MB / 0.5762 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 9.234e-05/0.1901, allocations: 113.9 kB / 0.832 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-06/0.1901, allocations: 0 / 0.832 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.1903, allocations: 56.69 kB / 0.8321 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.1903, allocations: 4 kB / 0.8321 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1903, allocations: 0 / 0.8321 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1903, allocations: 0 / 0.8321 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.1904, allocations: 157.6 kB / 0.8322 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1904, allocations: 0 / 0.8322 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.059e-05/0.1905, allocations: 11.98 kB / 0.8322 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1905, allocations: 4.031 kB / 0.8322 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.1905, allocations: 0 / 0.8322 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003696/0.1909, allocations: 0.5821 MB / 0.8328 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-05/0.1909, allocations: 7.938 kB / 0.8328 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.959e-05/0.1909, allocations: 65.25 kB / 0.8329 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.706e-05/0.191, allocations: 81.11 kB / 0.8329 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.191, allocations: 3.938 kB / 0.8329 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.36e-05/0.191, allocations: 0 / 0.8329 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.191, allocations: 7.875 kB / 0.833 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.191, allocations: 4 kB / 0.833 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.662e-05/0.1911, allocations: 79.28 kB / 0.833 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1911, allocations: 0 / 0.833 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001889/0.1913, allocations: 8 kB / 0.833 GB, free: 3.672 MB / 0.5762 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.0004712/0.1917, allocations: 0.6125 MB / 0.8336 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001646/0.1919, allocations: 19.98 kB / 0.8337 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1919, allocations: 3.938 kB / 0.8337 GB, free: 3.004 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.192, allocations: 20.08 kB / 0.8337 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001351/0.1921, allocations: 3.938 kB / 0.8337 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000456/0.1926, allocations: 129.6 kB / 0.8338 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.1929, allocations: 0.6767 MB / 0.8345 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.504e-05/0.1929, allocations: 0 / 0.8345 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.418e-05/0.193, allocations: 11.42 kB / 0.8345 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of SimCode: time 3.81e-07/0.193, allocations: 8.062 kB / 0.8345 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03163/0.2246, allocations: 1.416 MB / 0.8359 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.51, allocations: 9.188 kB / 0.8359 GB, free: 0.9062 MB / 0.5762 GB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.644479230977595] Failed to read output from testmodel.py, exit status != 0: 11.60007313080132 11.627588654 11.434972605 Calling exit ...