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.001518/0.001518, allocations: 182.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.196/2.196, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001161/0.00116, allocations: 82.7 kB / 267.5 MB, free: 14.05 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.2935/0.2935, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.47e-05/3.474e-05, allocations: 0 / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1308, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.351/2.482, allocations: 0.659 GB / 1.132 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/2.483, allocations: 83.22 kB / 1.132 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.763/5.246, allocations: 0.545 GB / 1.677 GB, free: 21.54 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.245e-06/5.246, allocations: 4 kB / 1.677 GB, free: 21.54 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003474/5.246, allocations: 55.98 kB / 1.677 GB, free: 21.48 MB / 0.5105 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.01391/5.26, allocations: 3.036 MB / 1.68 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/5.26, allocations: 15.97 kB / 1.68 GB, free: 18.36 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001385/5.262, allocations: 248.7 kB / 1.68 GB, free: 18.11 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005287/5.267, allocations: 444.8 kB / 1.681 GB, free: 17.67 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009711/5.277, allocations: 1.937 MB / 1.683 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002962/5.277, allocations: 127 kB / 1.683 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001169/5.278, allocations: 168 kB / 1.683 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008136/5.286, allocations: 2.593 MB / 1.685 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-05/5.287, allocations: 3.938 kB / 1.685 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004228/5.287, allocations: 83.95 kB / 1.685 GB, free: 12.56 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000294/5.287, allocations: 147 kB / 1.686 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006919/5.294, allocations: 2.187 MB / 1.688 GB, free: 10.22 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.02644/5.321, allocations: 11.03 MB / 1.698 GB, free: 14.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005748/5.327, allocations: 1.759 MB / 1.7 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00333/5.33, allocations: 1.055 MB / 1.701 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001742/5.332, allocations: 461.1 kB / 1.702 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00394/5.336, allocations: 1.267 MB / 1.703 GB, free: 9.703 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 6.122e-06/5.336, allocations: 0 / 1.703 GB, free: 9.703 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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.04262/5.378, allocations: 8.684 MB / 1.711 GB, free: 0.8867 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002378/5.379, allocations: 360.1 kB / 1.712 GB, free: 468 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4212/5.8, allocations: 1.392 MB / 1.713 GB, free: 53.54 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007713/5.801, allocations: 64.67 kB / 1.713 GB, free: 53.51 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001012/5.802, allocations: 0.7922 MB / 1.714 GB, free: 53.35 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001325/5.803, allocations: 0.6202 MB / 1.715 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000314/5.803, allocations: 41.12 kB / 1.715 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002771/5.804, allocations: 391.3 kB / 1.715 GB, free: 52.81 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003373/5.807, allocations: 0.9971 MB / 1.716 GB, free: 52.81 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004004/5.811, allocations: 1.444 MB / 1.717 GB, free: 52.39 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003764/5.815, allocations: 1.269 MB / 1.719 GB, free: 52.31 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-05/5.815, allocations: 6.312 kB / 1.719 GB, free: 52.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009955/5.825, allocations: 2.948 MB / 1.721 GB, free: 52.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009016/5.826, allocations: 3.644 MB / 1.725 GB, free: 48.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-05/5.826, allocations: 10.84 kB / 1.725 GB, free: 48.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008176/5.827, allocations: 186.8 kB / 1.725 GB, free: 48.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005174/5.832, allocations: 0.54 MB / 1.726 GB, free: 48.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/5.834, allocations: 2.324 MB / 1.728 GB, free: 46.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004681/5.839, allocations: 213.2 kB / 1.728 GB, free: 46.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001058/5.84, allocations: 186.1 kB / 1.728 GB, free: 46.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/5.84, allocations: 7.281 kB / 1.728 GB, free: 46.21 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009789/5.85, allocations: 2.797 MB / 1.731 GB, free: 46.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.784e-05/5.85, allocations: 9.5 kB / 1.731 GB, free: 46.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006601/5.85, allocations: 185 kB / 1.731 GB, free: 46.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004951/5.855, allocations: 0.5318 MB / 1.732 GB, free: 46.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/5.857, allocations: 2.325 MB / 1.734 GB, free: 43.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00376/5.861, allocations: 210.8 kB / 1.734 GB, free: 43.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009361/5.862, allocations: 186.1 kB / 1.734 GB, free: 43.95 MB / 0.5261 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 () * 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.001186/5.863, allocations: 295.6 kB / 1.735 GB, free: 43.79 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008937/5.864, allocations: 213.9 kB / 1.735 GB, free: 43.68 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0137/5.878, allocations: 3.711 MB / 1.739 GB, free: 43.41 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.473e-05/5.878, allocations: 22.14 kB / 1.739 GB, free: 43.41 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/5.878, allocations: 3.844 kB / 1.739 GB, free: 43.41 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007344/5.885, allocations: 2.725 MB / 1.741 GB, free: 42.83 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02101/5.906, allocations: 6.588 MB / 1.748 GB, free: 41.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.523e-05/5.907, allocations: 11.16 kB / 1.748 GB, free: 41.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003989/5.911, allocations: 434.5 kB / 1.748 GB, free: 41.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007379/5.911, allocations: 184.1 kB / 1.748 GB, free: 41.54 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006918/5.912, allocations: 102.6 kB / 1.748 GB, free: 41.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/5.914, allocations: 3.067 MB / 1.751 GB, free: 38.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-05/5.914, allocations: 14.09 kB / 1.751 GB, free: 38.73 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/5.925, allocations: 4.611 MB / 1.756 GB, free: 37.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002219/5.927, allocations: 0.5485 MB / 1.756 GB, free: 37.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008566/5.928, allocations: 55.36 kB / 1.756 GB, free: 37.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003023/5.931, allocations: 128.9 kB / 1.757 GB, free: 37.29 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005014/5.932, allocations: 166.6 kB / 1.757 GB, free: 37.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004137/5.932, allocations: 159.3 kB / 1.757 GB, free: 37.29 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002372/5.935, allocations: 1.09 MB / 1.758 GB, free: 37.12 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.01e-07/5.935, allocations: 0 / 1.758 GB, free: 37.12 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01/5.945, allocations: 1.978 MB / 1.76 GB, free: 37.12 MB / 0.5261 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) * 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.01961/5.964, allocations: 8.992 MB / 1.769 GB, free: 33.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0124/5.977, allocations: 4.228 MB / 1.773 GB, free: 33.46 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.671e-05/5.977, allocations: 5.844 kB / 1.773 GB, free: 33.46 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00379/5.981, allocations: 1.499 MB / 1.774 GB, free: 33.23 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008602/5.989, allocations: 0.9788 MB / 1.775 GB, free: 33.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/6.007, allocations: 5.077 MB / 1.78 GB, free: 32.18 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001534/6.008, allocations: 1.7 MB / 1.782 GB, free: 31.45 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003636/6.012, allocations: 1.037 MB / 1.783 GB, free: 31.45 MB / 0.5261 GB Notification: Performance of SimCode: time 1.893e-06/6.012, allocations: 0 / 1.783 GB, free: 31.45 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.571/10.58, allocations: 94.68 MB / 1.875 GB, free: 8.359 MB / 0.5261 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