Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001644/0.001644, allocations: 164.4 kB / 7.635 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.485/1.485, allocations: 170.7 MB / 178.7 MB, free: 15.57 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001688/0.001689, allocations: 95.52 kB / 218 MB, free: 8.348 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1768/0.1768, allocations: 37.99 MB / 295.1 MB, free: 9.484 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.494e-05/1.482e-05, allocations: 3.094 kB / 350 MB, free: 36.98 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09754/0.09757, allocations: 48.73 MB / 398.7 MB, free: 5.332 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.665/7.762, allocations: 3.679 GB / 4.068 GB, free: 43.63 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002213/7.763, allocations: 83.95 kB / 4.068 GB, free: 43.55 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.056/13.82, allocations: 1.434 GB / 5.502 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.675e-06/13.82, allocations: 0 / 5.502 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002946/13.82, allocations: 63.48 kB / 5.502 GB, free: 14.25 MB / 0.5105 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.03268/13.85, allocations: 7.266 MB / 5.509 GB, free: 6.902 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/13.85, allocations: 15.97 kB / 5.509 GB, free: 6.887 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00215/13.85, allocations: 281 kB / 5.509 GB, free: 6.609 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005826/13.86, allocations: 1.624 MB / 5.511 GB, free: 4.93 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/13.86, allocations: 67.98 kB / 5.511 GB, free: 4.863 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001023/13.86, allocations: 108 kB / 5.511 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006692/13.87, allocations: 3.08 MB / 5.514 GB, free: 1.676 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4334/14.3, allocations: 2.806 MB / 5.517 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.612e-05/14.3, allocations: 4.891 kB / 5.517 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003383/14.3, allocations: 6.188 kB / 5.517 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002904/14.3, allocations: 182.4 kB / 5.517 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02602/14.33, allocations: 11.29 MB / 5.528 GB, free: 21.69 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003719/14.33, allocations: 1.47 MB / 5.529 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/14.33, allocations: 0.9567 MB / 5.53 GB, free: 21.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001567/14.34, allocations: 1.676 MB / 5.532 GB, free: 19.96 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.918e-05/14.34, allocations: 57.86 kB / 5.532 GB, free: 19.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00227/14.34, allocations: 263.6 kB / 5.532 GB, free: 19.88 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 9.568e-06/14.34, allocations: 0 / 5.532 GB, free: 19.88 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165): time 0.02966/14.37, allocations: 6.882 MB / 5.539 GB, free: 19.19 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.738e-05/14.37, allocations: 201.2 kB / 5.539 GB, free: 18.97 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002471/14.37, allocations: 1.191 MB / 5.54 GB, free: 18.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005917/14.37, allocations: 29.08 kB / 5.54 GB, free: 18.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000916/14.37, allocations: 1.036 MB / 5.541 GB, free: 18.37 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001176/14.37, allocations: 0.5567 MB / 5.542 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006902/14.37, allocations: 0 / 5.542 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003827/14.37, allocations: 397.7 kB / 5.542 GB, free: 17.78 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002701/14.38, allocations: 1.067 MB / 5.543 GB, free: 17.77 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002711/14.38, allocations: 1.592 MB / 5.545 GB, free: 17.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01793/14.4, allocations: 3.875 MB / 5.549 GB, free: 17.18 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.397e-05/14.4, allocations: 2.844 kB / 5.549 GB, free: 17.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.0267/14.42, allocations: 5.884 MB / 5.554 GB, free: 16.99 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002075/14.43, allocations: 5.865 MB / 5.56 GB, free: 26.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.244e-05/14.43, allocations: 17.34 kB / 5.56 GB, free: 26.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004386/14.43, allocations: 0.8938 MB / 5.561 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003075/14.43, allocations: 0.5489 MB / 5.562 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003529/14.44, allocations: 2.151 MB / 5.564 GB, free: 25.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003968/14.44, allocations: 162.8 kB / 5.564 GB, free: 25.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/14.44, allocations: 177.2 kB / 5.564 GB, free: 25.86 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/14.44, allocations: 4.906 kB / 5.564 GB, free: 25.86 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02756/14.47, allocations: 5.824 MB / 5.57 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.118e-05/14.47, allocations: 16.34 kB / 5.57 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004114/14.47, allocations: 0.8125 MB / 5.57 GB, free: 25.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003149/14.48, allocations: 0.548 MB / 5.571 GB, free: 25.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/14.48, allocations: 1.857 MB / 5.573 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003652/14.48, allocations: 150.7 kB / 5.573 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001102/14.48, allocations: 175.7 kB / 5.573 GB, free: 24.73 MB / 0.5261 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 multiPort.ports_b_Xi_inStream[2,1]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "inStream mass fractions at ports_b" type: Real [2,1] 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.001535/14.49, allocations: 202.7 kB / 5.573 GB, free: 24.62 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/14.49, allocations: 185.6 kB / 5.574 GB, free: 24.52 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009522/14.5, allocations: 3.848 MB / 5.577 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/14.5, allocations: 18.91 kB / 5.577 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/14.5, allocations: 5.969 kB / 5.577 GB, free: 24.26 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/14.5, allocations: 10.08 kB / 5.577 GB, free: 24.26 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/14.51, allocations: 5.048 MB / 5.582 GB, free: 23.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/14.51, allocations: 4.5 kB / 5.582 GB, free: 23.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/14.51, allocations: 304.6 kB / 5.583 GB, free: 23.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002894/14.51, allocations: 0.7541 MB / 5.583 GB, free: 23.77 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000226/14.51, allocations: 51.52 kB / 5.583 GB, free: 23.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002825/14.52, allocations: 2.049 MB / 5.585 GB, free: 22.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/14.52, allocations: 6.656 kB / 5.585 GB, free: 22.71 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00929/14.53, allocations: 4.216 MB / 5.589 GB, free: 21.92 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/14.53, allocations: 328.3 kB / 5.59 GB, free: 21.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009697/14.53, allocations: 10.33 kB / 5.59 GB, free: 21.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002646/14.53, allocations: 119.9 kB / 5.59 GB, free: 21.73 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003529/14.53, allocations: 133.1 kB / 5.59 GB, free: 21.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003285/14.53, allocations: 110.1 kB / 5.59 GB, free: 21.72 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001518/14.53, allocations: 0.9188 MB / 5.591 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.333e-06/14.53, allocations: 0 / 5.591 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0118/14.55, allocations: 2.977 MB / 5.594 GB, free: 21.61 MB / 0.5261 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.0126/14.56, allocations: 4.538 MB / 5.598 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007818/14.57, allocations: 4.329 MB / 5.603 GB, free: 20.83 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/14.57, allocations: 1.438 kB / 5.603 GB, free: 20.83 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001931/14.57, allocations: 1.136 MB / 5.604 GB, free: 20.82 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004816/14.57, allocations: 0.9116 MB / 5.605 GB, free: 20.77 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007003/14.58, allocations: 3.695 MB / 5.608 GB, free: 20.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/14.58, allocations: 1.713 MB / 5.61 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005944/14.59, allocations: 1.229 MB / 5.611 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007895/14.59, allocations: 225.9 kB / 5.611 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of SimCode: time 9.72e-07/14.59, allocations: 0 / 5.611 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.1156/14.7, allocations: 85.34 MB / 5.695 GB, free: 15.96 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe 2>&1)