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.001023/0.001023, allocations: 105 kB / 16.35 MB, free: 6.289 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.0009684/0.0009684, allocations: 193.5 kB / 17.29 MB, free: 5.859 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002035/0.002035, allocations: 289 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9375/0.9375, allocations: 169.2 MB / 0.4989 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 103.1 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1608, allocations: 86.97 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002167/0.163, allocations: 1.25 MB / 0.6828 GB, free: 6.203 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008736/0.1639, allocations: 0.5916 MB / 0.6834 GB, free: 5.609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.775e-05/0.1639, allocations: 0 / 0.6834 GB, free: 5.609 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.1639, allocations: 0 / 0.6834 GB, free: 5.609 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.31e-05/0.164, allocations: 0 / 0.6834 GB, free: 5.609 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004681/0.1644, allocations: 138.3 kB / 0.6835 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.355e-05/0.1645, allocations: 23.91 kB / 0.6835 GB, free: 5.453 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.222e-05/0.1646, allocations: 0 / 0.6835 GB, free: 5.453 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.518e-05/0.1646, allocations: 4 kB / 0.6835 GB, free: 5.449 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.51e-05/0.1646, allocations: 11.94 kB / 0.6836 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.059e-05/0.1647, allocations: 0 / 0.6836 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004505/0.1651, allocations: 335.3 kB / 0.6839 GB, free: 5.109 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.077e-05/0.1651, allocations: 3.984 kB / 0.6839 GB, free: 5.105 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.164e-05/0.1652, allocations: 8 kB / 0.6839 GB, free: 5.098 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002222/0.1654, allocations: 139.6 kB / 0.684 GB, free: 4.961 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1654, allocations: 0 / 0.684 GB, free: 4.961 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1654, allocations: 0 / 0.684 GB, free: 4.961 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1654, allocations: 0 / 0.684 GB, free: 4.961 MB / 494.1 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.0003333/0.1658, allocations: 359.4 kB / 0.6844 GB, free: 4.559 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.1658, allocations: 11.97 kB / 0.6844 GB, free: 4.547 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.631e-05/0.1658, allocations: 4.938 kB / 0.6844 GB, free: 4.543 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.1659, allocations: 164.4 kB / 0.6845 GB, free: 4.344 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-06/0.1659, allocations: 384 / 0.6845 GB, free: 4.344 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.166, allocations: 384 / 0.6845 GB, free: 4.344 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.663e-05/0.166, allocations: 34.27 kB / 0.6846 GB, free: 4.305 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.166, allocations: 192 / 0.6846 GB, free: 4.305 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1661, allocations: 11.86 kB / 0.6846 GB, free: 4.293 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1661, allocations: 0 / 0.6846 GB, free: 4.293 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.06e-05/0.1661, allocations: 11.98 kB / 0.6846 GB, free: 4.281 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001323/0.1662, allocations: 149.7 kB / 0.6847 GB, free: 4.086 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.045e-05/0.1663, allocations: 22.59 kB / 0.6848 GB, free: 4.055 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.236e-05/0.1663, allocations: 8.922 kB / 0.6848 GB, free: 4.043 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.1663, allocations: 0 / 0.6848 GB, free: 4.043 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.784e-05/0.1664, allocations: 34.5 kB / 0.6848 GB, free: 4 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.1664, allocations: 4 kB / 0.6848 GB, free: 3.996 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.000124/0.1665, allocations: 53.48 kB / 0.6849 GB, free: 3.938 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.1665, allocations: 51.41 kB / 0.6849 GB, free: 3.875 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.356e-05/0.1666, allocations: 97.84 kB / 0.685 GB, free: 3.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.1666, allocations: 25.7 kB / 0.685 GB, free: 3.738 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.265e-05/0.1666, allocations: 84.14 kB / 0.6851 GB, free: 3.652 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.1667, allocations: 0 / 0.6851 GB, free: 3.652 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.748e-05/0.1667, allocations: 13.97 kB / 0.6851 GB, free: 3.633 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.22e-05/0.1668, allocations: 318.8 kB / 0.6854 GB, free: 3.312 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.034e-05/0.1668, allocations: 0 / 0.6854 GB, free: 3.312 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.978e-06/0.1668, allocations: 7.984 kB / 0.6854 GB, free: 3.305 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.17e-05/0.1669, allocations: 16.8 kB / 0.6854 GB, free: 3.285 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1669, allocations: 0 / 0.6854 GB, free: 3.285 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.365e-05/0.1669, allocations: 37.61 kB / 0.6855 GB, free: 3.242 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.167, allocations: 8 kB / 0.6855 GB, free: 3.234 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.167, allocations: 8.031 kB / 0.6855 GB, free: 3.227 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.167, allocations: 0 / 0.6855 GB, free: 3.227 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.1671, allocations: 11.98 kB / 0.6855 GB, free: 3.215 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003102/0.1674, allocations: 0.5821 MB / 0.6861 GB, free: 2.609 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.644e-05/0.1675, allocations: 0 / 0.6861 GB, free: 2.609 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.1675, allocations: 0 / 0.6861 GB, free: 2.609 MB / 494.1 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 6.611e-05/0.1675, allocations: 121.9 kB / 0.6862 GB, free: 2.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-06/0.1676, allocations: 3.984 kB / 0.6862 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.335e-05/0.1676, allocations: 44.77 kB / 0.6862 GB, free: 2.426 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1677, allocations: 0 / 0.6862 GB, free: 2.426 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1677, allocations: 0 / 0.6862 GB, free: 2.426 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1677, allocations: 0 / 0.6862 GB, free: 2.426 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.727e-05/0.1678, allocations: 153.6 kB / 0.6864 GB, free: 2.227 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1678, allocations: 0 / 0.6864 GB, free: 2.227 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.811e-05/0.1678, allocations: 11.98 kB / 0.6864 GB, free: 2.215 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1679, allocations: 4.031 kB / 0.6864 GB, free: 2.211 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.1679, allocations: 0 / 0.6864 GB, free: 2.211 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002745/0.1681, allocations: 0.586 MB / 0.687 GB, free: 1.602 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.1682, allocations: 3.938 kB / 0.687 GB, free: 1.598 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.648e-05/0.1682, allocations: 69.16 kB / 0.687 GB, free: 1.512 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.1683, allocations: 93.02 kB / 0.6871 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.608e-06/0.1683, allocations: 0 / 0.6871 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.317e-05/0.1683, allocations: 0 / 0.6871 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.1683, allocations: 7.938 kB / 0.6871 GB, free: 1.395 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.1683, allocations: 3.938 kB / 0.6871 GB, free: 1.391 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.776e-05/0.1684, allocations: 75.28 kB / 0.6872 GB, free: 1.316 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1684, allocations: 0 / 0.6872 GB, free: 1.316 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001855/0.1686, allocations: 11.98 kB / 0.6872 GB, free: 1.305 MB / 494.1 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.0001724/0.1687, allocations: 116.3 kB / 0.6873 GB, free: 1.18 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001491/0.1689, allocations: 19.98 kB / 0.6874 GB, free: 1.16 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1689, allocations: 0 / 0.6874 GB, free: 1.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.713e-05/0.169, allocations: 15.98 kB / 0.6874 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.1691, allocations: 2.344 kB / 0.6874 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002656/0.1694, allocations: 106.2 kB / 0.6875 GB, free: 1.016 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.1696, allocations: 0.6768 MB / 0.6881 GB, free: 320 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.254e-05/0.1696, allocations: 0 / 0.6881 GB, free: 320 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.215e-05/0.1696, allocations: 7.438 kB / 0.6881 GB, free: 312 kB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1696, allocations: 0 / 0.6881 GB, free: 312 kB / 494.1 MB Notification: Performance of Templates: time 0.2322/0.4018, allocations: 460.6 kB / 0.6886 GB, free: 17.82 MB / 494.1 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)