Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",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.002454/0.002454, allocations: 185.7 kB / 16.4 MB, free: 5.746 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.194/2.194, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001131/0.001131, allocations: 97.11 kB / 270.9 MB, free: 8.371 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.5212/0.5212, allocations: 43.55 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004742/0.0004743, allocations: 12 kB / 431.5 MB, free: 6.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1599/0.1604, allocations: 58.86 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.317/2.478, allocations: 0.6918 GB / 1.171 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/2.478, allocations: 83.42 kB / 1.171 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.33/5.808, allocations: 0.5558 GB / 1.726 GB, free: 41.81 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.767e-06/5.808, allocations: 1.156 kB / 1.726 GB, free: 41.81 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003677/5.808, allocations: 58.77 kB / 1.727 GB, free: 41.81 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01898/5.827, allocations: 3.333 MB / 1.73 GB, free: 40.57 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/5.827, allocations: 10.12 kB / 1.73 GB, free: 40.57 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001277/5.829, allocations: 247.9 kB / 1.73 GB, free: 40.52 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004324/5.833, allocations: 451.9 kB / 1.73 GB, free: 40.39 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00889/5.842, allocations: 1.957 MB / 1.732 GB, free: 40.05 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002442/5.842, allocations: 137 kB / 1.733 GB, free: 40.05 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001087/5.843, allocations: 162.8 kB / 1.733 GB, free: 40.05 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0096/5.853, allocations: 2.636 MB / 1.735 GB, free: 39.62 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-05/5.853, allocations: 5.188 kB / 1.735 GB, free: 39.62 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004405/5.853, allocations: 75.95 kB / 1.735 GB, free: 39.62 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003428/5.854, allocations: 153 kB / 1.735 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007671/5.862, allocations: 2.264 MB / 1.738 GB, free: 39.6 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02635/5.888, allocations: 11.03 MB / 1.748 GB, free: 33.74 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005636/5.894, allocations: 1.818 MB / 1.75 GB, free: 33.42 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001575/5.895, allocations: 460.2 kB / 1.751 GB, free: 33.14 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003908/5.899, allocations: 1.295 MB / 1.752 GB, free: 32.97 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 5.079e-06/5.899, allocations: 0 / 1.752 GB, free: 32.97 MB / 0.5261 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.04778/5.947, allocations: 11.21 MB / 1.763 GB, free: 31 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/5.947, allocations: 360.8 kB / 1.763 GB, free: 30.59 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003099/5.95, allocations: 1.415 MB / 1.765 GB, free: 30.42 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007551/5.951, allocations: 62.64 kB / 1.765 GB, free: 30.39 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007931/5.952, allocations: 0.7978 MB / 1.765 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001016/5.953, allocations: 0.6256 MB / 1.766 GB, free: 29.63 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/5.953, allocations: 42.28 kB / 1.766 GB, free: 29.63 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001617/5.953, allocations: 389.9 kB / 1.766 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003073/5.956, allocations: 1.042 MB / 1.767 GB, free: 29.31 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003728/5.96, allocations: 1.491 MB / 1.769 GB, free: 28.89 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00375/5.964, allocations: 1.301 MB / 1.77 GB, free: 28.81 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.555e-05/5.964, allocations: 3.688 kB / 1.77 GB, free: 28.81 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009123/5.973, allocations: 3.039 MB / 1.773 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000841/5.974, allocations: 3.643 MB / 1.777 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.746e-05/5.974, allocations: 7.594 kB / 1.777 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007238/5.975, allocations: 189.4 kB / 1.777 GB, free: 24.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004819/5.98, allocations: 0.5388 MB / 1.777 GB, free: 24.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/5.981, allocations: 2.327 MB / 1.78 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004603/5.986, allocations: 225.9 kB / 1.78 GB, free: 22.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009509/5.987, allocations: 184 kB / 1.78 GB, free: 22.69 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/5.987, allocations: 10.41 kB / 1.78 GB, free: 22.69 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009297/5.996, allocations: 2.882 MB / 1.783 GB, free: 22.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-05/5.997, allocations: 7.156 kB / 1.783 GB, free: 22.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006044/5.997, allocations: 200.8 kB / 1.783 GB, free: 22.51 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004556/6.002, allocations: 0.5247 MB / 1.784 GB, free: 22.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/6.004, allocations: 2.328 MB / 1.786 GB, free: 36.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003649/6.008, allocations: 204.7 kB / 1.786 GB, free: 36.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006604/6.009, allocations: 182.7 kB / 1.786 GB, free: 36.43 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 240 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002311/6.011, allocations: 0.6993 MB / 1.787 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007899/6.012, allocations: 215 kB / 1.787 GB, free: 36.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01286/6.025, allocations: 3.765 MB / 1.791 GB, free: 35.79 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.487e-05/6.025, allocations: 21.78 kB / 1.791 GB, free: 35.79 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/6.025, allocations: 6.578 kB / 1.791 GB, free: 35.79 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007355/6.032, allocations: 2.786 MB / 1.794 GB, free: 35.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02024/6.053, allocations: 6.66 MB / 1.8 GB, free: 33.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/6.053, allocations: 7.781 kB / 1.8 GB, free: 33.92 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003681/6.056, allocations: 430 kB / 1.801 GB, free: 33.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006959/6.057, allocations: 188.7 kB / 1.801 GB, free: 33.89 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004715/6.058, allocations: 96.91 kB / 1.801 GB, free: 33.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002806/6.06, allocations: 3.08 MB / 1.804 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/6.06, allocations: 9.906 kB / 1.804 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01161/6.072, allocations: 4.698 MB / 1.808 GB, free: 29.85 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002292/6.074, allocations: 0.5467 MB / 1.809 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008751/6.075, allocations: 63.41 kB / 1.809 GB, free: 29.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003037/6.078, allocations: 131.9 kB / 1.809 GB, free: 29.62 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005296/6.079, allocations: 166.9 kB / 1.809 GB, free: 29.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003989/6.079, allocations: 162.5 kB / 1.809 GB, free: 29.62 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00249/6.082, allocations: 1.107 MB / 1.811 GB, free: 29.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.01e-07/6.082, allocations: 0 / 1.811 GB, free: 29.47 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009519/6.091, allocations: 1.979 MB / 1.812 GB, free: 29.22 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02048/6.112, allocations: 9.079 MB / 1.821 GB, free: 25.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01322/6.125, allocations: 4.361 MB / 1.826 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.749e-05/6.125, allocations: 3.562 kB / 1.826 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003893/6.129, allocations: 1.529 MB / 1.827 GB, free: 25.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008424/6.138, allocations: 0.9863 MB / 1.828 GB, free: 24.99 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02357/6.161, allocations: 13.86 MB / 1.842 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001738/6.163, allocations: 1.7 MB / 1.843 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003614/6.167, allocations: 1.039 MB / 1.844 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of SimCode: time 2.695e-06/6.167, allocations: 0 / 1.844 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.301/11.47, allocations: 94.35 MB / 1.936 GB, free: 54.79 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat does not exist to compare? outputFormat=mat