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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 169.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 221.5 MB / 230.7 MB, free: 7.59 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.000934/0.000934, allocations: 94.98 kB / 281.6 MB, free: 5.332 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.1967/0.1967, allocations: 44.14 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.526e-05/1.508e-05, allocations: 8.156 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1287, allocations: 61.91 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.718/8.846, allocations: 3.455 GB / 3.95 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/8.847, allocations: 83.95 kB / 3.95 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 6.373/15.22, allocations: 1.569 GB / 5.519 GB, free: 26.19 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.744e-06/15.22, allocations: 0 / 5.519 GB, free: 26.19 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002198/15.22, allocations: 80.3 kB / 5.519 GB, free: 26.17 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.03291/15.25, allocations: 8.381 MB / 5.527 GB, free: 19.75 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/15.25, allocations: 11.98 kB / 5.527 GB, free: 19.74 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002174/15.25, allocations: 399.2 kB / 5.527 GB, free: 19.35 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004567/15.26, allocations: 2.098 MB / 5.53 GB, free: 17.55 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/15.26, allocations: 403.1 kB / 5.53 GB, free: 17.11 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005293/15.26, allocations: 175.8 kB / 5.53 GB, free: 16.94 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009568/15.27, allocations: 4.345 MB / 5.534 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008231/15.28, allocations: 4.386 MB / 5.539 GB, free: 8.863 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.443e-05/15.28, allocations: 15.88 kB / 5.539 GB, free: 8.848 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004118/15.28, allocations: 15.8 kB / 5.539 GB, free: 8.836 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002848/15.28, allocations: 257.2 kB / 5.539 GB, free: 8.582 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03397/15.31, allocations: 20.33 MB / 5.559 GB, free: 3.059 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004247/15.32, allocations: 2.47 MB / 5.561 GB, free: 0.6055 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.5713/15.89, allocations: 1.47 MB / 5.563 GB, free: 42.79 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002442/15.89, allocations: 3.318 MB / 5.566 GB, free: 39.22 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.921e-05/15.89, allocations: 67.52 kB / 5.566 GB, free: 39.18 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=232): time 5.049e-06/15.89, allocations: 1.875 kB / 5.566 GB, free: 39.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=268): time 0.05901/15.95, allocations: 13.21 MB / 5.579 GB, free: 38.41 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/15.95, allocations: 237 kB / 5.579 GB, free: 38.16 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003387/15.95, allocations: 1.691 MB / 5.581 GB, free: 37.93 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0008294/15.95, allocations: 29.95 kB / 5.581 GB, free: 37.9 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.00124/15.96, allocations: 1.469 MB / 5.582 GB, free: 37.31 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.001386/15.96, allocations: 0.9174 MB / 5.583 GB, free: 36.84 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002992/15.96, allocations: 0 / 5.583 GB, free: 36.84 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002046/15.96, allocations: 468.5 kB / 5.583 GB, free: 36.54 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002582/15.96, allocations: 1.766 MB / 5.585 GB, free: 36.53 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003012/15.96, allocations: 2.93 MB / 5.588 GB, free: 35.15 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/15.97, allocations: 3.618 MB / 5.592 GB, free: 35.11 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.696e-05/15.97, allocations: 9.438 kB / 5.592 GB, free: 35.11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01868/15.99, allocations: 6.599 MB / 5.598 GB, free: 34.82 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.003452/16, allocations: 14.89 MB / 5.613 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/16, allocations: 40.22 kB / 5.613 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002874/16, allocations: 0.7305 MB / 5.613 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004425/16, allocations: 0.8922 MB / 5.614 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/16.01, allocations: 2.527 MB / 5.617 GB, free: 17.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005179/16.01, allocations: 311.5 kB / 5.617 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009755/16.01, allocations: 242.9 kB / 5.617 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/16.01, allocations: 4.719 kB / 5.617 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01645/16.03, allocations: 6.048 MB / 5.623 GB, free: 17.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/16.03, allocations: 35.91 kB / 5.623 GB, free: 17.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002705/16.03, allocations: 0.7204 MB / 5.624 GB, free: 17.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004219/16.04, allocations: 0.8887 MB / 5.625 GB, free: 17.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/16.04, allocations: 2.526 MB / 5.627 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00465/16.04, allocations: 298.8 kB / 5.627 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/16.04, allocations: 238.3 kB / 5.628 GB, free: 15.69 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.001401/16.05, allocations: 239.8 kB / 5.628 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01531/16.06, allocations: 4.706 MB / 5.633 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001544/16.06, allocations: 271.3 kB / 5.633 GB, free: 15.15 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01427/16.08, allocations: 6.2 MB / 5.639 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.472e-05/16.08, allocations: 40.64 kB / 5.639 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.477e-06/16.08, allocations: 2.797 kB / 5.639 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.168e-05/16.08, allocations: 20.16 kB / 5.639 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01893/16.1, allocations: 8.288 MB / 5.647 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/16.1, allocations: 0.625 kB / 5.647 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002506/16.1, allocations: 0.5334 MB / 5.648 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00378/16.1, allocations: 0.8959 MB / 5.648 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005395/16.1, allocations: 74.55 kB / 5.648 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/16.11, allocations: 2.42 MB / 5.651 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/16.11, allocations: 3.344 kB / 5.651 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01499/16.12, allocations: 6.868 MB / 5.658 GB, free: 12.13 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002512/16.12, allocations: 0.8438 MB / 5.658 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008947/16.12, allocations: 28.58 kB / 5.658 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003136/16.13, allocations: 230.8 kB / 5.659 GB, free: 11.88 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003577/16.13, allocations: 191.3 kB / 5.659 GB, free: 11.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003788/16.13, allocations: 148.7 kB / 5.659 GB, free: 11.88 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.00188/16.13, allocations: 1.272 MB / 5.66 GB, free: 11.73 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.21e-07/16.13, allocations: 0 / 5.66 GB, free: 11.73 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01466/16.14, allocations: 3.652 MB / 5.664 GB, free: 11.73 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.02676/16.17, allocations: 12.47 MB / 5.676 GB, free: 9.867 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.01403/16.19, allocations: 7.442 MB / 5.683 GB, free: 9.285 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/16.19, allocations: 3.906 kB / 5.683 GB, free: 9.285 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003435/16.19, allocations: 2.047 MB / 5.685 GB, free: 9.27 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006694/16.2, allocations: 1.068 MB / 5.686 GB, free: 9.23 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02507/16.22, allocations: 7.923 MB / 5.694 GB, free: 7.984 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001724/16.22, allocations: 2.284 MB / 5.696 GB, free: 7.211 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.007864/16.23, allocations: 2.565 MB / 5.699 GB, free: 7.102 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001988/16.23, allocations: 1.338 MB / 5.7 GB, free: 7.094 MB / 0.6198 GB Notification: Performance of SimCode: time 9.41e-07/16.23, allocations: 0.875 kB / 5.7 GB, free: 7.094 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8233/17.06, allocations: 141.1 MB / 5.838 GB, free: 81.77 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/17.06, allocations: 203.8 kB / 5.838 GB, free: 81.51 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.492/24.55, allocations: 3.281 kB / 5.838 GB, free: 81.51 MB / 0.6667 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat does not exist to compare? outputFormat=mat