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.00103/0.00103, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001145/0.001145, allocations: 191.8 kB / 16.25 MB, free: 6.629 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.385/1.385, allocations: 222.9 MB / 239.9 MB, free: 4.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002161/0.002162, allocations: 283 kB / 290.4 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9352/0.9352, allocations: 169.2 MB / 0.4978 GB, free: 14.03 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 92.45 kB / 0.5947 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1622, allocations: 86.99 MB / 0.6796 GB, free: 1 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002565/0.1648, allocations: 1.295 MB / 0.6809 GB, free: 15.7 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009663/0.1658, allocations: 0.5916 MB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.094e-05/0.1658, allocations: 0.5312 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.768e-05/0.1658, allocations: 3.984 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.266e-05/0.1659, allocations: 4.594 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.1664, allocations: 126.2 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.87e-05/0.1664, allocations: 4 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.3e-05/0.1665, allocations: 3.984 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.887e-05/0.1665, allocations: 4 kB / 0.6816 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.792e-05/0.1665, allocations: 7.938 kB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.899e-06/0.1665, allocations: 7.938 kB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004482/0.167, allocations: 339.4 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.227e-05/0.167, allocations: 4 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.877e-05/0.167, allocations: 4 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.1673, allocations: 139.9 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1673, allocations: 0 / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1673, allocations: 0 / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1673, allocations: 0 / 0.6821 GB, free: 14.48 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.0003461/0.1677, allocations: 351.4 kB / 0.6824 GB, free: 14.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.1677, allocations: 8.031 kB / 0.6824 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.037e-05/0.1677, allocations: 8.938 kB / 0.6824 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.1679, allocations: 160.4 kB / 0.6826 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.829e-06/0.1679, allocations: 4.312 kB / 0.6826 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.445e-06/0.1679, allocations: 4.375 kB / 0.6826 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.012e-05/0.168, allocations: 30.27 kB / 0.6826 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.168, allocations: 4.188 kB / 0.6826 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.168, allocations: 7.922 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.168, allocations: 0 / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.45e-05/0.168, allocations: 4 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001499/0.1682, allocations: 153.7 kB / 0.6828 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.531e-05/0.1682, allocations: 26.53 kB / 0.6828 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.242e-05/0.1683, allocations: 12.92 kB / 0.6828 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.1683, allocations: 3.938 kB / 0.6828 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.1683, allocations: 34.5 kB / 0.6829 GB, free: 13.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.1683, allocations: 0 / 0.6829 GB, free: 13.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001352/0.1685, allocations: 53.55 kB / 0.6829 GB, free: 13.46 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.657e-05/0.1685, allocations: 51.41 kB / 0.683 GB, free: 13.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.706e-05/0.1686, allocations: 93.84 kB / 0.6831 GB, free: 13.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.1686, allocations: 25.7 kB / 0.6831 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.067e-05/0.1686, allocations: 88.12 kB / 0.6832 GB, free: 13.18 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.053e-05/0.1687, allocations: 0 / 0.6832 GB, free: 13.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.724e-05/0.1687, allocations: 21.66 kB / 0.6832 GB, free: 13.15 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1688, allocations: 315.1 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.215e-05/0.1688, allocations: 3.984 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.42e-05/0.1688, allocations: 4 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.777e-05/0.1689, allocations: 12.86 kB / 0.6835 GB, free: 12.81 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1689, allocations: 0 / 0.6835 GB, free: 12.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.56e-05/0.1689, allocations: 37.61 kB / 0.6836 GB, free: 12.77 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.169, allocations: 4 kB / 0.6836 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.169, allocations: 7.938 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.169, allocations: 4.094 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.1691, allocations: 11.98 kB / 0.6836 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003157/0.1695, allocations: 0.5899 MB / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.1695, allocations: 0 / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-06/0.1695, allocations: 0 / 0.6842 GB, free: 12.12 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 7.512e-05/0.1696, allocations: 116.2 kB / 0.6843 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.225e-06/0.1696, allocations: 7.984 kB / 0.6843 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.32e-05/0.1697, allocations: 44.77 kB / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.1697, allocations: 0 / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1697, allocations: 0 / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1697, allocations: 3.984 kB / 0.6843 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.091e-05/0.1698, allocations: 157.6 kB / 0.6845 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1698, allocations: 0 / 0.6845 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.778e-05/0.1699, allocations: 11.98 kB / 0.6845 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1699, allocations: 0 / 0.6845 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-06/0.1699, allocations: 4.031 kB / 0.6845 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003381/0.1702, allocations: 0.582 MB / 0.6851 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1703, allocations: 3.938 kB / 0.6851 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.895e-05/0.1703, allocations: 69.09 kB / 0.6851 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.919e-05/0.1704, allocations: 89.05 kB / 0.6852 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.778e-06/0.1704, allocations: 4 kB / 0.6852 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.647e-05/0.1704, allocations: 4 kB / 0.6852 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.626e-05/0.1704, allocations: 7.938 kB / 0.6852 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.1704, allocations: 0 / 0.6852 GB, free: 10.91 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.078e-05/0.1705, allocations: 79.27 kB / 0.6853 GB, free: 10.83 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1705, allocations: 0 / 0.6853 GB, free: 10.83 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001845/0.1707, allocations: 16 kB / 0.6853 GB, free: 10.81 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.0001453/0.1708, allocations: 111.3 kB / 0.6854 GB, free: 10.69 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001511/0.171, allocations: 15.98 kB / 0.6854 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.171, allocations: 0 / 0.6854 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.142e-05/0.1711, allocations: 19.92 kB / 0.6855 GB, free: 10.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.1712, allocations: 4 kB / 0.6855 GB, free: 10.65 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002994/0.1715, allocations: 102.3 kB / 0.6856 GB, free: 10.53 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.1717, allocations: 0.6768 MB / 0.6862 GB, free: 9.824 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.401e-05/0.1717, allocations: 0 / 0.6862 GB, free: 9.824 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.334e-05/0.1718, allocations: 11.44 kB / 0.6862 GB, free: 9.816 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1718, allocations: 0 / 0.6862 GB, free: 9.816 MB / 494.1 MB Notification: Performance of Templates: time 0.002146/0.1739, allocations: 457 kB / 0.6867 GB, free: 9.406 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)