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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005977/0.005977, allocations: 100 kB / 15.73 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 187.7 kB / 16.67 MB, free: 5.961 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002051/0.002051, allocations: 283 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9922/0.9922, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 95.84 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1628, allocations: 86.98 MB / 0.7664 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001908/0.1647, allocations: 1.243 MB / 0.7676 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008882/0.1656, allocations: 0.5838 MB / 0.7682 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.032e-05/0.1657, allocations: 4 kB / 0.7682 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.837e-05/0.1657, allocations: 3.938 kB / 0.7682 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.668e-05/0.1657, allocations: 3.984 kB / 0.7682 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005128/0.1662, allocations: 146.6 kB / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.173e-05/0.1663, allocations: 11.92 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.873e-05/0.1664, allocations: 0 / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.918e-05/0.1664, allocations: 4 kB / 0.7683 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.316e-05/0.1664, allocations: 3.984 kB / 0.7683 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.1664, allocations: 7.938 kB / 0.7683 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004793/0.1669, allocations: 339.3 kB / 0.7687 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.158e-05/0.1669, allocations: 4 kB / 0.7687 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.993e-05/0.167, allocations: 7.984 kB / 0.7687 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002377/0.1672, allocations: 135.7 kB / 0.7688 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1672, allocations: 11.94 kB / 0.7688 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.595e-06/0.1672, allocations: 3.984 kB / 0.7688 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.1672, allocations: 0 / 0.7688 GB, free: 5.953 MB / 0.5606 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.0003308/0.1676, allocations: 347.4 kB / 0.7692 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.1676, allocations: 8.031 kB / 0.7692 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.728e-05/0.1677, allocations: 0.9375 kB / 0.7692 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.712e-05/0.1678, allocations: 164.4 kB / 0.7693 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.1678, allocations: 384 / 0.7693 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.444e-06/0.1678, allocations: 384 / 0.7693 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.947e-05/0.1679, allocations: 42.25 kB / 0.7694 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.1679, allocations: 192 / 0.7694 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.1679, allocations: 7.875 kB / 0.7694 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.1679, allocations: 0 / 0.7694 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.595e-05/0.1679, allocations: 4 kB / 0.7694 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001469/0.1681, allocations: 157.6 kB / 0.7695 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.554e-05/0.1681, allocations: 18.58 kB / 0.7695 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.963e-05/0.1682, allocations: 16.92 kB / 0.7696 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.1682, allocations: 0 / 0.7696 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.1682, allocations: 30.56 kB / 0.7696 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.1682, allocations: 0 / 0.7696 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001249/0.1684, allocations: 45.56 kB / 0.7696 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.1684, allocations: 59.41 kB / 0.7697 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.119e-05/0.1685, allocations: 89.86 kB / 0.7698 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.1685, allocations: 33.89 kB / 0.7698 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.457e-05/0.1685, allocations: 80.14 kB / 0.7699 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.1685, allocations: 7.906 kB / 0.7699 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.61e-05/0.1686, allocations: 13.72 kB / 0.7699 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.1687, allocations: 318.8 kB / 0.7702 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.214e-05/0.1687, allocations: 0 / 0.7702 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.528e-06/0.1687, allocations: 4 kB / 0.7702 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.917e-05/0.1687, allocations: 16.92 kB / 0.7702 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1687, allocations: 0 / 0.7702 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.55e-05/0.1688, allocations: 37.64 kB / 0.7703 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.1688, allocations: 4 kB / 0.7703 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1688, allocations: 11.91 kB / 0.7703 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.799e-06/0.1689, allocations: 4 kB / 0.7703 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.169, allocations: 8 kB / 0.7703 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00032/0.1693, allocations: 0.5861 MB / 0.7709 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.8e-05/0.1693, allocations: 3.906 kB / 0.7709 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.1694, allocations: 0 / 0.7709 GB, free: 3.613 MB / 0.5606 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 6.376e-05/0.1694, allocations: 113.8 kB / 0.771 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-06/0.1694, allocations: 4.031 kB / 0.771 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.473e-05/0.1695, allocations: 48.75 kB / 0.771 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1695, allocations: 0 / 0.771 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.1696, allocations: 128 / 0.771 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1696, allocations: 4 kB / 0.771 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.941e-05/0.1697, allocations: 153.6 kB / 0.7712 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1697, allocations: 0 / 0.7712 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.289e-05/0.1697, allocations: 15.92 kB / 0.7712 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1698, allocations: 0 / 0.7712 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.1698, allocations: 4 kB / 0.7712 GB, free: 3.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002766/0.17, allocations: 0.5821 MB / 0.7718 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1701, allocations: 8.031 kB / 0.7718 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.767e-05/0.1701, allocations: 65.67 kB / 0.7718 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.308e-05/0.1702, allocations: 81.05 kB / 0.7719 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.017e-06/0.1702, allocations: 0 / 0.7719 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.367e-05/0.1702, allocations: 0 / 0.7719 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.1702, allocations: 3.938 kB / 0.7719 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.1702, allocations: 7.984 kB / 0.7719 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.74e-05/0.1703, allocations: 83.25 kB / 0.772 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1703, allocations: 0 / 0.772 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001947/0.1705, allocations: 16 kB / 0.772 GB, free: 2.312 MB / 0.5606 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.0001477/0.1706, allocations: 112.3 kB / 0.7721 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001502/0.1708, allocations: 19.92 kB / 0.7721 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1708, allocations: 0 / 0.7721 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.473e-05/0.1709, allocations: 16.16 kB / 0.7722 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.171, allocations: 10.02 kB / 0.7722 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002775/0.1713, allocations: 113 kB / 0.7723 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.1715, allocations: 0.6766 MB / 0.7729 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.491e-05/0.1716, allocations: 4 kB / 0.7729 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.343e-05/0.1716, allocations: 7.438 kB / 0.7729 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of SimCode: time 2.2e-07/0.1716, allocations: 64 / 0.7729 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of Templates: time 0.002201/0.1738, allocations: 474.6 kB / 0.7734 GB, free: 0.8672 MB / 0.5606 GB 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)