Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0024/0.002399, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.279/2.279, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001149/0.001148, allocations: 98.56 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2917/0.2917, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.596e-05/3.624e-05, allocations: 0 / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1413, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.67/11.82, allocations: 3.621 GB / 4.094 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/11.82, allocations: 90.02 kB / 4.094 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 9.753/21.57, allocations: 1.635 GB / 5.729 GB, free: 20.46 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.384e-06/21.57, allocations: 0 / 5.729 GB, free: 20.46 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0003888/21.57, allocations: 86.06 kB / 5.729 GB, free: 20.44 MB / 0.5886 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.04282/21.61, allocations: 8.735 MB / 5.738 GB, free: 12.73 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.839e-05/21.61, allocations: 12.03 kB / 5.738 GB, free: 12.71 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002625/21.61, allocations: 421.6 kB / 5.738 GB, free: 12.36 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003547/21.62, allocations: 395.6 kB / 5.738 GB, free: 11.98 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009401/21.63, allocations: 2.101 MB / 5.74 GB, free: 9.926 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007483/21.63, allocations: 0.497 MB / 5.741 GB, free: 9.371 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002025/21.63, allocations: 287.9 kB / 5.741 GB, free: 9.09 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01756/21.65, allocations: 4.823 MB / 5.746 GB, free: 4.004 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001603/21.65, allocations: 15.86 kB / 5.746 GB, free: 3.988 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001284/21.65, allocations: 127.9 kB / 5.746 GB, free: 3.863 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004847/21.65, allocations: 257.2 kB / 5.746 GB, free: 3.609 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/21.67, allocations: 4.854 MB / 5.751 GB, free: 14.74 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06203/21.73, allocations: 20.69 MB / 5.771 GB, free: 8.914 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009169/21.74, allocations: 2.645 MB / 5.774 GB, free: 6.293 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005252/21.74, allocations: 1.56 MB / 5.775 GB, free: 4.734 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00494/21.75, allocations: 3.351 MB / 5.779 GB, free: 0.6992 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001285/21.75, allocations: 64.8 kB / 5.779 GB, free: 0.6289 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=235): time 5.3e-06/21.75, allocations: 0 / 5.779 GB, free: 0.6289 MB / 0.6198 GB Notification: Performance of matching and sorting (n=271): time 0.7115/22.46, allocations: 14.25 MB / 5.793 GB, free: 51.35 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/22.46, allocations: 243 kB / 5.793 GB, free: 51.09 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01052/22.47, allocations: 2.149 MB / 5.795 GB, free: 50.84 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.001646/22.47, allocations: 85.42 kB / 5.795 GB, free: 50.81 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.004164/22.48, allocations: 1.365 MB / 5.796 GB, free: 50.22 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.003006/22.48, allocations: 0.96 MB / 5.797 GB, free: 49.75 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002876/22.48, allocations: 81.53 kB / 5.797 GB, free: 49.75 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0006983/22.48, allocations: 473.4 kB / 5.798 GB, free: 49.43 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01154/22.5, allocations: 1.828 MB / 5.8 GB, free: 49.42 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007444/22.5, allocations: 3.023 MB / 5.803 GB, free: 48.04 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007516/22.51, allocations: 2.387 MB / 5.805 GB, free: 47.86 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.255e-05/22.51, allocations: 10.53 kB / 5.805 GB, free: 47.86 MB / 0.6198 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.02178/22.53, allocations: 5.603 MB / 5.81 GB, free: 47.51 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.003874/22.54, allocations: 14.57 MB / 5.825 GB, free: 32.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001937/22.54, allocations: 40.12 kB / 5.825 GB, free: 32.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005161/22.54, allocations: 0.7261 MB / 5.825 GB, free: 32.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007995/22.55, allocations: 0.9209 MB / 5.826 GB, free: 32.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004098/22.55, allocations: 2.454 MB / 5.829 GB, free: 30.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008439/22.56, allocations: 385.4 kB / 5.829 GB, free: 30.74 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0018/22.56, allocations: 285.7 kB / 5.829 GB, free: 30.74 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/22.56, allocations: 3.719 kB / 5.829 GB, free: 30.74 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02188/22.59, allocations: 5.377 MB / 5.834 GB, free: 30.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001518/22.59, allocations: 37.62 kB / 5.835 GB, free: 30.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005269/22.59, allocations: 0.734 MB / 5.835 GB, free: 30.48 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008235/22.6, allocations: 0.9109 MB / 5.836 GB, free: 30.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004131/22.6, allocations: 2.453 MB / 5.839 GB, free: 28.92 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006671/22.61, allocations: 376.5 kB / 5.839 GB, free: 28.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001674/22.61, allocations: 277.5 kB / 5.839 GB, free: 28.91 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.002282/22.61, allocations: 361.1 kB / 5.839 GB, free: 28.8 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00153/22.62, allocations: 307.1 kB / 5.84 GB, free: 28.64 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02063/22.64, allocations: 5.723 MB / 5.845 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.392e-05/22.64, allocations: 38.34 kB / 5.845 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/22.64, allocations: 2.531 kB / 5.845 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001015/22.64, allocations: 14.66 kB / 5.845 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03823/22.68, allocations: 9.516 MB / 5.855 GB, free: 27.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.393e-05/22.68, allocations: 1.719 kB / 5.855 GB, free: 27.82 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005492/22.68, allocations: 0.5756 MB / 5.855 GB, free: 27.82 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006865/22.69, allocations: 0.9069 MB / 5.856 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001102/22.69, allocations: 126.8 kB / 5.856 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003348/22.69, allocations: 2.336 MB / 5.859 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.485e-06/22.69, allocations: 10.27 kB / 5.859 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02894/22.72, allocations: 7.66 MB / 5.866 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004036/22.73, allocations: 0.8911 MB / 5.867 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001661/22.73, allocations: 75.92 kB / 5.867 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006318/22.73, allocations: 279.6 kB / 5.867 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/22.73, allocations: 218.7 kB / 5.867 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008066/22.74, allocations: 186.1 kB / 5.868 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.004202/22.74, allocations: 1.588 MB / 5.869 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.824e-06/22.74, allocations: 5.703 kB / 5.869 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02379/22.76, allocations: 4.281 MB / 5.873 GB, free: 25.17 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 (297): * Single equations (assignments): 285 * 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.05096/22.81, allocations: 13.56 MB / 5.887 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.02364/22.84, allocations: 7.86 MB / 5.894 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/22.84, allocations: 4.25 kB / 5.894 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.007169/22.85, allocations: 2.239 MB / 5.897 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01201/22.86, allocations: 1.33 MB / 5.898 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03546/22.89, allocations: 8.736 MB / 5.906 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002423/22.9, allocations: 2.283 MB / 5.909 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00499/22.9, allocations: 1.515 MB / 5.91 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of SimCode: time 1.994e-06/22.9, allocations: 0 / 5.91 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.898/29.8, allocations: 148.1 MB / 6.055 GB, free: 81.01 MB / 0.6511 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat does not exist to compare? outputFormat=mat