Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junction1.mC_scaled.1.|junction1.medium.T|junction1.medium.Xi.1.|junction1.medium.p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junction1.mC_scaled.1.|junction1.medium.T|junction1.medium.Xi.1.|junction1.medium.p",fileNamePrefix="ModelicaTest_3.2.3_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.3+maint.om/package.mo): time 0.0009358/0.0009359, allocations: 189.7 kB / 7.803 MB, free: 2.449 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.07/1.07, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00084/0.00084, allocations: 91.7 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1609/0.1609, allocations: 43.5 MB / 352.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.462e-06/6.492e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2303, allocations: 58.84 MB / 476.6 MB, free: 5.305 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.984/5.214, allocations: 3.632 GB / 4.097 GB, free: 38.81 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001712/5.214, allocations: 87.94 kB / 4.098 GB, free: 38.73 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.382/9.596, allocations: 1.462 GB / 5.559 GB, free: 22.04 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001327/9.596, allocations: 63.38 kB / 5.559 GB, free: 21.98 MB / 0.573 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.02169/9.618, allocations: 7.327 MB / 5.567 GB, free: 15.31 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/9.618, allocations: 8.594 kB / 5.567 GB, free: 15.3 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001325/9.62, allocations: 279.9 kB / 5.567 GB, free: 15.03 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003123/9.623, allocations: 1.585 MB / 5.568 GB, free: 13.66 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.954e-05/9.623, allocations: 65.27 kB / 5.568 GB, free: 13.6 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002786/9.623, allocations: 112.5 kB / 5.569 GB, free: 13.49 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004084/9.627, allocations: 3.168 MB / 5.572 GB, free: 10.48 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003553/9.631, allocations: 2.868 MB / 5.574 GB, free: 7.547 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.067e-05/9.631, allocations: 7.234 kB / 5.574 GB, free: 7.543 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002406/9.631, allocations: 11.92 kB / 5.574 GB, free: 7.531 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001293/9.631, allocations: 195.7 kB / 5.575 GB, free: 7.34 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01857/9.65, allocations: 11.87 MB / 5.586 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002025/9.652, allocations: 1.345 MB / 5.588 GB, free: 9.391 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001424/9.653, allocations: 1.095 MB / 5.589 GB, free: 8.293 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001415/9.655, allocations: 1.668 MB / 5.59 GB, free: 6.293 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/9.655, allocations: 63.81 kB / 5.59 GB, free: 6.223 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=153): time 2.935e-06/9.655, allocations: 0 / 5.59 GB, free: 6.223 MB / 0.5886 GB Notification: Performance of matching and sorting (n=165): time 0.2478/9.902, allocations: 7.457 MB / 5.598 GB, free: 75.2 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/9.903, allocations: 202.5 kB / 5.598 GB, free: 74.98 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/9.904, allocations: 1.258 MB / 5.599 GB, free: 74.84 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0005284/9.905, allocations: 29.61 kB / 5.599 GB, free: 74.81 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003856/9.905, allocations: 0.7837 MB / 5.6 GB, free: 74.71 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005229/9.906, allocations: 0.5527 MB / 5.6 GB, free: 74.42 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/9.906, allocations: 0 / 5.6 GB, free: 74.42 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001106/9.906, allocations: 395.1 kB / 5.601 GB, free: 74.11 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/9.908, allocations: 1.245 MB / 5.602 GB, free: 74.11 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/9.909, allocations: 1.575 MB / 5.603 GB, free: 73.79 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01682/9.926, allocations: 4.167 MB / 5.608 GB, free: 73.77 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.543e-05/9.926, allocations: 7.203 kB / 5.608 GB, free: 73.77 MB / 0.5886 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.02333/9.95, allocations: 6.597 MB / 5.614 GB, free: 73.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004561/9.95, allocations: 2.911 MB / 5.617 GB, free: 70.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/9.95, allocations: 5.031 kB / 5.617 GB, free: 70.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004326/9.954, allocations: 0.9303 MB / 5.618 GB, free: 70.59 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/9.957, allocations: 0.5072 MB / 5.618 GB, free: 70.59 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002873/9.96, allocations: 2.222 MB / 5.62 GB, free: 69.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003339/9.963, allocations: 160.1 kB / 5.621 GB, free: 69.53 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004259/9.964, allocations: 169.5 kB / 5.621 GB, free: 69.53 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/9.964, allocations: 5.875 kB / 5.621 GB, free: 69.53 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02389/9.987, allocations: 6.191 MB / 5.627 GB, free: 69.47 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3e-05/9.988, allocations: 6.812 kB / 5.627 GB, free: 69.47 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004265/9.992, allocations: 0.8598 MB / 5.628 GB, free: 69.45 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002742/9.995, allocations: 0.5033 MB / 5.628 GB, free: 69.45 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002174/9.997, allocations: 1.929 MB / 5.63 GB, free: 68.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002744/10, allocations: 151.1 kB / 5.63 GB, free: 68.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006462/10, allocations: 164.9 kB / 5.63 GB, free: 68.4 MB / 0.5886 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: 33 * 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 (250): * Single equations (assignments): 246 * 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.001046/10, allocations: 180.5 kB / 5.63 GB, free: 68.29 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006509/10, allocations: 183.3 kB / 5.631 GB, free: 68.2 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008958/10.01, allocations: 4.205 MB / 5.635 GB, free: 67.96 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/10.01, allocations: 16.78 kB / 5.635 GB, free: 67.96 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/10.01, allocations: 0 / 5.635 GB, free: 67.96 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.117e-05/10.01, allocations: 10.92 kB / 5.635 GB, free: 67.96 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/10.02, allocations: 5.44 MB / 5.64 GB, free: 67.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/10.02, allocations: 3.781 kB / 5.64 GB, free: 67.49 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/10.02, allocations: 314.1 kB / 5.64 GB, free: 67.49 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002945/10.03, allocations: 0.7763 MB / 5.641 GB, free: 67.47 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002096/10.03, allocations: 46.38 kB / 5.641 GB, free: 67.47 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002685/10.03, allocations: 2.117 MB / 5.643 GB, free: 66.42 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/10.03, allocations: 11.7 kB / 5.643 GB, free: 66.42 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009111/10.04, allocations: 4.459 MB / 5.648 GB, free: 65.63 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/10.04, allocations: 347.1 kB / 5.648 GB, free: 65.44 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007726/10.04, allocations: 19.12 kB / 5.648 GB, free: 65.44 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002428/10.04, allocations: 131.8 kB / 5.648 GB, free: 65.43 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002668/10.04, allocations: 119.1 kB / 5.648 GB, free: 65.43 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003441/10.04, allocations: 121.1 kB / 5.648 GB, free: 65.43 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001764/10.05, allocations: 1.055 MB / 5.649 GB, free: 65.32 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01088/10.06, allocations: 3.088 MB / 5.652 GB, free: 65.32 MB / 0.5886 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.01185/10.07, allocations: 4.632 MB / 5.657 GB, free: 64.87 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008926/10.08, allocations: 4.579 MB / 5.661 GB, free: 64.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/10.08, allocations: 2.594 kB / 5.661 GB, free: 64.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002099/10.08, allocations: 1.191 MB / 5.663 GB, free: 64.69 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004746/10.08, allocations: 0.8831 MB / 5.663 GB, free: 64.66 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008499/10.09, allocations: 3.667 MB / 5.667 GB, free: 63.85 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002686/10.1, allocations: 2.066 MB / 5.669 GB, free: 63.11 MB / 0.5886 GB Notification: Performance of SimCode: time 7.11e-07/10.1, allocations: 0 / 5.669 GB, free: 63.11 MB / 0.5886 GB Notification: Performance of Templates: time 0.1304/10.23, allocations: 105.1 MB / 5.772 GB, free: 56.8 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestJunctionTraceSubstances/TestJunctionTraceSubstances.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches