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.001168/0.001168, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001144/0.001144, allocations: 193.1 kB / 16.91 MB, free: 6.195 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.192/1.192, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001928/0.001928, allocations: 288.7 kB / 291 MB, free: 14.73 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.873/0.873, allocations: 169.2 MB / 0.4985 GB, free: 4.738 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 90.58 kB / 0.5953 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1718, allocations: 86.98 MB / 0.6803 GB, free: 8.57 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002569/0.1744, allocations: 1.306 MB / 0.6815 GB, free: 7.25 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1755, allocations: 0.5885 MB / 0.6821 GB, free: 6.66 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.28e-05/0.1755, allocations: 4 kB / 0.6821 GB, free: 6.656 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.841e-05/0.1755, allocations: 0 / 0.6821 GB, free: 6.656 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.836e-05/0.1756, allocations: 7.922 kB / 0.6821 GB, free: 6.648 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004936/0.1761, allocations: 126.5 kB / 0.6823 GB, free: 6.527 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.597e-05/0.1762, allocations: 7.938 kB / 0.6823 GB, free: 6.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.412e-05/0.1762, allocations: 7.938 kB / 0.6823 GB, free: 6.512 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.022e-05/0.1762, allocations: 4 kB / 0.6823 GB, free: 6.508 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.025e-05/0.1763, allocations: 7.938 kB / 0.6823 GB, free: 6.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.1763, allocations: 4 kB / 0.6823 GB, free: 6.496 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005264/0.1768, allocations: 343.3 kB / 0.6826 GB, free: 6.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.1769, allocations: 7.984 kB / 0.6826 GB, free: 6.152 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.28e-05/0.1769, allocations: 0 / 0.6826 GB, free: 6.152 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.1771, allocations: 92.11 kB / 0.6827 GB, free: 6.062 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1771, allocations: 7.938 kB / 0.6827 GB, free: 6.055 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1771, allocations: 0 / 0.6827 GB, free: 6.055 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1771, allocations: 0 / 0.6827 GB, free: 6.055 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.000436/0.1775, allocations: 347.5 kB / 0.683 GB, free: 5.664 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.1776, allocations: 12.03 kB / 0.6831 GB, free: 5.652 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.681e-05/0.1776, allocations: 0.9375 kB / 0.6831 GB, free: 5.652 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.1778, allocations: 168.4 kB / 0.6832 GB, free: 5.449 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-06/0.1778, allocations: 384 / 0.6832 GB, free: 5.449 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.1778, allocations: 8.375 kB / 0.6832 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.48e-05/0.1779, allocations: 30.27 kB / 0.6833 GB, free: 5.406 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.1779, allocations: 192 / 0.6833 GB, free: 5.406 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-06/0.1779, allocations: 3.938 kB / 0.6833 GB, free: 5.402 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1779, allocations: 0 / 0.6833 GB, free: 5.402 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.785e-05/0.1779, allocations: 7.938 kB / 0.6833 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001642/0.1781, allocations: 153.7 kB / 0.6834 GB, free: 5.195 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.46e-05/0.1782, allocations: 22.61 kB / 0.6834 GB, free: 5.164 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.908e-05/0.1782, allocations: 8.859 kB / 0.6834 GB, free: 5.152 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.1782, allocations: 4.062 kB / 0.6834 GB, free: 5.148 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.1782, allocations: 30.56 kB / 0.6835 GB, free: 5.109 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/0.1782, allocations: 0 / 0.6835 GB, free: 5.109 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001334/0.1784, allocations: 57.47 kB / 0.6835 GB, free: 5.047 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.1784, allocations: 51.41 kB / 0.6836 GB, free: 4.984 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.075e-05/0.1785, allocations: 93.86 kB / 0.6837 GB, free: 4.883 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.1785, allocations: 25.7 kB / 0.6837 GB, free: 4.852 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.418e-05/0.1786, allocations: 80.14 kB / 0.6838 GB, free: 4.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.1786, allocations: 7.984 kB / 0.6838 GB, free: 4.762 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.672e-05/0.1786, allocations: 13.72 kB / 0.6838 GB, free: 4.742 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.1787, allocations: 315.1 kB / 0.6841 GB, free: 4.426 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.099e-05/0.1787, allocations: 4 kB / 0.6841 GB, free: 4.422 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.116e-06/0.1788, allocations: 0 / 0.6841 GB, free: 4.422 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.701e-05/0.1788, allocations: 20.8 kB / 0.6841 GB, free: 4.398 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.1788, allocations: 0 / 0.6841 GB, free: 4.398 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.555e-05/0.1789, allocations: 45.53 kB / 0.6842 GB, free: 4.348 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.1789, allocations: 4 kB / 0.6842 GB, free: 4.344 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.1789, allocations: 7.875 kB / 0.6842 GB, free: 4.336 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.1789, allocations: 4.094 kB / 0.6842 GB, free: 4.332 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.1791, allocations: 11.98 kB / 0.6842 GB, free: 4.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003678/0.1794, allocations: 0.5861 MB / 0.6848 GB, free: 3.711 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.665e-05/0.1795, allocations: 0 / 0.6848 GB, free: 3.711 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/0.1795, allocations: 0 / 0.6848 GB, free: 3.711 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.541e-05/0.1796, allocations: 109.9 kB / 0.6849 GB, free: 3.594 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-06/0.1796, allocations: 11.94 kB / 0.6849 GB, free: 3.582 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.1797, allocations: 44.81 kB / 0.6849 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1797, allocations: 0 / 0.6849 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1797, allocations: 0 / 0.6849 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1797, allocations: 3.984 kB / 0.6849 GB, free: 3.527 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.1799, allocations: 157.6 kB / 0.6851 GB, free: 3.324 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1799, allocations: 0 / 0.6851 GB, free: 3.324 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.811e-05/0.18, allocations: 8 kB / 0.6851 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.18, allocations: 0 / 0.6851 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.523e-06/0.18, allocations: 4.031 kB / 0.6851 GB, free: 3.312 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002868/0.1803, allocations: 0.586 MB / 0.6857 GB, free: 2.703 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1803, allocations: 3.938 kB / 0.6857 GB, free: 2.699 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.238e-05/0.1804, allocations: 65.08 kB / 0.6857 GB, free: 2.617 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.437e-05/0.1804, allocations: 85.16 kB / 0.6858 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.1805, allocations: 8 kB / 0.6858 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.318e-05/0.1805, allocations: 0 / 0.6858 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.891e-05/0.1805, allocations: 3.938 kB / 0.6858 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.1805, allocations: 4 kB / 0.6858 GB, free: 2.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.14e-05/0.1806, allocations: 75.28 kB / 0.6859 GB, free: 2.426 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1806, allocations: 0 / 0.6859 GB, free: 2.426 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001906/0.1808, allocations: 12 kB / 0.6859 GB, free: 2.414 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.0001788/0.1809, allocations: 119.3 kB / 0.686 GB, free: 2.285 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001672/0.1811, allocations: 15.98 kB / 0.686 GB, free: 2.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1811, allocations: 3.938 kB / 0.686 GB, free: 2.266 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.046e-05/0.1812, allocations: 19.98 kB / 0.6861 GB, free: 2.246 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.1814, allocations: 4.75 kB / 0.6861 GB, free: 2.242 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003827/0.1818, allocations: 131.9 kB / 0.6862 GB, free: 2.082 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002276/0.182, allocations: 0.6729 MB / 0.6868 GB, free: 1.383 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.456e-05/0.182, allocations: 11.38 kB / 0.6869 GB, free: 1.371 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.182, allocations: 0 / 0.6869 GB, free: 1.371 MB / 494.1 MB Notification: Performance of Templates: time 0.002384/0.1844, allocations: 0.6928 MB / 0.6875 GB, free: 0.6797 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)