Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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.002329/0.002329, allocations: 181.3 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.102/2.102, 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.001141/0.001141, allocations: 90.64 kB / 267.5 MB, free: 14.04 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.2961/0.2961, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.614e-05/3.617e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1344, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.383/2.517, allocations: 0.659 GB / 1.132 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/2.517, allocations: 83.02 kB / 1.132 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.773/5.291, allocations: 0.545 GB / 1.677 GB, free: 21.44 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.744e-06/5.291, allocations: 4 kB / 1.677 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002842/5.291, allocations: 59.98 kB / 1.677 GB, free: 21.38 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.01295/5.304, allocations: 3.032 MB / 1.68 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/5.304, allocations: 15.97 kB / 1.68 GB, free: 18.26 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009748/5.305, allocations: 244.8 kB / 1.68 GB, free: 18.01 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004553/5.31, allocations: 444.8 kB / 1.681 GB, free: 17.57 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008176/5.318, allocations: 1.933 MB / 1.683 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/5.318, allocations: 131 kB / 1.683 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/5.319, allocations: 164 kB / 1.683 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007976/5.327, allocations: 2.6 MB / 1.685 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.637e-05/5.328, allocations: 3.984 kB / 1.685 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004151/5.328, allocations: 71.97 kB / 1.685 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003025/5.328, allocations: 158.9 kB / 1.686 GB, free: 12.31 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006759/5.335, allocations: 2.187 MB / 1.688 GB, free: 10.12 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.02586/5.361, allocations: 11.02 MB / 1.699 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005454/5.366, allocations: 1.767 MB / 1.7 GB, free: 12.47 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003088/5.37, allocations: 1.051 MB / 1.701 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001624/5.371, allocations: 469.1 kB / 1.702 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003498/5.375, allocations: 1.271 MB / 1.703 GB, free: 9.59 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 4.799e-06/5.375, allocations: 0 / 1.703 GB, free: 9.59 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.0413/5.416, allocations: 8.664 MB / 1.711 GB, free: 0.793 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000226/5.416, allocations: 360.1 kB / 1.712 GB, free: 372 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4221/5.839, allocations: 1.391 MB / 1.713 GB, free: 53.76 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007793/5.839, allocations: 64.83 kB / 1.713 GB, free: 53.73 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001067/5.84, allocations: 0.7972 MB / 1.714 GB, free: 53.57 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001278/5.842, allocations: 0.6203 MB / 1.715 GB, free: 53.35 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004073/5.842, allocations: 41.41 kB / 1.715 GB, free: 53.35 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002462/5.842, allocations: 393.1 kB / 1.715 GB, free: 53.04 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003414/5.846, allocations: 0.9985 MB / 1.716 GB, free: 53.03 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00395/5.85, allocations: 1.441 MB / 1.717 GB, free: 52.62 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003942/5.854, allocations: 1.267 MB / 1.719 GB, free: 52.53 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.197e-05/5.854, allocations: 1.969 kB / 1.719 GB, free: 52.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.01007/5.864, allocations: 2.949 MB / 1.721 GB, free: 52.32 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008474/5.865, allocations: 3.646 MB / 1.725 GB, free: 48.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/5.865, allocations: 9.188 kB / 1.725 GB, free: 48.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007738/5.866, allocations: 191.8 kB / 1.725 GB, free: 48.51 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005091/5.871, allocations: 0.5352 MB / 1.726 GB, free: 48.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/5.873, allocations: 2.329 MB / 1.728 GB, free: 46.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004798/5.878, allocations: 210 kB / 1.728 GB, free: 46.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/5.879, allocations: 185.8 kB / 1.728 GB, free: 46.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/5.879, allocations: 6.719 kB / 1.728 GB, free: 46.43 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01054/5.889, allocations: 2.799 MB / 1.731 GB, free: 46.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.987e-05/5.89, allocations: 9.125 kB / 1.731 GB, free: 46.29 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006954/5.89, allocations: 189.9 kB / 1.731 GB, free: 46.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004976/5.895, allocations: 0.5265 MB / 1.732 GB, free: 46.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00184/5.897, allocations: 2.327 MB / 1.734 GB, free: 44.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003796/5.901, allocations: 213.1 kB / 1.734 GB, free: 44.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/5.902, allocations: 185.2 kB / 1.734 GB, free: 44.18 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.001237/5.903, allocations: 294.7 kB / 1.735 GB, free: 44.01 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008195/5.904, allocations: 214.2 kB / 1.735 GB, free: 43.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01427/5.918, allocations: 3.724 MB / 1.739 GB, free: 43.63 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-05/5.919, allocations: 20.42 kB / 1.739 GB, free: 43.63 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/5.919, allocations: 1.938 kB / 1.739 GB, free: 43.63 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008048/5.927, allocations: 2.722 MB / 1.741 GB, free: 43.05 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02094/5.948, allocations: 6.593 MB / 1.748 GB, free: 41.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/5.948, allocations: 4.969 kB / 1.748 GB, free: 41.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003812/5.952, allocations: 432 kB / 1.748 GB, free: 41.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007113/5.952, allocations: 190.3 kB / 1.748 GB, free: 41.76 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005924/5.953, allocations: 94.66 kB / 1.748 GB, free: 41.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002181/5.955, allocations: 3.068 MB / 1.751 GB, free: 38.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.836e-06/5.955, allocations: 10.19 kB / 1.751 GB, free: 38.95 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01126/5.966, allocations: 4.61 MB / 1.756 GB, free: 37.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002299/5.969, allocations: 0.5425 MB / 1.756 GB, free: 37.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/5.97, allocations: 60.7 kB / 1.757 GB, free: 37.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003436/5.973, allocations: 131.1 kB / 1.757 GB, free: 37.52 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006997/5.974, allocations: 165.2 kB / 1.757 GB, free: 37.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004742/5.975, allocations: 166 kB / 1.757 GB, free: 37.51 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002516/5.977, allocations: 1.087 MB / 1.758 GB, free: 37.35 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.82e-07/5.977, allocations: 2.312 kB / 1.758 GB, free: 37.35 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009916/5.987, allocations: 1.977 MB / 1.76 GB, free: 37.35 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.02547/6.013, allocations: 8.988 MB / 1.769 GB, free: 33.98 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01659/6.029, allocations: 4.233 MB / 1.773 GB, free: 33.68 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.005e-05/6.029, allocations: 6.688 kB / 1.773 GB, free: 33.68 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005336/6.035, allocations: 1.5 MB / 1.774 GB, free: 33.45 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0112/6.046, allocations: 0.9767 MB / 1.775 GB, free: 33.42 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02301/6.069, allocations: 5.073 MB / 1.78 GB, free: 32.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002413/6.071, allocations: 1.696 MB / 1.782 GB, free: 31.67 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00511/6.077, allocations: 1.036 MB / 1.783 GB, free: 31.66 MB / 0.5261 GB Notification: Performance of SimCode: time 2.425e-06/6.077, allocations: 0 / 1.783 GB, free: 31.66 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.626/10.7, allocations: 94.68 MB / 1.875 GB, free: 8.277 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat does not exist to compare? outputFormat=mat