Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances",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.002321/0.00232, allocations: 181.4 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.132/2.132, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001083/0.001083, allocations: 82.66 kB / 267.5 MB, free: 14.04 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.2873/0.2873, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.749e-05/3.77e-05, allocations: 4 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1223, allocations: 58.85 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.48/11.6, allocations: 3.633 GB / 4.106 GB, free: 145.1 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003191/11.6, allocations: 83.16 kB / 4.106 GB, free: 145.1 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 9.293/20.9, allocations: 1.462 GB / 5.568 GB, free: 30.86 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.204e-06/20.9, allocations: 0 / 5.568 GB, free: 30.86 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0003582/20.9, allocations: 70.72 kB / 5.568 GB, free: 30.86 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: 498 * Number of variables: 498 Notification: Performance of Generate backend data structure: time 0.03754/20.93, allocations: 7.28 MB / 5.575 GB, free: 27.5 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/20.93, allocations: 9.312 kB / 5.575 GB, free: 27.5 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001789/20.94, allocations: 275.3 kB / 5.575 GB, free: 27.46 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002796/20.94, allocations: 285.6 kB / 5.575 GB, free: 27.33 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007251/20.95, allocations: 1.555 MB / 5.577 GB, free: 26.93 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003797/20.95, allocations: 154.8 kB / 5.577 GB, free: 26.92 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001554/20.95, allocations: 187.7 kB / 5.577 GB, free: 26.92 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01221/20.96, allocations: 3.088 MB / 5.58 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.933e-05/20.96, allocations: 0 / 5.58 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001081/20.96, allocations: 86.16 kB / 5.58 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004125/20.96, allocations: 182 kB / 5.58 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01182/20.97, allocations: 3.402 MB / 5.584 GB, free: 26.66 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03982/21.01, allocations: 12.15 MB / 5.596 GB, free: 22.12 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005909/21.02, allocations: 1.762 MB / 5.597 GB, free: 22.09 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003437/21.02, allocations: 1.107 MB / 5.598 GB, free: 22.07 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002188/21.03, allocations: 1.675 MB / 5.6 GB, free: 20.39 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.316e-05/21.03, allocations: 60.02 kB / 5.6 GB, free: 20.35 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004309/21.03, allocations: 365.2 kB / 5.6 GB, free: 20.23 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=157): time 1.442e-05/21.03, allocations: 0 / 5.6 GB, free: 20.23 MB / 0.5886 GB Notification: Performance of matching and sorting (n=169): time 0.04133/21.07, allocations: 7.412 MB / 5.608 GB, free: 19.48 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.368e-05/21.07, allocations: 199.5 kB / 5.608 GB, free: 19.26 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004309/21.08, allocations: 1.773 MB / 5.61 GB, free: 19.02 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0008401/21.08, allocations: 62.05 kB / 5.61 GB, free: 18.99 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008698/21.08, allocations: 0.8918 MB / 5.611 GB, free: 18.55 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001171/21.08, allocations: 0.5902 MB / 5.611 GB, free: 18.18 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004648/21.08, allocations: 43.81 kB / 5.611 GB, free: 18.18 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002364/21.08, allocations: 395.3 kB / 5.612 GB, free: 17.86 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004102/21.08, allocations: 1.229 MB / 5.613 GB, free: 17.86 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004625/21.09, allocations: 1.566 MB / 5.614 GB, free: 17.52 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004626/21.09, allocations: 1.478 MB / 5.616 GB, free: 17.43 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.467e-05/21.09, allocations: 2.734 kB / 5.616 GB, free: 17.43 MB / 0.5886 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01741/21.11, allocations: 3.915 MB / 5.62 GB, free: 17.23 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009874/21.11, allocations: 2.942 MB / 5.622 GB, free: 14.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.476e-05/21.11, allocations: 6.594 kB / 5.622 GB, free: 14.18 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/21.12, allocations: 1.228 MB / 5.624 GB, free: 14.16 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004975/21.13, allocations: 0.4977 MB / 5.624 GB, free: 14.16 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004005/21.13, allocations: 2.023 MB / 5.626 GB, free: 13.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005843/21.14, allocations: 196 kB / 5.626 GB, free: 13.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/21.14, allocations: 165.7 kB / 5.626 GB, free: 13.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/21.14, allocations: 6.594 kB / 5.626 GB, free: 13.1 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01313/21.15, allocations: 3.388 MB / 5.63 GB, free: 12.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-05/21.15, allocations: 8.594 kB / 5.63 GB, free: 12.97 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008444/21.16, allocations: 0.8733 MB / 5.631 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005001/21.17, allocations: 0.5029 MB / 5.631 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/21.17, allocations: 1.804 MB / 5.633 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004424/21.17, allocations: 187.7 kB / 5.633 GB, free: 11.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008872/21.18, allocations: 169.3 kB / 5.633 GB, free: 11.9 MB / 0.5886 GB 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,4 15} Notification: Performance of prepare postOptimizeDAE: time 0.00109/21.18, allocations: 219.4 kB / 5.633 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008867/21.18, allocations: 230.9 kB / 5.634 GB, free: 11.67 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0139/21.19, allocations: 4 MB / 5.638 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-05/21.19, allocations: 19.25 kB / 5.638 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/21.19, allocations: 1.125 kB / 5.638 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.247e-05/21.19, allocations: 10.36 kB / 5.638 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02225/21.21, allocations: 6.216 MB / 5.644 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-05/21.21, allocations: 3.719 kB / 5.644 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003404/21.22, allocations: 338.5 kB / 5.644 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009538/21.23, allocations: 1.077 MB / 5.645 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007577/21.23, allocations: 76.98 kB / 5.645 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004046/21.23, allocations: 1.944 MB / 5.647 GB, free: 25.81 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/21.23, allocations: 4.312 kB / 5.647 GB, free: 25.81 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01444/21.25, allocations: 4.788 MB / 5.652 GB, free: 24.93 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/21.25, allocations: 369.1 kB / 5.652 GB, free: 24.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001516/21.25, allocations: 45.72 kB / 5.652 GB, free: 24.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004958/21.25, allocations: 159.4 kB / 5.652 GB, free: 24.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008591/21.26, allocations: 147.5 kB / 5.652 GB, free: 24.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006455/21.26, allocations: 137.6 kB / 5.653 GB, free: 24.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.003872/21.26, allocations: 1.386 MB / 5.654 GB, free: 24.54 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.142e-06/21.26, allocations: 2.625 kB / 5.654 GB, free: 24.54 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01645/21.28, allocations: 3.247 MB / 5.657 GB, free: 23.94 MB / 0.6042 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 (166): * Single equations (assignments): 164 * 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.04041/21.32, allocations: 10.5 MB / 5.667 GB, free: 20.63 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.02198/21.34, allocations: 4.801 MB / 5.672 GB, free: 20.33 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-05/21.34, allocations: 4.375 kB / 5.672 GB, free: 20.33 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.006543/21.35, allocations: 1.36 MB / 5.673 GB, free: 20.31 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01713/21.36, allocations: 1.249 MB / 5.675 GB, free: 20.26 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02929/21.39, allocations: 5.368 MB / 5.68 GB, free: 18.88 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003409/21.4, allocations: 1.713 MB / 5.681 GB, free: 18.14 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005815/21.4, allocations: 1.016 MB / 5.682 GB, free: 18.13 MB / 0.6042 GB Notification: Performance of SimCode: time 1.764e-06/21.4, allocations: 3.5 kB / 5.682 GB, free: 18.13 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.838/27.24, allocations: 102.5 MB / 5.783 GB, free: 59.34 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances_res.mat does not exist to compare? outputFormat=mat