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") [: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.2+maint.om/package.mo): time 0.003479/0.003479, allocations: 182.9 kB / 7.456 MB, free: 2.508 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.245/1.245, allocations: 194.2 MB / 202.1 MB, free: 8.734 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.001909/0.001909, allocations: 126 kB / 247.1 MB, free: 6.391 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.1747/0.1747, allocations: 39.93 MB / 331.9 MB, free: 4.98 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.074e-06/7.104e-06, allocations: 0 / 392.8 MB, free: 75.9 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.112, allocations: 54.87 MB / 447.6 MB, free: 21.01 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.377/6.49, allocations: 3.685 GB / 4.122 GB, free: 161.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/6.49, allocations: 80.47 kB / 4.122 GB, free: 161.1 MB / 474.7 MB Notification: Performance of FrontEnd: time 5.287/11.78, allocations: 1.457 GB / 5.579 GB, free: 35.79 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002256/11.78, allocations: 60.03 kB / 5.579 GB, free: 35.77 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.02558/11.8, allocations: 7.325 MB / 5.586 GB, free: 31.61 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/11.8, allocations: 9.344 kB / 5.587 GB, free: 31.61 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002068/11.8, allocations: 289.8 kB / 5.587 GB, free: 31.48 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004577/11.81, allocations: 1.638 MB / 5.588 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002052/11.81, allocations: 64.77 kB / 5.588 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001297/11.81, allocations: 107.4 kB / 5.589 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007377/11.82, allocations: 3.155 MB / 5.592 GB, free: 31.01 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006472/11.82, allocations: 2.859 MB / 5.594 GB, free: 30.77 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.708e-05/11.83, allocations: 4.156 kB / 5.594 GB, free: 30.77 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005275/11.83, allocations: 3.281 kB / 5.594 GB, free: 30.77 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001985/11.83, allocations: 196.3 kB / 5.595 GB, free: 30.77 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02279/11.85, allocations: 11.76 MB / 5.606 GB, free: 26.13 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/11.85, allocations: 1.204 MB / 5.607 GB, free: 26.11 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/11.85, allocations: 0.9874 MB / 5.608 GB, free: 26.1 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/11.85, allocations: 1.682 MB / 5.61 GB, free: 24.39 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/11.85, allocations: 50 kB / 5.61 GB, free: 24.36 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 3.998e-06/11.85, allocations: 1.094 kB / 5.61 GB, free: 24.36 MB / 0.5573 GB Notification: Performance of matching and sorting (n=165): time 0.02974/11.88, allocations: 7.169 MB / 5.617 GB, free: 23.58 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/11.88, allocations: 200.4 kB / 5.617 GB, free: 23.36 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002065/11.89, allocations: 1.202 MB / 5.618 GB, free: 22.96 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004061/11.89, allocations: 28.73 kB / 5.618 GB, free: 22.93 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004793/11.89, allocations: 0.819 MB / 5.619 GB, free: 22.31 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006772/11.89, allocations: 0.5546 MB / 5.62 GB, free: 21.88 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002881/11.89, allocations: 2.656 kB / 5.62 GB, free: 21.88 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001637/11.89, allocations: 399.9 kB / 5.62 GB, free: 21.53 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001816/11.89, allocations: 1.097 MB / 5.621 GB, free: 21.1 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002004/11.89, allocations: 1.63 MB / 5.623 GB, free: 20.04 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01894/11.91, allocations: 4.098 MB / 5.627 GB, free: 19.28 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.223e-05/11.91, allocations: 3.812 kB / 5.627 GB, free: 19.28 MB / 0.5573 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.02658/11.94, allocations: 6.131 MB / 5.633 GB, free: 16.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009106/11.94, allocations: 5.805 MB / 5.638 GB, free: 10.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.558e-05/11.94, allocations: 12.52 kB / 5.638 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005043/11.94, allocations: 0.9325 MB / 5.639 GB, free: 9.371 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002868/11.95, allocations: 0.5419 MB / 5.64 GB, free: 8.922 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003278/11.95, allocations: 2.224 MB / 5.642 GB, free: 6.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003358/11.95, allocations: 160.9 kB / 5.642 GB, free: 6.734 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007398/11.95, allocations: 180.9 kB / 5.642 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/11.95, allocations: 0 / 5.642 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02659/11.98, allocations: 6.102 MB / 5.648 GB, free: 2.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.761e-05/11.98, allocations: 14.95 kB / 5.648 GB, free: 2.059 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004644/11.99, allocations: 0.8499 MB / 5.649 GB, free: 1.469 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002853/11.99, allocations: 0.5546 MB / 5.65 GB, free: 1.008 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/11.99, allocations: 1.925 MB / 5.652 GB, free: 15.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002973/11.99, allocations: 156.8 kB / 5.652 GB, free: 15.09 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006741/11.99, allocations: 170.5 kB / 5.652 GB, free: 14.95 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.0008942/12, allocations: 199.6 kB / 5.652 GB, free: 14.75 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005786/12, allocations: 181.8 kB / 5.652 GB, free: 14.57 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009928/12.01, allocations: 4.131 MB / 5.656 GB, free: 11.17 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/12.01, allocations: 16 kB / 5.656 GB, free: 11.15 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/12.01, allocations: 3 kB / 5.656 GB, free: 11.15 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.891e-05/12.01, allocations: 8.953 kB / 5.656 GB, free: 11.15 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/12.02, allocations: 5.149 MB / 5.661 GB, free: 6.988 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/12.02, allocations: 4 kB / 5.661 GB, free: 6.984 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/12.02, allocations: 307.3 kB / 5.662 GB, free: 6.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003299/12.02, allocations: 0.7881 MB / 5.662 GB, free: 6.113 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002327/12.02, allocations: 49.69 kB / 5.662 GB, free: 6.078 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003112/12.03, allocations: 2.104 MB / 5.664 GB, free: 4.074 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-05/12.03, allocations: 7.906 kB / 5.664 GB, free: 4.066 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008944/12.04, allocations: 4.353 MB / 5.669 GB, free: 12 kB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.273/12.31, allocations: 327.5 kB / 5.669 GB, free: 78.48 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/12.31, allocations: 11.75 kB / 5.669 GB, free: 78.48 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002263/12.31, allocations: 121.4 kB / 5.669 GB, free: 78.48 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002757/12.31, allocations: 119.1 kB / 5.669 GB, free: 78.48 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002617/12.31, allocations: 105.3 kB / 5.669 GB, free: 78.48 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001429/12.31, allocations: 0.9291 MB / 5.67 GB, free: 78.38 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0105/12.33, allocations: 3.012 MB / 5.673 GB, free: 78.38 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.0129/12.34, allocations: 4.614 MB / 5.678 GB, free: 77.97 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008569/12.35, allocations: 4.324 MB / 5.682 GB, free: 77.81 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/12.35, allocations: 2.938 kB / 5.682 GB, free: 77.81 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002074/12.35, allocations: 1.156 MB / 5.683 GB, free: 77.81 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004695/12.35, allocations: 0.8772 MB / 5.684 GB, free: 77.79 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009074/12.36, allocations: 3.921 MB / 5.688 GB, free: 77 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002593/12.37, allocations: 2.071 MB / 5.69 GB, free: 76.25 MB / 0.573 GB Notification: Performance of SimCode: time 1.903e-06/12.37, allocations: 0 / 5.69 GB, free: 76.25 MB / 0.573 GB Notification: Performance of Templates: time 0.1429/12.51, allocations: 100.8 MB / 5.788 GB, free: 70.54 MB / 0.573 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)