Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_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.001393/0.001392, allocations: 180.9 kB / 8.006 MB, free: 1.07 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.679/1.679, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00096/0.0009599, allocations: 92.03 kB / 261.8 MB, free: 1.676 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.2116/0.2116, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.928e-05/1.916e-05, allocations: 4 kB / 418.4 MB, free: 28.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1223, allocations: 58.85 MB / 477.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.371/9.493, allocations: 3.62 GB / 4.086 GB, free: 53.09 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/9.493, allocations: 87.3 kB / 4.086 GB, free: 53.05 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 7.089/16.58, allocations: 1.62 GB / 5.706 GB, free: 27.29 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.332e-06/16.58, allocations: 3.219 kB / 5.706 GB, free: 27.29 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0002595/16.58, allocations: 83.34 kB / 5.706 GB, free: 27.28 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.03793/16.62, allocations: 8.738 MB / 5.715 GB, free: 22.72 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/16.62, allocations: 11.27 kB / 5.715 GB, free: 22.72 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003022/16.62, allocations: 402.5 kB / 5.715 GB, free: 22.54 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005984/16.63, allocations: 2.103 MB / 5.717 GB, free: 22.07 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004542/16.63, allocations: 409.6 kB / 5.718 GB, free: 21.79 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001405/16.63, allocations: 176.1 kB / 5.718 GB, free: 21.78 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008583/16.64, allocations: 4.377 MB / 5.722 GB, free: 21.77 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008513/16.65, allocations: 4.424 MB / 5.727 GB, free: 21.07 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.881e-05/16.65, allocations: 12.53 kB / 5.727 GB, free: 21.07 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004099/16.65, allocations: 9.219 kB / 5.727 GB, free: 21.07 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002931/16.65, allocations: 259.3 kB / 5.727 GB, free: 21.06 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02921/16.68, allocations: 20.21 MB / 5.747 GB, free: 11.01 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003803/16.68, allocations: 2.479 MB / 5.749 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001849/16.68, allocations: 1.485 MB / 5.75 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002119/16.69, allocations: 3.344 MB / 5.754 GB, free: 7.477 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/16.69, allocations: 73.53 kB / 5.754 GB, free: 7.43 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=232): time 4.348e-06/16.69, allocations: 0 / 5.754 GB, free: 7.43 MB / 0.5886 GB Notification: Performance of matching and sorting (n=268): time 0.05474/16.74, allocations: 13.95 MB / 5.767 GB, free: 6.34 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/16.74, allocations: 235.3 kB / 5.768 GB, free: 6.086 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/16.74, allocations: 1.703 MB / 5.769 GB, free: 5.824 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0009508/16.75, allocations: 29.58 kB / 5.769 GB, free: 5.793 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008934/16.75, allocations: 1.463 MB / 5.771 GB, free: 5.035 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001457/16.75, allocations: 0.9192 MB / 5.772 GB, free: 4.438 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002931/16.75, allocations: 3.5 kB / 5.772 GB, free: 4.438 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002548/16.75, allocations: 461.7 kB / 5.772 GB, free: 4.129 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002629/16.75, allocations: 1.773 MB / 5.774 GB, free: 4.121 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003104/16.75, allocations: 2.946 MB / 5.777 GB, free: 2.73 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02402/16.78, allocations: 5.776 MB / 5.782 GB, free: 2.648 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.039e-05/16.78, allocations: 7.656 kB / 5.782 GB, free: 2.648 MB / 0.5886 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.03184/16.81, allocations: 8.783 MB / 5.791 GB, free: 0.9492 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.006466/16.82, allocations: 14.89 MB / 5.805 GB, free: 0.707 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000174/16.82, allocations: 37.94 kB / 5.805 GB, free: 0.707 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003043/16.82, allocations: 0.7236 MB / 5.806 GB, free: 0.5156 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004863/16.82, allocations: 0.9184 MB / 5.807 GB, free: 436 kB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002898/16.83, allocations: 2.524 MB / 5.81 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005769/16.83, allocations: 313.3 kB / 5.81 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002093/16.84, allocations: 283.2 kB / 5.81 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/16.84, allocations: 3.281 kB / 5.81 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03089/16.87, allocations: 8.237 MB / 5.818 GB, free: 9.293 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000111/16.87, allocations: 40 kB / 5.818 GB, free: 9.254 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002792/16.87, allocations: 0.7171 MB / 5.819 GB, free: 8.691 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004521/16.87, allocations: 0.9164 MB / 5.82 GB, free: 7.914 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003001/16.88, allocations: 2.525 MB / 5.822 GB, free: 5.445 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005198/16.88, allocations: 290 kB / 5.822 GB, free: 5.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001211/16.88, allocations: 278.6 kB / 5.823 GB, free: 4.988 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.001556/16.89, allocations: 244.1 kB / 5.823 GB, free: 4.746 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01811/16.9, allocations: 4.948 MB / 5.828 GB, free: 0.6328 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001449/16.9, allocations: 268.8 kB / 5.828 GB, free: 376 kB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01671/16.92, allocations: 6.279 MB / 5.834 GB, free: 11.26 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.912e-05/16.92, allocations: 33.72 kB / 5.834 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/16.92, allocations: 4 kB / 5.834 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-05/16.92, allocations: 14.44 kB / 5.834 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02288/16.94, allocations: 8.561 MB / 5.843 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/16.94, allocations: 4 kB / 5.843 GB, free: 4.438 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002653/16.95, allocations: 0.543 MB / 5.843 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00391/16.95, allocations: 0.8979 MB / 5.844 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008066/16.95, allocations: 86.78 kB / 5.844 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002684/16.95, allocations: 2.41 MB / 5.846 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/16.95, allocations: 1.406 kB / 5.846 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6217/17.58, allocations: 7.586 MB / 5.854 GB, free: 70.28 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002861/17.58, allocations: 0.8542 MB / 5.855 GB, free: 70.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009733/17.58, allocations: 19.31 kB / 5.855 GB, free: 70.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003563/17.58, allocations: 228.2 kB / 5.855 GB, free: 70.18 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004581/17.58, allocations: 207.5 kB / 5.855 GB, free: 70.18 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005032/17.58, allocations: 180.1 kB / 5.855 GB, free: 70.18 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.002447/17.59, allocations: 1.273 MB / 5.857 GB, free: 70.04 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.51e-07/17.59, allocations: 1.75 kB / 5.857 GB, free: 70.04 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.02238/17.61, allocations: 3.997 MB / 5.86 GB, free: 70.04 MB / 0.6355 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.04073/17.65, allocations: 13.36 MB / 5.874 GB, free: 68.41 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01598/17.67, allocations: 7.492 MB / 5.881 GB, free: 67.83 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.796e-05/17.67, allocations: 4.688 kB / 5.881 GB, free: 67.83 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.004199/17.67, allocations: 2.059 MB / 5.883 GB, free: 67.82 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007633/17.68, allocations: 1.06 MB / 5.884 GB, free: 67.79 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03099/17.71, allocations: 8.119 MB / 5.892 GB, free: 66.77 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001971/17.71, allocations: 2.285 MB / 5.894 GB, free: 66 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.009226/17.72, allocations: 2.213 MB / 5.896 GB, free: 65.91 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002853/17.72, allocations: 1.403 MB / 5.898 GB, free: 65.91 MB / 0.6355 GB Notification: Performance of SimCode: time 1.342e-06/17.72, allocations: 0 / 5.898 GB, free: 65.91 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2651/17.99, allocations: 146.2 MB / 6.04 GB, free: 26.41 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/17.99, allocations: 197.1 kB / 6.041 GB, free: 26.15 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.445/26.43, allocations: 4 kB / 6.041 GB, free: 26.15 MB / 0.6355 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat does not exist to compare? outputFormat=mat