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.00106/0.00106, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001146/0.001146, allocations: 192.9 kB / 16.14 MB, free: 6.715 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.306/1.306, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002094/0.002094, allocations: 290.3 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9417/0.9417, allocations: 169.2 MB / 0.4977 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 87.86 kB / 0.5945 GB, free: 28.48 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1502, allocations: 86.99 MB / 0.6794 GB, free: 1.129 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.0022/0.1524, allocations: 1.304 MB / 0.6807 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009396/0.1534, allocations: 0.6058 MB / 0.6813 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.449e-05/0.1534, allocations: 0 / 0.6813 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.044e-05/0.1534, allocations: 0.625 kB / 0.6813 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.815e-05/0.1535, allocations: 3.938 kB / 0.6813 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.1539, allocations: 125.3 kB / 0.6814 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.042e-05/0.154, allocations: 8 kB / 0.6814 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.173e-05/0.154, allocations: 8.812 kB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.745e-05/0.154, allocations: 3.938 kB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.893e-05/0.1541, allocations: 4.719 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.948e-06/0.1541, allocations: 0 / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004544/0.1545, allocations: 340 kB / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.205e-05/0.1546, allocations: 3.984 kB / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.128e-05/0.1546, allocations: 13.25 kB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.1548, allocations: 136 kB / 0.6819 GB, free: 14.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1548, allocations: 0 / 0.6819 GB, free: 14.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1549, allocations: 0 / 0.6819 GB, free: 14.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1549, allocations: 0.75 kB / 0.6819 GB, free: 14.59 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.000366/0.1552, allocations: 351.5 kB / 0.6823 GB, free: 14.2 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1553, allocations: 8.031 kB / 0.6823 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.1553, allocations: 0.9375 kB / 0.6823 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.1555, allocations: 168.3 kB / 0.6824 GB, free: 13.99 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1555, allocations: 4.312 kB / 0.6824 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.1555, allocations: 384 / 0.6824 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.1556, allocations: 38.25 kB / 0.6825 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.1556, allocations: 192 / 0.6825 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.1557, allocations: 3.938 kB / 0.6825 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.1557, allocations: 4 kB / 0.6825 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.579e-05/0.1557, allocations: 4 kB / 0.6825 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002151/0.1559, allocations: 153.7 kB / 0.6826 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.933e-05/0.156, allocations: 22.52 kB / 0.6827 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.113e-05/0.156, allocations: 8.922 kB / 0.6827 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.156, allocations: 3.938 kB / 0.6827 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.1561, allocations: 38.56 kB / 0.6827 GB, free: 13.64 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 3.116e-06/0.1561, allocations: 3.984 kB / 0.6827 GB, free: 13.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001676/0.1563, allocations: 45.53 kB / 0.6828 GB, free: 13.58 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.1563, allocations: 55.41 kB / 0.6828 GB, free: 13.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.061e-05/0.1564, allocations: 93.86 kB / 0.6829 GB, free: 13.41 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.1564, allocations: 29.64 kB / 0.6829 GB, free: 13.38 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.284e-05/0.1565, allocations: 84.14 kB / 0.683 GB, free: 13.29 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.1565, allocations: 256 / 0.683 GB, free: 13.29 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.696e-05/0.1566, allocations: 21.7 kB / 0.683 GB, free: 13.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1567, allocations: 314.8 kB / 0.6833 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.266e-05/0.1567, allocations: 0 / 0.6833 GB, free: 12.95 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.024e-05/0.1568, allocations: 4 kB / 0.6833 GB, free: 12.95 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.296e-05/0.1568, allocations: 12.86 kB / 0.6833 GB, free: 12.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1568, allocations: 0 / 0.6833 GB, free: 12.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.564e-05/0.1569, allocations: 41.59 kB / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.1569, allocations: 8.094 kB / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1569, allocations: 3.938 kB / 0.6834 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.1569, allocations: 4 kB / 0.6834 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.1571, allocations: 11.94 kB / 0.6834 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004378/0.1576, allocations: 0.5821 MB / 0.684 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.837e-05/0.1576, allocations: 0 / 0.684 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.1576, allocations: 0 / 0.684 GB, free: 12.25 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 9.902e-05/0.1577, allocations: 118.5 kB / 0.6841 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-06/0.1577, allocations: 4.031 kB / 0.6841 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.1579, allocations: 48.75 kB / 0.6841 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1579, allocations: 3.938 kB / 0.6841 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1579, allocations: 0 / 0.6841 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1579, allocations: 0 / 0.6841 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.158, allocations: 157.6 kB / 0.6843 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.158, allocations: 4 kB / 0.6843 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7e-05/0.1581, allocations: 12.03 kB / 0.6843 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1581, allocations: 0 / 0.6843 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.1581, allocations: 0 / 0.6843 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003316/0.1585, allocations: 0.5859 MB / 0.6849 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1585, allocations: 7.922 kB / 0.6849 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.926e-05/0.1586, allocations: 69.2 kB / 0.685 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.066e-05/0.1586, allocations: 84.98 kB / 0.685 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.1587, allocations: 0 / 0.685 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.634e-05/0.1587, allocations: 3.984 kB / 0.685 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.287e-05/0.1587, allocations: 3.938 kB / 0.685 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.1587, allocations: 4 kB / 0.685 GB, free: 11.03 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.074e-05/0.1587, allocations: 75.28 kB / 0.6851 GB, free: 10.95 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1588, allocations: 0 / 0.6851 GB, free: 10.95 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002012/0.159, allocations: 12.12 kB / 0.6851 GB, free: 10.94 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.0001742/0.1591, allocations: 115.2 kB / 0.6852 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001605/0.1593, allocations: 19.98 kB / 0.6853 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1593, allocations: 0 / 0.6853 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.421e-05/0.1594, allocations: 19.92 kB / 0.6853 GB, free: 10.78 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001478/0.1596, allocations: 2.031 kB / 0.6853 GB, free: 10.78 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000368/0.1599, allocations: 104.5 kB / 0.6854 GB, free: 10.65 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.1602, allocations: 0.677 MB / 0.686 GB, free: 9.945 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.591e-05/0.1602, allocations: 0 / 0.686 GB, free: 9.945 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.094e-05/0.1603, allocations: 7.438 kB / 0.686 GB, free: 9.941 MB / 494.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1603, allocations: 0 / 0.686 GB, free: 9.941 MB / 494.1 MB Notification: Performance of Templates: time 0.002437/0.1627, allocations: 445.5 kB / 0.6865 GB, free: 9.539 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)