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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003864/0.003864, allocations: 173.8 kB / 7.448 MB, free: 2.508 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.455/1.455, allocations: 170.6 MB / 178.4 MB, free: 15.37 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.001804/0.001804, allocations: 119.8 kB / 217.7 MB, free: 8.137 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.1983/0.1983, allocations: 37.97 MB / 294.8 MB, free: 9.469 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.558e-06/9.588e-06, allocations: 0.9062 kB / 349.5 MB, free: 37 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1201, allocations: 48.7 MB / 398.2 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.102/8.223, allocations: 3.679 GB / 4.067 GB, free: 21.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/8.223, allocations: 89.73 kB / 4.067 GB, free: 21.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 6.8/15.02, allocations: 1.447 GB / 5.514 GB, free: 28.79 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002369/15.02, allocations: 63.33 kB / 5.514 GB, free: 28.79 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.04081/15.06, allocations: 7.326 MB / 5.521 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/15.06, allocations: 11.06 kB / 5.521 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002409/15.07, allocations: 289.5 kB / 5.522 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006391/15.07, allocations: 1.634 MB / 5.523 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/15.07, allocations: 69.98 kB / 5.523 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00102/15.07, allocations: 104 kB / 5.523 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009394/15.08, allocations: 3.159 MB / 5.526 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006156/15.09, allocations: 2.859 MB / 5.529 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.504e-05/15.09, allocations: 3.609 kB / 5.529 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002545/15.09, allocations: 7.375 kB / 5.529 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001843/15.09, allocations: 196.4 kB / 5.529 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02171/15.11, allocations: 11.37 MB / 5.541 GB, free: 20.42 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/15.11, allocations: 1.203 MB / 5.542 GB, free: 20.4 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/15.12, allocations: 0.988 MB / 5.543 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001457/15.12, allocations: 1.677 MB / 5.544 GB, free: 18.69 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/15.12, allocations: 55.75 kB / 5.544 GB, free: 18.65 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 3.296e-06/15.12, allocations: 0 / 5.544 GB, free: 18.65 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165): time 0.02737/15.14, allocations: 7.162 MB / 5.551 GB, free: 17.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/15.14, allocations: 200 kB / 5.552 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00184/15.15, allocations: 1.198 MB / 5.553 GB, free: 17.49 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002691/15.15, allocations: 30.55 kB / 5.553 GB, free: 17.46 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004107/15.15, allocations: 0.8197 MB / 5.554 GB, free: 16.95 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000574/15.15, allocations: 0.561 MB / 5.554 GB, free: 16.59 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/15.15, allocations: 0 / 5.554 GB, free: 16.59 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001543/15.15, allocations: 400.2 kB / 5.554 GB, free: 16.28 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001706/15.15, allocations: 1.098 MB / 5.556 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001936/15.15, allocations: 1.618 MB / 5.557 GB, free: 15.69 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01845/15.17, allocations: 4.098 MB / 5.561 GB, free: 15.67 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.068e-05/15.17, allocations: 4.781 kB / 5.561 GB, free: 15.67 MB / 0.5105 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.02505/15.2, allocations: 6.144 MB / 5.567 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001656/15.2, allocations: 5.793 MB / 5.573 GB, free: 9.504 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.471e-05/15.2, allocations: 16.12 kB / 5.573 GB, free: 9.504 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004965/15.2, allocations: 0.9372 MB / 5.574 GB, free: 9.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002897/15.2, allocations: 0.5461 MB / 5.574 GB, free: 9.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003391/15.21, allocations: 2.22 MB / 5.576 GB, free: 8.426 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003422/15.21, allocations: 160.4 kB / 5.577 GB, free: 8.418 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004519/15.21, allocations: 175.9 kB / 5.577 GB, free: 8.418 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/15.21, allocations: 3.438 kB / 5.577 GB, free: 8.418 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0263/15.24, allocations: 6.1 MB / 5.583 GB, free: 8.355 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.772e-05/15.24, allocations: 16.62 kB / 5.583 GB, free: 8.355 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004794/15.24, allocations: 0.8557 MB / 5.584 GB, free: 8.332 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003213/15.25, allocations: 0.5488 MB / 5.584 GB, free: 8.332 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/15.25, allocations: 1.913 MB / 5.586 GB, free: 7.285 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003722/15.25, allocations: 153.2 kB / 5.586 GB, free: 7.273 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005101/15.25, allocations: 180.1 kB / 5.586 GB, free: 7.273 MB / 0.5105 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.001039/15.25, allocations: 201.3 kB / 5.586 GB, free: 7.148 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006186/15.26, allocations: 184.6 kB / 5.587 GB, free: 7.055 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00998/15.27, allocations: 4.127 MB / 5.591 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/15.27, allocations: 17.97 kB / 5.591 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/15.27, allocations: 1.375 kB / 5.591 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.897e-05/15.27, allocations: 8.766 kB / 5.591 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/15.28, allocations: 5.135 MB / 5.596 GB, free: 6.305 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/15.28, allocations: 4.344 kB / 5.596 GB, free: 6.305 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/15.28, allocations: 306.1 kB / 5.596 GB, free: 6.305 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003226/15.28, allocations: 0.786 MB / 5.597 GB, free: 6.281 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002785/15.28, allocations: 49.2 kB / 5.597 GB, free: 6.281 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003128/15.29, allocations: 2.102 MB / 5.599 GB, free: 21.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-05/15.29, allocations: 13.27 kB / 5.599 GB, free: 21.22 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009855/15.3, allocations: 4.348 MB / 5.603 GB, free: 20.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/15.3, allocations: 322.8 kB / 5.603 GB, free: 20.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004999/15.3, allocations: 15.69 kB / 5.603 GB, free: 20.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002025/15.3, allocations: 123.6 kB / 5.604 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000315/15.3, allocations: 124.2 kB / 5.604 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00031/15.3, allocations: 106.6 kB / 5.604 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.00179/15.3, allocations: 0.9236 MB / 5.605 GB, free: 20.12 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01568/15.32, allocations: 3.013 MB / 5.608 GB, free: 19.52 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.01621/15.33, allocations: 4.622 MB / 5.612 GB, free: 18.46 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01092/15.34, allocations: 4.328 MB / 5.616 GB, free: 18.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.758e-05/15.34, allocations: 3.281 kB / 5.616 GB, free: 18.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002426/15.35, allocations: 1.164 MB / 5.618 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005955/15.35, allocations: 0.8853 MB / 5.618 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/15.36, allocations: 3.908 MB / 5.622 GB, free: 17.42 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003172/15.37, allocations: 2.068 MB / 5.624 GB, free: 16.68 MB / 0.5261 GB Notification: Performance of SimCode: time 1.162e-06/15.37, allocations: 1.5 kB / 5.624 GB, free: 16.68 MB / 0.5261 GB Notification: Performance of Templates: time 0.5609/15.93, allocations: 100.8 MB / 5.723 GB, free: 76.42 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)