Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001469/0.001469, allocations: 180.3 kB / 7.651 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.398/1.398, allocations: 194.3 MB / 202.4 MB, free: 8.543 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001604/0.001604, allocations: 121 kB / 247.4 MB, free: 6.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1986/0.1986, allocations: 39.95 MB / 332.2 MB, free: 4.773 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.589e-05/1.592e-05, allocations: 4 kB / 393.3 MB, free: 75.53 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1022, allocations: 54.89 MB / 448.2 MB, free: 20.64 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.512/7.614, allocations: 3.685 GB / 4.123 GB, free: 163.8 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/7.614, allocations: 81.8 kB / 4.123 GB, free: 163.8 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.642/13.26, allocations: 1.444 GB / 5.567 GB, free: 30.12 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.293e-06/13.26, allocations: 2.734 kB / 5.567 GB, free: 30.12 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002501/13.26, allocations: 59.95 kB / 5.567 GB, free: 30.12 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 498 * Number of variables: 498 Notification: Performance of Generate backend data structure: time 0.02742/13.28, allocations: 7.268 MB / 5.574 GB, free: 26.22 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/13.28, allocations: 9.25 kB / 5.574 GB, free: 26.22 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001971/13.29, allocations: 284.8 kB / 5.574 GB, free: 26.09 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004235/13.29, allocations: 1.628 MB / 5.576 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/13.29, allocations: 68.02 kB / 5.576 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007337/13.29, allocations: 108.5 kB / 5.576 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005232/13.3, allocations: 3.088 MB / 5.579 GB, free: 25.67 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005087/13.3, allocations: 2.8 MB / 5.582 GB, free: 25.45 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.022e-05/13.3, allocations: 7.547 kB / 5.582 GB, free: 25.45 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003681/13.3, allocations: 3.469 kB / 5.582 GB, free: 25.45 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/13.3, allocations: 187.7 kB / 5.582 GB, free: 25.44 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01951/13.32, allocations: 11.67 MB / 5.593 GB, free: 20.86 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002515/13.32, allocations: 1.475 MB / 5.595 GB, free: 20.82 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/13.33, allocations: 0.9507 MB / 5.596 GB, free: 20.81 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001327/13.33, allocations: 1.682 MB / 5.597 GB, free: 19.12 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/13.33, allocations: 54.62 kB / 5.597 GB, free: 19.07 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001858/13.33, allocations: 267.6 kB / 5.597 GB, free: 18.99 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 8.906e-06/13.33, allocations: 0 / 5.597 GB, free: 18.99 MB / 0.5573 GB Notification: Performance of matching and sorting (n=165): time 0.02274/13.35, allocations: 6.892 MB / 5.604 GB, free: 18.26 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/13.35, allocations: 201.7 kB / 5.604 GB, free: 18.04 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/13.35, allocations: 1.193 MB / 5.606 GB, free: 17.85 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001918/13.35, allocations: 28.8 kB / 5.606 GB, free: 17.82 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005808/13.35, allocations: 1.038 MB / 5.607 GB, free: 17.31 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004762/13.35, allocations: 0.5557 MB / 5.607 GB, free: 16.94 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/13.35, allocations: 0 / 5.607 GB, free: 16.94 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001402/13.35, allocations: 396.1 kB / 5.608 GB, free: 16.64 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/13.36, allocations: 1.071 MB / 5.609 GB, free: 16.63 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/13.36, allocations: 1.59 MB / 5.61 GB, free: 16.04 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01643/13.37, allocations: 3.872 MB / 5.614 GB, free: 16.02 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.116e-05/13.37, allocations: 3.219 kB / 5.614 GB, free: 16.02 MB / 0.5573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.02336/13.4, allocations: 5.886 MB / 5.62 GB, free: 15.76 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001194/13.4, allocations: 5.873 MB / 5.625 GB, free: 9.707 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.268e-05/13.4, allocations: 15.75 kB / 5.625 GB, free: 9.707 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004262/13.4, allocations: 0.8886 MB / 5.626 GB, free: 9.691 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002538/13.41, allocations: 0.5408 MB / 5.627 GB, free: 9.656 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002837/13.41, allocations: 2.148 MB / 5.629 GB, free: 8.598 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/13.41, allocations: 164.4 kB / 5.629 GB, free: 8.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006652/13.41, allocations: 176.6 kB / 5.629 GB, free: 8.59 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/13.41, allocations: 2.188 kB / 5.629 GB, free: 8.59 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02433/13.44, allocations: 5.824 MB / 5.635 GB, free: 8.445 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.257e-05/13.44, allocations: 14.06 kB / 5.635 GB, free: 8.445 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004025/13.44, allocations: 0.8323 MB / 5.636 GB, free: 8.418 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002753/13.44, allocations: 0.5448 MB / 5.636 GB, free: 8.387 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002399/13.45, allocations: 1.85 MB / 5.638 GB, free: 23.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003167/13.45, allocations: 158.3 kB / 5.638 GB, free: 23.32 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007663/13.45, allocations: 179.1 kB / 5.638 GB, free: 23.32 MB / 0.573 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junction.port_2.m_flow:VARIABLE(flow=true min = max(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59) max = min(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59) unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance2.ind,traceSubstance.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (271): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,3 16} Notification: Performance of prepare postOptimizeDAE: time 0.001404/13.45, allocations: 189.7 kB / 5.639 GB, free: 23.16 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008847/13.45, allocations: 190 kB / 5.639 GB, free: 23.06 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00924/13.46, allocations: 3.853 MB / 5.643 GB, free: 22.75 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/13.46, allocations: 14.25 kB / 5.643 GB, free: 22.75 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/13.46, allocations: 1.688 kB / 5.643 GB, free: 22.75 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.453e-05/13.46, allocations: 7.922 kB / 5.643 GB, free: 22.75 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/13.47, allocations: 5.053 MB / 5.647 GB, free: 22.25 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.908e-06/13.47, allocations: 3.969 kB / 5.647 GB, free: 22.25 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/13.47, allocations: 302.7 kB / 5.648 GB, free: 22.23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002793/13.48, allocations: 0.7618 MB / 5.649 GB, free: 22.16 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002088/13.48, allocations: 46.22 kB / 5.649 GB, free: 22.15 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003149/13.48, allocations: 2.05 MB / 5.651 GB, free: 20.74 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/13.48, allocations: 3.625 kB / 5.651 GB, free: 20.74 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008381/13.49, allocations: 4.223 MB / 5.655 GB, free: 18.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/13.49, allocations: 322.7 kB / 5.655 GB, free: 18.46 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008171/13.49, allocations: 13.44 kB / 5.655 GB, free: 18.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002279/13.49, allocations: 120.7 kB / 5.655 GB, free: 18.45 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002631/13.49, allocations: 141.3 kB / 5.655 GB, free: 18.43 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002742/13.49, allocations: 106.2 kB / 5.655 GB, free: 18.41 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001629/13.5, allocations: 0.9179 MB / 5.656 GB, free: 18.02 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.6e-07/13.5, allocations: 0 / 5.656 GB, free: 18.02 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0114/13.51, allocations: 2.991 MB / 5.659 GB, free: 17.23 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (junction1.medium.p,junction1.medium.Xi[1],junction1.medium.T,junction1.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,3 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.01213/13.52, allocations: 4.537 MB / 5.664 GB, free: 14.79 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00936/13.53, allocations: 4.32 MB / 5.668 GB, free: 10.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/13.53, allocations: 0 / 5.668 GB, free: 10.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002343/13.53, allocations: 1.141 MB / 5.669 GB, free: 9.777 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005236/13.54, allocations: 0.9032 MB / 5.67 GB, free: 9.133 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008976/13.55, allocations: 3.712 MB / 5.673 GB, free: 5.934 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001869/13.55, allocations: 1.71 MB / 5.675 GB, free: 4.543 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.006699/13.55, allocations: 1.239 MB / 5.676 GB, free: 3.656 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/13.55, allocations: 222.1 kB / 5.677 GB, free: 3.473 MB / 0.573 GB Notification: Performance of SimCode: time 1.102e-06/13.55, allocations: 0 / 5.677 GB, free: 3.473 MB / 0.573 GB Notification: Performance of Templates: time 0.5539/14.11, allocations: 85.34 MB / 5.76 GB, free: 53.9 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe 2>&1)