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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8939/0.8939, allocations: 143.4 MB / 158.3 MB, free: 5.754 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 173.1 kB / 191.5 MB, free: 5.75 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 223.2 MB / 447.7 MB, free: 4.695 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008391/0.0008391, allocations: 92.31 kB / 0.5188 GB, free: 1.062 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00169/0.00169, allocations: 273.8 kB / 0.6005 GB, free: 48.72 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004311/0.0004311, allocations: 17.06 kB / 0.6929 GB, free: 59.57 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1691, allocations: 82.79 MB / 0.7737 GB, free: 13.82 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1628/0.3319, allocations: 109.1 MB / 0.8803 GB, free: 0.5742 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.3322, allocations: 77.98 kB / 0.8803 GB, free: 0.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.33/0.6623, allocations: 2.301 MB / 0.8826 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6623, allocations: 0 / 0.8826 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.6623, allocations: 2.875 kB / 0.8826 GB, free: 109.2 MB / 0.5417 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.0002182/0.6625, allocations: 334.2 kB / 0.8829 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.6626, allocations: 8.188 kB / 0.8829 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.61e-05/0.6626, allocations: 4.109 kB / 0.8829 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.93e-05/0.6627, allocations: 169.9 kB / 0.8831 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.6627, allocations: 7.938 kB / 0.8831 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.6627, allocations: 1.031 kB / 0.8831 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.568e-05/0.6628, allocations: 28.23 kB / 0.8831 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.6628, allocations: 2.531 kB / 0.8831 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-06/0.6628, allocations: 0 / 0.8831 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.6629, allocations: 3.234 kB / 0.8831 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.294e-05/0.6629, allocations: 2.375 kB / 0.8831 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001073/0.663, allocations: 155.9 kB / 0.8833 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 4.16e-05/0.663, allocations: 32.95 kB / 0.8833 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.6631, allocations: 0.9844 kB / 0.8833 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.6631, allocations: 36.59 kB / 0.8833 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 9.41e-07/0.6631, allocations: 0 / 0.8833 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0001139/0.6632, allocations: 44.73 kB / 0.8834 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.781e-05/0.6632, allocations: 51.41 kB / 0.8834 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.591e-05/0.6633, allocations: 91.84 kB / 0.8835 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.901e-06/0.6633, allocations: 25.7 kB / 0.8835 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 1.385e-05/0.6633, allocations: 83.08 kB / 0.8836 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.6633, allocations: 3.906 kB / 0.8836 GB, free: 108 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.6633, allocations: 3.312 kB / 0.8836 GB, free: 108 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 3.724e-05/0.6634, allocations: 318.4 kB / 0.8839 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.025e-05/0.6634, allocations: 2.594 kB / 0.8839 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.722e-06/0.6634, allocations: 2.562 kB / 0.8839 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.54e-05/0.6634, allocations: 6.812 kB / 0.8839 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.6634, allocations: 3.938 kB / 0.8839 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.757e-05/0.6635, allocations: 40.91 kB / 0.884 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.6635, allocations: 7.219 kB / 0.884 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.6635, allocations: 0 / 0.884 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.6635, allocations: 0 / 0.884 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.6637, allocations: 11.59 kB / 0.884 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002078/0.6639, allocations: 0.5885 MB / 0.8846 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.821e-05/0.6639, allocations: 2.812 kB / 0.8846 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.6639, allocations: 10.86 kB / 0.8846 GB, free: 107.1 MB / 0.5417 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 4.437e-05/0.664, allocations: 112.9 kB / 0.8847 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.875e-06/0.664, allocations: 3.531 kB / 0.8847 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.166e-05/0.6641, allocations: 41.64 kB / 0.8847 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.6641, allocations: 3.547 kB / 0.8847 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.6641, allocations: 4.125 kB / 0.8847 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.6641, allocations: 3.938 kB / 0.8848 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.855e-05/0.6642, allocations: 156.1 kB / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.6642, allocations: 0.625 kB / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.714e-05/0.6642, allocations: 12.19 kB / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.6643, allocations: 0 / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.6643, allocations: 0 / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001665/0.6644, allocations: 0.5837 MB / 0.8855 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6645, allocations: 6.781 kB / 0.8855 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.368e-05/0.6645, allocations: 69.33 kB / 0.8856 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 1.686e-05/0.6645, allocations: 77.11 kB / 0.8856 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.6646, allocations: 3.688 kB / 0.8856 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.37e-05/0.6646, allocations: 2.375 kB / 0.8856 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.605e-05/0.6646, allocations: 3.609 kB / 0.8856 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.6646, allocations: 0 / 0.8856 GB, free: 106 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 1.78e-05/0.6646, allocations: 81.91 kB / 0.8857 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6647, allocations: 3.938 kB / 0.8857 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001885/0.6648, allocations: 7.719 kB / 0.8857 GB, free: 105.9 MB / 0.5417 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001511/0.665, allocations: 124.5 kB / 0.8858 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001455/0.6652, allocations: 22.94 kB / 0.8859 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6652, allocations: 0 / 0.8859 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.105e-05/0.6653, allocations: 13.38 kB / 0.8859 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.627e-05/0.6654, allocations: 3.938 kB / 0.8859 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002943/0.6657, allocations: 104.4 kB / 0.886 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.6658, allocations: 0.6758 MB / 0.8866 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.34e-05/0.6658, allocations: 2.906 kB / 0.8866 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.2e-05/0.6658, allocations: 11.5 kB / 0.8867 GB, free: 105 MB / 0.5417 GB Notification: Performance of SimCode: time 2.91e-07/0.6658, allocations: 0 / 0.8867 GB, free: 105 MB / 0.5417 GB Notification: Performance of Templates: time 0.002198/0.668, allocations: 418.1 kB / 0.8871 GB, free: 104.9 MB / 0.5417 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)