Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume1.mC_scaled.1.|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p|volume2.mC_scaled.1.|volume2.medium.T|volume2.medium.Xi.1.|volume2.medium.p|volume3.mC_scaled.1.|volume3.medium.T|volume3.medium.Xi.1.|volume3.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume1.mC_scaled.1.|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p|volume2.mC_scaled.1.|volume2.medium.T|volume2.medium.Xi.1.|volume2.medium.p|volume3.mC_scaled.1.|volume3.medium.T|volume3.medium.Xi.1.|volume3.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") [: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 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 174.8 kB / 8.518 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 221.4 MB / 230.3 MB, free: 7.66 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001055, allocations: 86.06 kB / 281.2 MB, free: 5.469 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1678/0.1678, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.708e-06/9.748e-06, allocations: 4.219 kB / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1562, allocations: 61.91 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.95/6.106, allocations: 3.455 GB / 3.949 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/6.106, allocations: 87.95 kB / 3.949 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 5.53/11.64, allocations: 1.584 GB / 5.533 GB, free: 22.66 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002723/11.64, allocations: 85.67 kB / 5.533 GB, free: 22.58 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 752 * Number of variables: 752 Notification: Performance of Generate backend data structure: time 0.03061/11.67, allocations: 8.431 MB / 5.542 GB, free: 14.38 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/11.67, allocations: 15.91 kB / 5.542 GB, free: 14.36 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002643/11.67, allocations: 399.8 kB / 5.542 GB, free: 13.96 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005948/11.68, allocations: 2.108 MB / 5.544 GB, free: 11.8 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004154/11.68, allocations: 404.7 kB / 5.544 GB, free: 11.35 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001342/11.68, allocations: 172 kB / 5.545 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007942/11.69, allocations: 4.47 MB / 5.549 GB, free: 6.703 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009732/11.7, allocations: 4.488 MB / 5.553 GB, free: 1.961 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001078/11.7, allocations: 11.84 kB / 5.553 GB, free: 1.949 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006351/11.7, allocations: 12 kB / 5.553 GB, free: 1.938 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003027/11.7, allocations: 277.2 kB / 5.554 GB, free: 1.664 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3369/12.03, allocations: 20.48 MB / 5.574 GB, free: 66.83 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002612/12.04, allocations: 1.799 MB / 5.575 GB, free: 66.81 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/12.04, allocations: 1.523 MB / 5.577 GB, free: 66.8 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002043/12.04, allocations: 3.319 MB / 5.58 GB, free: 63.24 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/12.04, allocations: 67.52 kB / 5.58 GB, free: 63.2 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=232): time 4.048e-06/12.04, allocations: 0 / 5.58 GB, free: 63.2 MB / 0.6198 GB Notification: Performance of matching and sorting (n=268): time 0.05021/12.09, allocations: 13.21 MB / 5.593 GB, free: 62.48 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/12.09, allocations: 235.6 kB / 5.593 GB, free: 62.22 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002442/12.09, allocations: 1.713 MB / 5.595 GB, free: 61.99 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.000573/12.09, allocations: 29.2 kB / 5.595 GB, free: 61.96 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006006/12.09, allocations: 1.209 MB / 5.596 GB, free: 61.37 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009227/12.09, allocations: 0.9146 MB / 5.597 GB, free: 60.9 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/12.1, allocations: 7.719 kB / 5.597 GB, free: 60.9 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001676/12.1, allocations: 463.9 kB / 5.597 GB, free: 60.59 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002574/12.1, allocations: 1.821 MB / 5.599 GB, free: 60.59 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003146/12.1, allocations: 2.994 MB / 5.602 GB, free: 59.21 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/12.11, allocations: 3.691 MB / 5.606 GB, free: 59.16 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.552e-05/12.11, allocations: 9.906 kB / 5.606 GB, free: 59.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01681/12.13, allocations: 6.719 MB / 5.612 GB, free: 58.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.002892/12.13, allocations: 14.76 MB / 5.627 GB, free: 43.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.014e-05/12.13, allocations: 37.09 kB / 5.627 GB, free: 43.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003004/12.13, allocations: 0.7352 MB / 5.627 GB, free: 43.17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004466/12.14, allocations: 0.888 MB / 5.628 GB, free: 43.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002607/12.14, allocations: 2.6 MB / 5.631 GB, free: 41.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004926/12.15, allocations: 322.6 kB / 5.631 GB, free: 41.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008447/12.15, allocations: 237.7 kB / 5.631 GB, free: 41.6 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/12.15, allocations: 3.281 kB / 5.631 GB, free: 41.6 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01527/12.16, allocations: 6.144 MB / 5.637 GB, free: 41.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-05/12.16, allocations: 43.22 kB / 5.637 GB, free: 41.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002746/12.17, allocations: 0.7341 MB / 5.638 GB, free: 41.47 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003628/12.17, allocations: 0.8918 MB / 5.639 GB, free: 41.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/12.17, allocations: 2.595 MB / 5.642 GB, free: 39.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004613/12.18, allocations: 305.5 kB / 5.642 GB, free: 39.89 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005904/12.18, allocations: 241.1 kB / 5.642 GB, free: 39.89 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * Number of states: 0 () * Number of discrete variables: 22 (traceSubstance1.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance.ind,volume1.regularFlow[1],volume1.regularFlow[2],volume1.regularFlow[3],volume2.regularFlow[1],volume2.regularFlow[2],volume2.regularFlow[3],volume3.regularFlow[1],volume3.regularFlow[2],volume3.regularFlow[3],volume3.inFlow[3],volume3.inFlow[2],volume3.inFlow[1],volume2.inFlow[3],volume2.inFlow[2],volume2.inFlow[1],volume1.inFlow[3],volume1.inFlow[2],volume1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (481): * Single equations (assignments): 474 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.001267/12.18, allocations: 227.6 kB / 5.642 GB, free: 39.79 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000699/12.18, allocations: 270.2 kB / 5.643 GB, free: 39.65 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01752/12.2, allocations: 6.846 MB / 5.649 GB, free: 39.36 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.141e-05/12.2, allocations: 40.45 kB / 5.649 GB, free: 39.36 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/12.2, allocations: 3.656 kB / 5.649 GB, free: 39.36 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.736e-05/12.2, allocations: 15.7 kB / 5.649 GB, free: 39.36 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03057/12.23, allocations: 8.493 MB / 5.658 GB, free: 38.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.65e-05/12.23, allocations: 0 / 5.658 GB, free: 38.87 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0043/12.23, allocations: 0.5293 MB / 5.658 GB, free: 38.87 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006092/12.24, allocations: 0.9159 MB / 5.659 GB, free: 38.83 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009317/12.24, allocations: 78.59 kB / 5.659 GB, free: 38.83 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003416/12.24, allocations: 2.499 MB / 5.662 GB, free: 37.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/12.24, allocations: 4.828 kB / 5.662 GB, free: 37.26 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02307/12.27, allocations: 7.123 MB / 5.669 GB, free: 36.67 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003366/12.27, allocations: 0.8369 MB / 5.669 GB, free: 36.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/12.27, allocations: 27.05 kB / 5.669 GB, free: 36.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004202/12.27, allocations: 231.4 kB / 5.67 GB, free: 36.43 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005483/12.27, allocations: 181.8 kB / 5.67 GB, free: 36.42 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005852/12.28, allocations: 146.8 kB / 5.67 GB, free: 36.42 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.002913/12.28, allocations: 1.291 MB / 5.671 GB, free: 36.27 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02112/12.3, allocations: 3.678 MB / 5.675 GB, free: 36.27 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T,volume1.mC_scaled[1],volume2.medium.p,volume2.medium.Xi[1],volume2.medium.T,volume2.mC_scaled[1],volume3.medium.p,volume3.medium.Xi[1],volume3.medium.T,volume3.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (285): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01553/12.31, allocations: 4.938 MB / 5.68 GB, free: 35.74 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.01438/12.33, allocations: 7.446 MB / 5.687 GB, free: 35.4 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/12.33, allocations: 1.062 kB / 5.687 GB, free: 35.4 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003868/12.33, allocations: 2.103 MB / 5.689 GB, free: 35.38 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006469/12.34, allocations: 1.012 MB / 5.69 GB, free: 35.36 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01693/12.36, allocations: 6.411 MB / 5.696 GB, free: 34.29 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003379/12.36, allocations: 2.69 MB / 5.699 GB, free: 33.51 MB / 0.6198 GB Notification: Performance of SimCode: time 1.212e-06/12.36, allocations: 0 / 5.699 GB, free: 33.51 MB / 0.6198 GB Notification: Performance of Templates: time 0.567/12.93, allocations: 132.3 MB / 5.828 GB, free: 68.49 MB / 0.6198 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestMultiPortTraceSubstances/TestMultiPortTraceSubstances.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches