Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.001587/0.001587, allocations: 185.9 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.087/2.087, allocations: 205.4 MB / 222.5 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.001176/0.001176, allocations: 96.41 kB / 270.9 MB, free: 8.391 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.5324/0.5324, allocations: 43.55 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004941/0.0004943, allocations: 12 kB / 431.5 MB, free: 5.855 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1422, allocations: 58.84 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.942/9.084, allocations: 2.825 GB / 3.304 GB, free: 90.09 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/9.084, allocations: 77.53 kB / 3.304 GB, free: 90.05 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.673/13.76, allocations: 0.8017 GB / 4.106 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.726e-06/13.76, allocations: 0 / 4.106 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003091/13.76, allocations: 74.03 kB / 4.106 GB, free: 30.77 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.0219/13.78, allocations: 4.256 MB / 4.11 GB, free: 28.62 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/13.78, allocations: 15.22 kB / 4.11 GB, free: 28.62 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001617/13.78, allocations: 288.8 kB / 4.11 GB, free: 28.57 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008909/13.79, allocations: 0.8394 MB / 4.111 GB, free: 28.43 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008897/13.8, allocations: 2.109 MB / 4.113 GB, free: 27.97 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003685/13.8, allocations: 179.5 kB / 4.114 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001242/13.8, allocations: 198.5 kB / 4.114 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01493/13.82, allocations: 3.735 MB / 4.117 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/13.82, allocations: 10.41 kB / 4.117 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006657/13.82, allocations: 82.81 kB / 4.117 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003189/13.82, allocations: 165.3 kB / 4.118 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01438/13.83, allocations: 3.557 MB / 4.121 GB, free: 27.39 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.03479/13.87, allocations: 14.93 MB / 4.136 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008856/13.88, allocations: 2.259 MB / 4.138 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08597/13.96, allocations: 24.53 MB / 4.162 GB, free: 19.15 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007037/13.97, allocations: 1.71 MB / 4.163 GB, free: 19.01 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001808/13.97, allocations: 200.9 kB / 4.164 GB, free: 18.92 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 7.254e-06/13.97, allocations: 0 / 4.164 GB, free: 18.92 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.04361/14.01, allocations: 9.367 MB / 4.173 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002766/14.01, allocations: 411.3 kB / 4.173 GB, free: 15.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003517/14.02, allocations: 1.57 MB / 4.175 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006366/14.02, allocations: 62.23 kB / 4.175 GB, free: 14.83 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009681/14.02, allocations: 0.9016 MB / 4.176 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000978/14.02, allocations: 0.5776 MB / 4.176 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/14.02, allocations: 51.22 kB / 4.176 GB, free: 13.58 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002496/14.02, allocations: 390.2 kB / 4.177 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004224/14.03, allocations: 1.175 MB / 4.178 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00494/14.03, allocations: 1.624 MB / 4.179 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004665/14.04, allocations: 1.42 MB / 4.181 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/14.04, allocations: 0 / 4.181 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01117/14.05, allocations: 3.472 MB / 4.184 GB, free: 9.668 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001719/14.05, allocations: 3.906 MB / 4.188 GB, free: 5.465 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.166e-05/14.05, allocations: 15.89 kB / 4.188 GB, free: 5.453 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008704/14.06, allocations: 0.9751 MB / 4.189 GB, free: 4.738 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003895/14.06, allocations: 469 kB / 4.189 GB, free: 4.352 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004283/14.07, allocations: 3.17 MB / 4.193 GB, free: 1.301 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004155/14.07, allocations: 236.4 kB / 4.193 GB, free: 1.117 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005332/14.07, allocations: 103.5 kB / 4.193 GB, free: 1.027 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/14.07, allocations: 4 kB / 4.193 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01286/14.08, allocations: 3.314 MB / 4.196 GB, free: 14.31 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.236e-05/14.08, allocations: 19.8 kB / 4.196 GB, free: 14.3 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/14.09, allocations: 353.1 kB / 4.196 GB, free: 14.02 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004229/14.09, allocations: 489 kB / 4.197 GB, free: 13.61 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006575/14.1, allocations: 4.106 MB / 4.201 GB, free: 9.57 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00331/14.1, allocations: 235.1 kB / 4.201 GB, free: 9.387 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000389/14.1, allocations: 102.9 kB / 4.201 GB, free: 9.301 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002319/14.1, allocations: 0.7649 MB / 4.202 GB, free: 8.586 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007606/14.1, allocations: 225.3 kB / 4.202 GB, free: 8.363 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01967/14.12, allocations: 7.945 MB / 4.21 GB, free: 1.309 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001157/14.12, allocations: 87.67 kB / 4.21 GB, free: 1.258 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/14.12, allocations: 0 / 4.21 GB, free: 1.258 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4675/14.59, allocations: 7.093 MB / 4.217 GB, free: 60.27 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02744/14.62, allocations: 11.1 MB / 4.228 GB, free: 59.63 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.647e-05/14.62, allocations: 0 / 4.228 GB, free: 59.63 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003178/14.62, allocations: 348.7 kB / 4.228 GB, free: 59.63 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008773/14.63, allocations: 2.173 MB / 4.23 GB, free: 59.55 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007417/14.63, allocations: 64.03 kB / 4.23 GB, free: 59.55 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004939/14.64, allocations: 4.092 MB / 4.234 GB, free: 57.47 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/14.64, allocations: 5.906 kB / 4.234 GB, free: 57.47 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01884/14.65, allocations: 8.121 MB / 4.242 GB, free: 56.96 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002691/14.66, allocations: 0.7811 MB / 4.243 GB, free: 56.83 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008438/14.66, allocations: 53 kB / 4.243 GB, free: 56.83 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003388/14.66, allocations: 202.1 kB / 4.243 GB, free: 56.82 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006116/14.66, allocations: 143.4 kB / 4.243 GB, free: 56.82 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002832/14.66, allocations: 78.25 kB / 4.243 GB, free: 56.82 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.003449/14.67, allocations: 1.39 MB / 4.245 GB, free: 56.68 MB / 0.5574 GB Notification: Performance of sort global known variables: time 8.21e-07/14.67, allocations: 2.75 kB / 4.245 GB, free: 56.68 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01478/14.68, allocations: 2.86 MB / 4.248 GB, free: 56.67 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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 (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03548/14.72, allocations: 10.65 MB / 4.258 GB, free: 55.42 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01705/14.73, allocations: 5.598 MB / 4.263 GB, free: 54.84 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/14.73, allocations: 0 / 4.263 GB, free: 54.84 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.005905/14.74, allocations: 2.436 MB / 4.266 GB, free: 54.68 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008949/14.75, allocations: 0.9529 MB / 4.267 GB, free: 54.66 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02838/14.78, allocations: 17.77 MB / 4.284 GB, free: 43.47 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002994/14.78, allocations: 2.258 MB / 4.286 GB, free: 42.72 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003042/14.78, allocations: 1.32 MB / 4.288 GB, free: 42.71 MB / 0.5574 GB Notification: Performance of SimCode: time 1.823e-06/14.78, allocations: 0 / 4.288 GB, free: 42.71 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.442/20.23, allocations: 129.3 MB / 4.414 GB, free: 13.12 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat