Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7926/0.7926, allocations: 143.8 MB / 159.1 MB, free: 6.488 MB / 122.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000997/0.000997, allocations: 183.3 kB / 192 MB, free: 6.719 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 225.7 MB / 450.4 MB, free: 4.953 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008011/0.0008011, allocations: 103 kB / 0.5211 GB, free: 1.621 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001692/0.001692, allocations: 282.1 kB / 0.6025 GB, free: 49.32 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004298/0.0004299, allocations: 13.59 kB / 0.6948 GB, free: 59.2 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1648, allocations: 82.46 MB / 0.7753 GB, free: 14.4 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001605/0.1665, allocations: 0.981 MB / 0.7763 GB, free: 13.41 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.1677, allocations: 1.025 MB / 0.7773 GB, free: 12.27 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.542e-05/0.1678, allocations: 0 / 0.7773 GB, free: 12.27 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 1.852e-05/0.1678, allocations: 8 kB / 0.7773 GB, free: 12.26 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 4.729e-05/0.1679, allocations: 0 / 0.7773 GB, free: 12.26 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004404/0.1683, allocations: 115.5 kB / 0.7774 GB, free: 12.15 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 4.207e-05/0.1684, allocations: 11.98 kB / 0.7774 GB, free: 12.14 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.391e-05/0.1684, allocations: 0 / 0.7774 GB, free: 12.14 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.884e-05/0.1684, allocations: 7.938 kB / 0.7774 GB, free: 12.13 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.99e-05/0.1685, allocations: 4 kB / 0.7774 GB, free: 12.12 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 8.846e-06/0.1685, allocations: 0 / 0.7774 GB, free: 12.12 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005005/0.169, allocations: 343.3 kB / 0.7777 GB, free: 11.79 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.285e-05/0.169, allocations: 4 kB / 0.7777 GB, free: 11.79 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 3.458e-05/0.1691, allocations: 29.64 kB / 0.7778 GB, free: 11.75 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.1693, allocations: 144 kB / 0.7779 GB, free: 11.61 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1693, allocations: 0 / 0.7779 GB, free: 11.61 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1693, allocations: 0 / 0.7779 GB, free: 11.61 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.1693, allocations: 0 / 0.7779 GB, free: 11.61 MB / 458.7 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.0003811/0.1697, allocations: 347.5 kB / 0.7782 GB, free: 11.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1698, allocations: 8.031 kB / 0.7782 GB, free: 11.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.941e-05/0.1698, allocations: 8.859 kB / 0.7783 GB, free: 11.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.1699, allocations: 168.3 kB / 0.7784 GB, free: 11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.17, allocations: 4.375 kB / 0.7784 GB, free: 11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.17, allocations: 4.375 kB / 0.7784 GB, free: 10.99 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.435e-05/0.1701, allocations: 34.2 kB / 0.7785 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.1701, allocations: 192 / 0.7785 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.1701, allocations: 3.938 kB / 0.7785 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1701, allocations: 0 / 0.7785 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.612e-05/0.1702, allocations: 7.984 kB / 0.7785 GB, free: 10.94 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.1703, allocations: 153.7 kB / 0.7786 GB, free: 10.74 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.912e-05/0.1704, allocations: 22.61 kB / 0.7786 GB, free: 10.71 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.987e-05/0.1704, allocations: 12.84 kB / 0.7786 GB, free: 10.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.1704, allocations: 3.984 kB / 0.7786 GB, free: 10.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.1705, allocations: 38.56 kB / 0.7787 GB, free: 10.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.1705, allocations: 0 / 0.7787 GB, free: 10.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001364/0.1706, allocations: 41.73 kB / 0.7787 GB, free: 10.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.1707, allocations: 55.44 kB / 0.7788 GB, free: 10.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.265e-05/0.1707, allocations: 97.84 kB / 0.7789 GB, free: 10.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.1708, allocations: 25.7 kB / 0.7789 GB, free: 10.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.141e-05/0.1708, allocations: 84.08 kB / 0.779 GB, free: 10.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.1708, allocations: 3.906 kB / 0.779 GB, free: 10.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-06/0.1708, allocations: 0 / 0.779 GB, free: 10.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.171, allocations: 318.8 kB / 0.7793 GB, free: 9.984 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.15e-05/0.171, allocations: 4.125 kB / 0.7793 GB, free: 9.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.788e-06/0.171, allocations: 7.938 kB / 0.7793 GB, free: 9.973 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.972e-05/0.171, allocations: 12.86 kB / 0.7793 GB, free: 9.957 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.171, allocations: 0 / 0.7793 GB, free: 9.957 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.334e-05/0.1711, allocations: 37.69 kB / 0.7793 GB, free: 9.914 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.1711, allocations: 4 kB / 0.7793 GB, free: 9.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1711, allocations: 3.938 kB / 0.7794 GB, free: 9.906 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.1711, allocations: 4 kB / 0.7794 GB, free: 9.902 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.1713, allocations: 7.984 kB / 0.7794 GB, free: 9.895 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000358/0.1717, allocations: 0.59 MB / 0.7799 GB, free: 9.281 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.1717, allocations: 0 / 0.7799 GB, free: 9.281 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-06/0.1717, allocations: 0 / 0.7799 GB, free: 9.281 MB / 458.7 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.682e-05/0.1718, allocations: 113.8 kB / 0.78 GB, free: 9.16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.041e-06/0.1718, allocations: 7.969 kB / 0.7801 GB, free: 9.152 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.1719, allocations: 48.91 kB / 0.7801 GB, free: 9.098 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1719, allocations: 0 / 0.7801 GB, free: 9.098 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.172, allocations: 0 / 0.7801 GB, free: 9.098 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.172, allocations: 0 / 0.7801 GB, free: 9.098 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.1721, allocations: 153.6 kB / 0.7802 GB, free: 8.898 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1721, allocations: 3.938 kB / 0.7803 GB, free: 8.895 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.796e-05/0.1722, allocations: 8 kB / 0.7803 GB, free: 8.887 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.1722, allocations: 3.984 kB / 0.7803 GB, free: 8.883 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-06/0.1722, allocations: 0 / 0.7803 GB, free: 8.883 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003197/0.1725, allocations: 0.5899 MB / 0.7808 GB, free: 8.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.1725, allocations: 3.938 kB / 0.7808 GB, free: 8.266 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.939e-05/0.1726, allocations: 65.11 kB / 0.7809 GB, free: 8.184 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.554e-05/0.1726, allocations: 85.03 kB / 0.781 GB, free: 8.082 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.003e-05/0.1727, allocations: 0 / 0.781 GB, free: 8.082 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.312e-05/0.1727, allocations: 4.125 kB / 0.781 GB, free: 8.078 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.715e-05/0.1727, allocations: 7.938 kB / 0.781 GB, free: 8.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.1727, allocations: 0 / 0.781 GB, free: 8.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.967e-05/0.1727, allocations: 75.28 kB / 0.7811 GB, free: 7.996 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1728, allocations: 0 / 0.7811 GB, free: 7.996 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0001811/0.1729, allocations: 11.94 kB / 0.7811 GB, free: 7.984 MB / 458.7 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.0001698/0.1731, allocations: 115.2 kB / 0.7812 GB, free: 7.859 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.1733, allocations: 24.08 kB / 0.7812 GB, free: 7.836 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1733, allocations: 0 / 0.7812 GB, free: 7.836 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 8.158e-05/0.1734, allocations: 19.92 kB / 0.7812 GB, free: 7.816 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.1735, allocations: 0.6094 kB / 0.7812 GB, free: 7.816 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003122/0.1739, allocations: 111.1 kB / 0.7813 GB, free: 7.684 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.1741, allocations: 0.6811 MB / 0.782 GB, free: 6.977 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 1.656e-05/0.1741, allocations: 0 / 0.782 GB, free: 6.977 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.356e-05/0.1742, allocations: 7.438 kB / 0.782 GB, free: 6.969 MB / 458.7 MB Notification: Performance of SimCode: time 3e-07/0.1742, allocations: 0 / 0.782 GB, free: 6.969 MB / 458.7 MB Notification: Performance of Templates: time 0.002137/0.1763, allocations: 441.4 kB / 0.7824 GB, free: 6.543 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)