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.00148/0.00148, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.00139/0.00139, allocations: 216.7 kB / 23.03 MB, free: 4.949 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.453/1.453, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.002624/0.002624, allocations: 287.5 kB / 313.5 MB, free: 2.621 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.218/1.218, allocations: 180.6 MB / 0.5377 GB, free: 14.54 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="cs",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="cs",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.002841/0.002841, allocations: 102.7 kB / 0.7403 GB, free: 28.12 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1612, allocations: 95.38 MB / 0.8334 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002708/0.1639, allocations: 1.262 MB / 0.8346 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001031/0.1649, allocations: 0.5236 MB / 0.8351 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.219e-05/0.1649, allocations: 0 / 0.8351 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.1649, allocations: 0 / 0.8351 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.147e-05/0.165, allocations: 3.938 kB / 0.8352 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005711/0.1656, allocations: 146.2 kB / 0.8353 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 4.945e-05/0.1656, allocations: 11.92 kB / 0.8353 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.948e-05/0.1656, allocations: 4 kB / 0.8353 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.966e-05/0.1657, allocations: 7.938 kB / 0.8353 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.016e-05/0.1657, allocations: 4 kB / 0.8353 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.1657, allocations: 0 / 0.8353 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004739/0.1662, allocations: 283.5 kB / 0.8356 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.294e-05/0.1662, allocations: 4 kB / 0.8356 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.048e-05/0.1662, allocations: 7.938 kB / 0.8356 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.1665, allocations: 131.9 kB / 0.8357 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1665, allocations: 0 / 0.8357 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.202e-06/0.1665, allocations: 0 / 0.8357 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.9e-06/0.1665, allocations: 0 / 0.8357 GB, free: 5.988 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.0004135/0.1669, allocations: 280.6 kB / 0.836 GB, free: 5.684 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.167, allocations: 8.75 kB / 0.836 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.974e-05/0.167, allocations: 192 / 0.836 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.254e-05/0.167, allocations: 38.75 kB / 0.836 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.501e-05/0.1671, allocations: 8.875 kB / 0.836 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.1672, allocations: 106.5 kB / 0.8361 GB, free: 5.492 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.1672, allocations: 384 / 0.8361 GB, free: 5.492 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.214e-06/0.1672, allocations: 4.312 kB / 0.8362 GB, free: 5.488 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.507e-05/0.1673, allocations: 38 kB / 0.8362 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.1673, allocations: 3.984 kB / 0.8362 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.1673, allocations: 0 / 0.8362 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1673, allocations: 4 kB / 0.8362 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.431e-05/0.1673, allocations: 0 / 0.8362 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/0.1675, allocations: 128.7 kB / 0.8363 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 6.407e-05/0.1675, allocations: 26.61 kB / 0.8363 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.806e-05/0.1676, allocations: 12.86 kB / 0.8364 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.1676, allocations: 0 / 0.8364 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.1676, allocations: 38.5 kB / 0.8364 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.1676, allocations: 0 / 0.8364 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0001398/0.1678, allocations: 41.69 kB / 0.8364 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.1678, allocations: 55.34 kB / 0.8365 GB, free: 5.059 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.75e-05/0.1679, allocations: 93.86 kB / 0.8366 GB, free: 4.957 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.1679, allocations: 25.7 kB / 0.8366 GB, free: 4.926 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.272e-05/0.1679, allocations: 84.14 kB / 0.8367 GB, free: 4.84 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.388e-05/0.168, allocations: 8.203 kB / 0.8367 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.813e-05/0.168, allocations: 17.66 kB / 0.8367 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1681, allocations: 314.8 kB / 0.837 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.424e-05/0.1681, allocations: 8 kB / 0.837 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.139e-05/0.1681, allocations: 4 kB / 0.837 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.808e-05/0.1682, allocations: 8.859 kB / 0.837 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1682, allocations: 0 / 0.837 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.9e-05/0.1682, allocations: 37.7 kB / 0.8371 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.1683, allocations: 18.2 kB / 0.8371 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1683, allocations: 0 / 0.8371 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1683, allocations: 8.094 kB / 0.8371 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.1684, allocations: 8 kB / 0.8371 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004005/0.1688, allocations: 0.5821 MB / 0.8377 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.884e-05/0.1688, allocations: 0 / 0.8377 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.1689, allocations: 3.984 kB / 0.8377 GB, free: 3.785 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.842e-05/0.1689, allocations: 114.5 kB / 0.8378 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-06/0.169, allocations: 0 / 0.8378 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.1691, allocations: 56.97 kB / 0.8378 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1691, allocations: 0 / 0.8378 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1691, allocations: 3.938 kB / 0.8378 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1691, allocations: 0 / 0.8378 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.1692, allocations: 128.7 kB / 0.838 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1692, allocations: 0 / 0.838 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.775e-05/0.1693, allocations: 11.98 kB / 0.838 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1693, allocations: 0 / 0.838 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.1693, allocations: 4 kB / 0.838 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003821/0.1697, allocations: 0.5898 MB / 0.8385 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1697, allocations: 4.125 kB / 0.8386 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.525e-05/0.1697, allocations: 69.09 kB / 0.8386 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.662e-06/0.1697, allocations: 0 / 0.8386 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.1698, allocations: 4 kB / 0.8386 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.837e-05/0.1698, allocations: 3.938 kB / 0.8386 GB, free: 2.699 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.918e-06/0.1698, allocations: 0 / 0.8386 GB, free: 2.699 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-06/0.1698, allocations: 4 kB / 0.8386 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.816e-05/0.1698, allocations: 79.27 kB / 0.8387 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1698, allocations: 0 / 0.8387 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000197/0.17, allocations: 8 kB / 0.8387 GB, free: 2.609 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.0004424/0.1705, allocations: 0.6124 MB / 0.8393 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000174/0.1706, allocations: 19.98 kB / 0.8393 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1706, allocations: 4 kB / 0.8393 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 8.632e-05/0.1707, allocations: 11.98 kB / 0.8393 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.1709, allocations: 3.938 kB / 0.8393 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005055/0.1714, allocations: 146.1 kB / 0.8395 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.151e-05/0.1714, allocations: 59.34 kB / 0.8395 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.748e-05/0.1715, allocations: 0 / 0.8395 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.48e-05/0.1715, allocations: 11.38 kB / 0.8396 GB, free: 1.656 MB / 0.5762 GB Notification: Performance of SimCode: time 4.71e-07/0.1715, allocations: 0 / 0.8396 GB, free: 1.656 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0224/0.1939, allocations: 1.482 MB / 0.841 GB, free: 372 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.42, allocations: 23.41 kB / 0.841 GB, free: 360 kB / 0.5762 GB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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: 16.604519161977805] Failed to read output from testmodel.py, exit status != 0: 12.590405353927054 12.615311098 12.444320213 Calling exit ...