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.001464/0.001464, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001442/0.001442, allocations: 217.4 kB / 22.25 MB, free: 5.078 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.351/1.351, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.0024/0.0024, allocations: 284 kB / 312.7 MB, free: 2.816 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.152/1.152, allocations: 180.6 MB / 0.5369 GB, free: 13.01 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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.002724/0.002724, allocations: 99.67 kB / 0.7396 GB, free: 28.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1612, allocations: 95.38 MB / 0.8327 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002277/0.1635, allocations: 1.283 MB / 0.834 GB, free: 7.375 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0009676/0.1644, allocations: 0.5936 MB / 0.8346 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.847e-05/0.1644, allocations: 0 / 0.8346 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.877e-05/0.1645, allocations: 3.984 kB / 0.8346 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.778e-05/0.1645, allocations: 7.922 kB / 0.8346 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.165, allocations: 143.4 kB / 0.8347 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 4.528e-05/0.165, allocations: 4 kB / 0.8347 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.184e-05/0.1651, allocations: 4 kB / 0.8347 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.796e-05/0.1651, allocations: 4 kB / 0.8347 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.749e-05/0.1651, allocations: 7.938 kB / 0.8347 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.021e-05/0.1651, allocations: 0 / 0.8347 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005043/0.1656, allocations: 343.3 kB / 0.835 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.005e-06/0.1656, allocations: 0 / 0.835 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 1.943e-05/0.1657, allocations: 8 kB / 0.8351 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002487/0.1659, allocations: 147.8 kB / 0.8352 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1659, allocations: 0 / 0.8352 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.352e-06/0.1659, allocations: 4 kB / 0.8352 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.1659, allocations: 0 / 0.8352 GB, free: 6.117 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.0003822/0.1663, allocations: 274 kB / 0.8355 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1663, allocations: 12.75 kB / 0.8355 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.071e-05/0.1664, allocations: 34.73 kB / 0.8355 GB, free: 5.762 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.178e-05/0.1664, allocations: 8.875 kB / 0.8355 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.694e-05/0.1665, allocations: 102.5 kB / 0.8356 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.1665, allocations: 12.31 kB / 0.8356 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.777e-06/0.1665, allocations: 384 / 0.8356 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.251e-05/0.1666, allocations: 34.27 kB / 0.8357 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1666, allocations: 3.938 kB / 0.8357 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-06/0.1666, allocations: 0 / 0.8357 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.1666, allocations: 0 / 0.8357 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.494e-05/0.1666, allocations: 7.984 kB / 0.8357 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001611/0.1668, allocations: 120.7 kB / 0.8358 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.94e-05/0.1669, allocations: 30.55 kB / 0.8358 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.967e-05/0.1669, allocations: 12.84 kB / 0.8358 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.1669, allocations: 3.984 kB / 0.8358 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.1669, allocations: 38.56 kB / 0.8359 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 9.01e-07/0.1669, allocations: 0 / 0.8359 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0001308/0.1671, allocations: 41.64 kB / 0.8359 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.1671, allocations: 51.41 kB / 0.836 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.536e-05/0.1672, allocations: 97.97 kB / 0.836 GB, free: 5.086 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.1672, allocations: 29.83 kB / 0.8361 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.395e-05/0.1672, allocations: 84.14 kB / 0.8362 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.1672, allocations: 3.953 kB / 0.8362 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/0.1673, allocations: 17.66 kB / 0.8362 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1674, allocations: 310.8 kB / 0.8365 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.474e-05/0.1674, allocations: 4 kB / 0.8365 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.059e-05/0.1674, allocations: 4 kB / 0.8365 GB, free: 4.617 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.226e-05/0.1675, allocations: 20.91 kB / 0.8365 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1675, allocations: 0 / 0.8365 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.612e-05/0.1675, allocations: 37.7 kB / 0.8365 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.1675, allocations: 9.812 kB / 0.8365 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.1675, allocations: 0 / 0.8365 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.1676, allocations: 0 / 0.8365 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.1677, allocations: 11.98 kB / 0.8366 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003863/0.1681, allocations: 0.586 MB / 0.8371 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.621e-05/0.1681, allocations: 0 / 0.8371 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-06/0.1681, allocations: 4.031 kB / 0.8371 GB, free: 3.918 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 8.61e-05/0.1682, allocations: 110.4 kB / 0.8372 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-06/0.1682, allocations: 0 / 0.8372 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.1683, allocations: 56.81 kB / 0.8373 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1683, allocations: 4 kB / 0.8373 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1683, allocations: 128 / 0.8373 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1683, allocations: 4 kB / 0.8373 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.1684, allocations: 132.6 kB / 0.8374 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1684, allocations: 0 / 0.8374 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.845e-05/0.1685, allocations: 11.98 kB / 0.8374 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.1685, allocations: 0 / 0.8374 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.1685, allocations: 0 / 0.8374 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003331/0.1688, allocations: 0.5782 MB / 0.838 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1688, allocations: 8.031 kB / 0.838 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.668e-05/0.1689, allocations: 65.09 kB / 0.8381 GB, free: 2.852 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.213e-06/0.1689, allocations: 7.938 kB / 0.8381 GB, free: 2.844 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.1689, allocations: 8 kB / 0.8381 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.326e-05/0.1689, allocations: 0 / 0.8381 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.485e-05/0.169, allocations: 3.938 kB / 0.8381 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.169, allocations: 4 kB / 0.8381 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.995e-05/0.169, allocations: 79.31 kB / 0.8382 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.169, allocations: 0 / 0.8382 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001839/0.1692, allocations: 8 kB / 0.8382 GB, free: 2.742 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.0004137/0.1696, allocations: 0.6085 MB / 0.8388 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000147/0.1697, allocations: 24.11 kB / 0.8388 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1697, allocations: 0 / 0.8388 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 7.824e-05/0.1698, allocations: 11.98 kB / 0.8388 GB, free: 2.066 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.17, allocations: 10.38 kB / 0.8388 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004122/0.1704, allocations: 131.9 kB / 0.8389 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.1707, allocations: 0.673 MB / 0.8396 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.601e-05/0.1707, allocations: 3.938 kB / 0.8396 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.594e-05/0.1707, allocations: 15.42 kB / 0.8396 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/0.1707, allocations: 0 / 0.8396 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02619/0.1969, allocations: 1.409 MB / 0.841 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.45, allocations: 9.766 kB / 0.841 GB, free: 15.93 MB / 0.5919 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.400311684999906] Failed to read output from testmodel.py, exit status != 0: 11.553646604999813 11.569279225 11.400518198 Calling exit ...