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.001111/0.001111, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.008718/0.008718, allocations: 171.2 kB / 16.27 MB, free: 6.648 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.318/1.318, allocations: 223.3 MB / 240.3 MB, free: 5.227 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001693/0.001693, allocations: 278.6 kB / 291.7 MB, free: 1.762 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9405/0.9405, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004006/0.0004006, allocations: 15.89 kB / 0.5987 GB, free: 27.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1549, allocations: 88.54 MB / 0.6851 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001255/0.1562, allocations: 0.9713 MB / 0.6861 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009102/0.1571, allocations: 0.5927 MB / 0.6867 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.36e-05/0.1571, allocations: 0 / 0.6867 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.363e-05/0.1572, allocations: 0 / 0.6867 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.927e-05/0.1572, allocations: 0 / 0.6867 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004417/0.1577, allocations: 124.6 kB / 0.6868 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.683e-05/0.1577, allocations: 8.562 kB / 0.6868 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.465e-05/0.1578, allocations: 4 kB / 0.6868 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.605e-05/0.1578, allocations: 2.156 kB / 0.6868 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.219e-05/0.1578, allocations: 15.91 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.908e-06/0.1578, allocations: 0 / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004636/0.1583, allocations: 339.3 kB / 0.6871 GB, free: 12.99 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.534e-06/0.1583, allocations: 0 / 0.6871 GB, free: 12.99 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.789e-05/0.1584, allocations: 29.7 kB / 0.6872 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.1586, allocations: 148.5 kB / 0.6873 GB, free: 12.81 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.1586, allocations: 3.438 kB / 0.6873 GB, free: 12.81 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1586, allocations: 0 / 0.6873 GB, free: 12.81 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.1586, allocations: 0 / 0.6873 GB, free: 12.81 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.0003135/0.1589, allocations: 343.5 kB / 0.6876 GB, free: 12.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.159, allocations: 12.03 kB / 0.6876 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.248e-05/0.159, allocations: 0.9375 kB / 0.6876 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.501e-05/0.1591, allocations: 168.3 kB / 0.6878 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.1591, allocations: 384 / 0.6878 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/0.1591, allocations: 4.938 kB / 0.6878 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.211e-05/0.1592, allocations: 30.7 kB / 0.6878 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.1592, allocations: 4.719 kB / 0.6878 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.1592, allocations: 10.33 kB / 0.6879 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.1592, allocations: 0 / 0.6879 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.152e-05/0.1593, allocations: 4 kB / 0.6879 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001386/0.1594, allocations: 149.7 kB / 0.688 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.692e-05/0.1595, allocations: 27.36 kB / 0.688 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.685e-05/0.1595, allocations: 6.359 kB / 0.688 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.1595, allocations: 0 / 0.688 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.1596, allocations: 38.56 kB / 0.6881 GB, free: 11.87 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.1596, allocations: 7.094 kB / 0.6881 GB, free: 11.87 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001285/0.1597, allocations: 49.53 kB / 0.6881 GB, free: 11.81 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.1597, allocations: 51.41 kB / 0.6882 GB, free: 11.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.811e-05/0.1598, allocations: 93.86 kB / 0.6883 GB, free: 11.65 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1598, allocations: 29.7 kB / 0.6883 GB, free: 11.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.764e-05/0.1599, allocations: 80.92 kB / 0.6884 GB, free: 11.53 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.039e-05/0.1599, allocations: 3.984 kB / 0.6884 GB, free: 11.53 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.113e-05/0.1599, allocations: 15.38 kB / 0.6884 GB, free: 11.51 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.16, allocations: 310.8 kB / 0.6887 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.619e-06/0.16, allocations: 0 / 0.6887 GB, free: 11.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.236e-05/0.1601, allocations: 12.59 kB / 0.6887 GB, free: 11.18 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.64e-05/0.1601, allocations: 9.547 kB / 0.6887 GB, free: 11.17 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1601, allocations: 0 / 0.6887 GB, free: 11.17 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.756e-05/0.1602, allocations: 46.47 kB / 0.6887 GB, free: 11.12 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.1602, allocations: 8.5 kB / 0.6888 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1602, allocations: 3.938 kB / 0.6888 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.1602, allocations: 0.875 kB / 0.6888 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.1604, allocations: 8 kB / 0.6888 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003371/0.1607, allocations: 0.5875 MB / 0.6893 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.684e-05/0.1607, allocations: 4.062 kB / 0.6893 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.1607, allocations: 0 / 0.6893 GB, free: 10.49 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.68e-05/0.1608, allocations: 114.5 kB / 0.6895 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.382e-06/0.1608, allocations: 0 / 0.6895 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.327e-05/0.1609, allocations: 44.81 kB / 0.6895 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.1609, allocations: 3.938 kB / 0.6895 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.161, allocations: 0 / 0.6895 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.161, allocations: 4.031 kB / 0.6895 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.1611, allocations: 157.6 kB / 0.6897 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1611, allocations: 7.938 kB / 0.6897 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.111e-05/0.1612, allocations: 8 kB / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.1612, allocations: 0 / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-06/0.1612, allocations: 0 / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000274/0.1615, allocations: 0.586 MB / 0.6902 GB, free: 9.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1615, allocations: 4.031 kB / 0.6902 GB, free: 9.477 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.14e-05/0.1615, allocations: 68.98 kB / 0.6903 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.1616, allocations: 81.05 kB / 0.6904 GB, free: 9.293 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.138e-05/0.1616, allocations: 7.922 kB / 0.6904 GB, free: 9.285 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.42e-05/0.1616, allocations: 4 kB / 0.6904 GB, free: 9.281 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.383e-05/0.1616, allocations: 7.938 kB / 0.6904 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.1616, allocations: 0 / 0.6904 GB, free: 9.273 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.326e-05/0.1617, allocations: 79.31 kB / 0.6905 GB, free: 9.195 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1617, allocations: 4 kB / 0.6905 GB, free: 9.191 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001848/0.1619, allocations: 8 kB / 0.6905 GB, free: 9.184 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.0001353/0.162, allocations: 111.2 kB / 0.6906 GB, free: 9.062 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001477/0.1622, allocations: 19.98 kB / 0.6906 GB, free: 9.043 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.1622, allocations: 0 / 0.6906 GB, free: 9.043 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.1623, allocations: 24.08 kB / 0.6906 GB, free: 9.02 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/0.1625, allocations: 4.75 kB / 0.6906 GB, free: 9.016 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003319/0.1628, allocations: 105.1 kB / 0.6907 GB, free: 8.891 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002071/0.1631, allocations: 0.6692 MB / 0.6914 GB, free: 8.195 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.708e-05/0.1631, allocations: 4 kB / 0.6914 GB, free: 8.191 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.349e-05/0.1631, allocations: 11.48 kB / 0.6914 GB, free: 8.18 MB / 494.1 MB Notification: Performance of SimCode: time 1.753e-06/0.1631, allocations: 4 kB / 0.6914 GB, free: 8.176 MB / 494.1 MB Notification: Performance of Templates: time 0.002396/0.1655, allocations: 439.2 kB / 0.6918 GB, free: 7.781 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)