Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.001638/0.001638, allocations: 183.7 kB / 13.19 MB, free: 2.129 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.041/2.041, allocations: 205.2 MB / 218.9 MB, free: 9.137 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.000909/0.000909, allocations: 86.55 kB / 267 MB, free: 9.262 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.5507/0.5507, allocations: 43.47 MB / 358.6 MB, free: 51.56 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.34e-05/8.36e-05, allocations: 8 kB / 425.4 MB, free: 8.09 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1772, allocations: 58.85 MB / 484.3 MB, free: 13.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.532/2.71, allocations: 0.6591 GB / 1.132 GB, free: 168.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/2.71, allocations: 77.88 kB / 1.132 GB, free: 168.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.02/5.73, allocations: 0.6089 GB / 1.741 GB, free: 41.27 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.154e-06/5.73, allocations: 0 / 1.741 GB, free: 41.27 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002243/5.73, allocations: 60.16 kB / 1.741 GB, free: 41.27 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01541/5.746, allocations: 3.202 MB / 1.744 GB, free: 40.13 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.926e-05/5.746, allocations: 11.75 kB / 1.744 GB, free: 40.13 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001404/5.747, allocations: 258.8 kB / 1.744 GB, free: 40.09 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003701/5.751, allocations: 452.9 kB / 1.745 GB, free: 39.96 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006332/5.757, allocations: 2 MB / 1.747 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/5.758, allocations: 140.8 kB / 1.747 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005214/5.758, allocations: 176.8 kB / 1.747 GB, free: 39.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005193/5.763, allocations: 2.713 MB / 1.75 GB, free: 39.14 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.464e-05/5.763, allocations: 7.641 kB / 1.75 GB, free: 39.14 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002715/5.764, allocations: 80.16 kB / 1.75 GB, free: 39.14 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002178/5.764, allocations: 156.2 kB / 1.75 GB, free: 39.14 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004136/5.768, allocations: 2.284 MB / 1.752 GB, free: 39.12 MB / 0.5261 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.02449/5.793, allocations: 11.62 MB / 1.764 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003249/5.796, allocations: 1.84 MB / 1.765 GB, free: 32.62 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002131/5.798, allocations: 1.114 MB / 1.766 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001185/5.799, allocations: 459.9 kB / 1.767 GB, free: 32.31 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002701/5.802, allocations: 1.327 MB / 1.768 GB, free: 32.14 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=172): time 3.476e-06/5.802, allocations: 2.375 kB / 1.768 GB, free: 32.14 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: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.03311/5.835, allocations: 9.663 MB / 1.778 GB, free: 30.88 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002769/5.835, allocations: 368.2 kB / 1.778 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00436/5.84, allocations: 1.47 MB / 1.779 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004547/5.84, allocations: 67.7 kB / 1.779 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001352/5.842, allocations: 0.9089 MB / 1.78 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009604/5.843, allocations: 0.6738 MB / 1.781 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/5.843, allocations: 40.84 kB / 1.781 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002396/5.843, allocations: 393.4 kB / 1.781 GB, free: 29.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002125/5.845, allocations: 1.053 MB / 1.782 GB, free: 29.15 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002506/5.848, allocations: 1.535 MB / 1.784 GB, free: 28.68 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/5.85, allocations: 1.33 MB / 1.785 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/5.85, allocations: 3.781 kB / 1.785 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005963/5.856, allocations: 3.306 MB / 1.788 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001385/5.857, allocations: 4.335 MB / 1.793 GB, free: 23.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.769e-05/5.857, allocations: 11.88 kB / 1.793 GB, free: 23.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008487/5.858, allocations: 302.7 kB / 1.793 GB, free: 23.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002387/5.861, allocations: 0.5592 MB / 1.794 GB, free: 23.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/5.863, allocations: 3.008 MB / 1.796 GB, free: 21.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003348/5.866, allocations: 220.1 kB / 1.797 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005354/5.866, allocations: 211.8 kB / 1.797 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/5.867, allocations: 3.406 kB / 1.797 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005925/5.872, allocations: 3.022 MB / 1.8 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/5.873, allocations: 14.78 kB / 1.8 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007504/5.873, allocations: 302.1 kB / 1.8 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002262/5.876, allocations: 0.5522 MB / 1.801 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002813/5.878, allocations: 3.007 MB / 1.804 GB, free: 34.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003204/5.882, allocations: 222.9 kB / 1.804 GB, free: 34.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004999/5.882, allocations: 197.5 kB / 1.804 GB, free: 34.34 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (261): * Single equations (assignments): 254 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001237/5.883, allocations: 308.4 kB / 1.804 GB, free: 34.16 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001001/5.884, allocations: 236 kB / 1.805 GB, free: 34.04 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00966/5.894, allocations: 3.896 MB / 1.808 GB, free: 33.78 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.528e-05/5.894, allocations: 20.84 kB / 1.808 GB, free: 33.78 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.125e-05/5.894, allocations: 3.531 kB / 1.808 GB, free: 33.78 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005063/5.899, allocations: 2.973 MB / 1.811 GB, free: 33.18 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01674/5.916, allocations: 7.082 MB / 1.818 GB, free: 31.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-05/5.916, allocations: 7.594 kB / 1.818 GB, free: 31.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002069/5.918, allocations: 462.6 kB / 1.819 GB, free: 31.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/5.919, allocations: 318.8 kB / 1.819 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000371/5.92, allocations: 112.6 kB / 1.819 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004637/5.924, allocations: 3.739 MB / 1.823 GB, free: 28.51 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.357e-05/5.924, allocations: 9.969 kB / 1.823 GB, free: 28.51 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/5.936, allocations: 4.975 MB / 1.828 GB, free: 27.26 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00227/5.938, allocations: 0.5772 MB / 1.828 GB, free: 27.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009824/5.939, allocations: 64.89 kB / 1.828 GB, free: 27.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002422/5.941, allocations: 133.7 kB / 1.828 GB, free: 27.04 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003939/5.942, allocations: 193.9 kB / 1.828 GB, free: 27.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003937/5.942, allocations: 183.6 kB / 1.829 GB, free: 27.03 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002497/5.945, allocations: 1.119 MB / 1.83 GB, free: 26.87 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.6e-07/5.945, allocations: 0 / 1.83 GB, free: 26.87 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009993/5.955, allocations: 2.091 MB / 1.832 GB, free: 26.61 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 9 (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,junctionVolume.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 (206): * Single equations (assignments): 199 * 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: 5 * 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: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01794/5.973, allocations: 9.502 MB / 1.841 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009757/5.983, allocations: 4.584 MB / 1.846 GB, free: 22.61 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.694e-05/5.983, allocations: 3.125 kB / 1.846 GB, free: 22.61 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003065/5.986, allocations: 1.635 MB / 1.847 GB, free: 22.36 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006661/5.992, allocations: 1.129 MB / 1.848 GB, free: 22.32 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0164/6.009, allocations: 5.312 MB / 1.853 GB, free: 21.03 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002126/6.011, allocations: 1.765 MB / 1.855 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00842/6.019, allocations: 1.599 MB / 1.857 GB, free: 20.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002826/6.022, allocations: 1.021 MB / 1.858 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of SimCode: time 1.523e-06/6.022, allocations: 0 / 1.858 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6933/6.716, allocations: 113.6 MB / 1.969 GB, free: 67.01 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/6.716, allocations: 227.9 kB / 1.969 GB, free: 66.75 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.867/12.58, allocations: 0 / 1.969 GB, free: 66.75 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat