Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.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.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState",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.0023/0.0023, allocations: 185.3 kB / 16.41 MB, free: 5.727 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.23/2.23, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001179/0.001178, allocations: 93.25 kB / 270.9 MB, free: 8.387 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.5306/0.5306, allocations: 43.57 MB / 362.7 MB, free: 52.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004771/0.0004772, allocations: 12 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1335, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.81/11.95, allocations: 3.627 GB / 4.105 GB, free: 123.4 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/11.95, allocations: 84.81 kB / 4.106 GB, free: 123.4 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 6.262/18.21, allocations: 0.979 GB / 5.085 GB, free: 31.66 MB / 0.5574 GB Notification: Performance of FrontEnd: time 2.214e-06/18.21, allocations: 6.125 kB / 5.085 GB, free: 31.66 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 0.0005811/18.21, allocations: 161.4 kB / 5.085 GB, free: 31.64 MB / 0.5574 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 0.06569/18.27, allocations: 10.33 MB / 5.095 GB, free: 27.89 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/18.27, allocations: 10.41 kB / 5.095 GB, free: 27.89 MB / 0.5574 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007677/18.28, allocations: 1.046 MB / 5.096 GB, free: 27.8 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009452/18.29, allocations: 0.8718 MB / 5.097 GB, free: 27.4 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02828/18.32, allocations: 5.735 MB / 5.102 GB, free: 26.62 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001069/18.32, allocations: 0.5254 MB / 5.103 GB, free: 26.61 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006204/18.33, allocations: 0.6954 MB / 5.104 GB, free: 26.59 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05536/18.38, allocations: 14 MB / 5.117 GB, free: 25.91 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000631/18.38, allocations: 25.33 kB / 5.117 GB, free: 25.9 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005747/18.39, allocations: 292.7 kB / 5.117 GB, free: 25.9 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001214/18.39, allocations: 0.7038 MB / 5.118 GB, free: 25.89 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05702/18.45, allocations: 16.47 MB / 5.134 GB, free: 25.82 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.15/18.6, allocations: 47.57 MB / 5.181 GB, free: 10.94 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03338/18.63, allocations: 10.74 MB / 5.191 GB, free: 10.82 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006561/18.64, allocations: 4.14 MB / 5.195 GB, free: 22.59 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/18.64, allocations: 146.7 kB / 5.195 GB, free: 22.54 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009541/18.65, allocations: 0.864 MB / 5.196 GB, free: 22.18 MB / 0.573 GB Notification: Performance of pre-optimization done (n=882): time 4.224e-05/18.65, allocations: 0 / 5.196 GB, free: 22.18 MB / 0.573 GB Notification: Performance of matching and sorting (n=1122): time 1.124/19.77, allocations: 99.82 MB / 5.294 GB, free: 54.21 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001531/19.77, allocations: 169.1 kB / 5.294 GB, free: 54.13 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009867/19.78, allocations: 3.505 MB / 5.297 GB, free: 53.92 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.004554/19.79, allocations: 227.5 kB / 5.298 GB, free: 53.89 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.002575/19.79, allocations: 2.21 MB / 5.3 GB, free: 53.69 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.009032/19.8, allocations: 3.892 MB / 5.303 GB, free: 51.73 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00523/19.8, allocations: 213.7 kB / 5.304 GB, free: 51.73 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.001546/19.81, allocations: 0.7526 MB / 5.304 GB, free: 51.39 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0383/19.84, allocations: 10.04 MB / 5.314 GB, free: 51.37 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04108/19.88, allocations: 11.42 MB / 5.325 GB, free: 50.29 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04387/19.93, allocations: 11.08 MB / 5.336 GB, free: 50.16 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001346/19.93, allocations: 9.094 kB / 5.336 GB, free: 50.16 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1368) (initialization): time 0.1376/20.07, allocations: 32.07 MB / 5.368 GB, free: 49.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.00275/20.07, allocations: 10.75 MB / 5.378 GB, free: 38.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000226/20.07, allocations: 28.62 kB / 5.378 GB, free: 38.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4972/20.57, allocations: 80.72 MB / 5.457 GB, free: 24.09 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009286/20.58, allocations: 1.054 MB / 5.458 GB, free: 23.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1447/20.72, allocations: 35.84 MB / 5.493 GB, free: 15.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.027/20.75, allocations: 1.784 MB / 5.495 GB, free: 14.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005547/20.75, allocations: 0.5943 MB / 5.495 GB, free: 13.75 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/20.75, allocations: 4 kB / 5.495 GB, free: 13.75 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6892/21.44, allocations: 33.2 MB / 5.528 GB, free: 67.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/21.44, allocations: 31 kB / 5.528 GB, free: 67.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4169/21.86, allocations: 55.98 MB / 5.582 GB, free: 66.76 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01005/21.87, allocations: 1.158 MB / 5.583 GB, free: 66.76 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1205/21.99, allocations: 31.97 MB / 5.615 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02403/22.01, allocations: 1.753 MB / 5.616 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00524/22.02, allocations: 0.577 MB / 5.617 GB, free: 65.95 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 123 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (581): * Single equations (assignments): 580 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {74 714} Notification: Performance of prepare postOptimizeDAE: time 0.01443/22.03, allocations: 2.569 MB / 5.62 GB, free: 65.76 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006124/22.04, allocations: 0.646 MB / 5.62 GB, free: 65.76 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1213/22.16, allocations: 30.07 MB / 5.65 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001879/22.16, allocations: 116.8 kB / 5.65 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-05/22.16, allocations: 6.906 kB / 5.65 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.09686/22.26, allocations: 23.79 MB / 5.673 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1519/22.41, allocations: 42 MB / 5.714 GB, free: 24.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001551/22.41, allocations: 4 kB / 5.714 GB, free: 24.56 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02157/22.43, allocations: 2.135 MB / 5.716 GB, free: 22.89 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09449/22.53, allocations: 14.13 MB / 5.73 GB, free: 13.38 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004984/22.53, allocations: 0.6042 MB / 5.73 GB, free: 12.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6243/23.16, allocations: 33.1 MB / 5.763 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/23.16, allocations: 2.125 kB / 5.763 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1411/23.3, allocations: 37.03 MB / 5.799 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003352/23.3, allocations: 0.8099 MB / 5.8 GB, free: 56.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006361/23.31, allocations: 454.9 kB / 5.8 GB, free: 56.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02444/23.33, allocations: 1.458 MB / 5.801 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005499/23.34, allocations: 0.765 MB / 5.802 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005263/23.34, allocations: 0.5561 MB / 5.803 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.00805/23.35, allocations: 2.68 MB / 5.805 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of sort global known variables: time 8.22e-07/23.35, allocations: 3.188 kB / 5.805 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.04092/23.39, allocations: 6.967 MB / 5.812 GB, free: 56.47 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 60 (pipe1.mediums[1].p,pipe1.mediums[1].Xi[1],pipe1.mediums[1].T,pipe1.mediums[2].p,pipe1.mediums[2].Xi[1],pipe1.mediums[2].T,pipe1.mediums[3].p,pipe1.mediums[3].Xi[1],pipe1.mediums[3].T,pipe1.mediums[4].p,pipe1.mediums[4].Xi[1],pipe1.mediums[4].T,pipe1.mediums[5].p,pipe1.mediums[5].Xi[1],pipe1.mediums[5].T,pipe2.mediums[1].p,pipe2.mediums[1].Xi[1],pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].Xi[1],pipe2.mediums[2].T,pipe2.mediums[3].p,pipe2.mediums[3].Xi[1],pipe2.mediums[3].T,pipe2.mediums[4].p,pipe2.mediums[4].Xi[1],pipe2.mediums[4].T,pipe2.mediums[5].p,pipe2.mediums[5].Xi[1],pipe2.mediums[5].T,pipe3.mediums[1].p,pipe3.mediums[1].Xi[1],pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].Xi[1],pipe3.mediums[2].T,pipe3.mediums[3].p,pipe3.mediums[3].Xi[1],pipe3.mediums[3].T,pipe3.mediums[4].p,pipe3.mediums[4].Xi[1],pipe3.mediums[4].T,pipe3.mediums[5].p,pipe3.mediums[5].Xi[1],pipe3.mediums[5].T,pipe4.mediums[1].p,pipe4.mediums[1].Xi[1],pipe4.mediums[1].T,pipe4.mediums[2].p,pipe4.mediums[2].Xi[1],pipe4.mediums[2].T,pipe4.mediums[3].p,pipe4.mediums[3].Xi[1],pipe4.mediums[3].T,pipe4.mediums[4].p,pipe4.mediums[4].Xi[1],pipe4.mediums[4].T,pipe4.mediums[5].p,pipe4.mediums[5].Xi[1],pipe4.mediums[5].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1057): * Single equations (assignments): 1030 * 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: 27 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 22 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,4 20,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.1613/23.55, allocations: 41.71 MB / 5.853 GB, free: 54.19 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.1492/23.7, allocations: 36.68 MB / 5.889 GB, free: 46.96 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-05/23.7, allocations: 7.875 kB / 5.889 GB, free: 46.96 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.04765/23.75, allocations: 12.65 MB / 5.901 GB, free: 43.09 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03034/23.78, allocations: 3.161 MB / 5.904 GB, free: 41.48 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1477/23.93, allocations: 62.49 MB / 5.965 GB, free: 1.223 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5443/24.47, allocations: 5.238 MB / 5.97 GB, free: 77.31 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01538/24.49, allocations: 3.53 MB / 5.974 GB, free: 77.31 MB / 0.6199 GB Notification: Performance of SimCode: time 1.964e-06/24.49, allocations: 2.688 kB / 5.974 GB, free: 77.31 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.5/34.99, allocations: 0.5777 GB / 6.551 GB, free: 95.41 MB / 0.6511 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState_res.mat does not exist to compare? outputFormat=mat