Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",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.002193/0.002192, allocations: 181.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.228/2.228, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001092/0.001092, allocations: 86.66 kB / 267.5 MB, free: 14.11 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.2899/0.2899, allocations: 43.5 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.59e-05/3.601e-05, allocations: 7.984 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1235, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.441/8.564, allocations: 2.829 GB / 3.302 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/8.565, allocations: 79.78 kB / 3.302 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.945/13.51, allocations: 0.9043 GB / 4.207 GB, free: 39.4 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.356e-06/13.51, allocations: 0 / 4.207 GB, free: 39.4 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0004097/13.51, allocations: 64.81 kB / 4.207 GB, free: 39.39 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.02436/13.53, allocations: 4.045 MB / 4.211 GB, free: 37.6 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.987e-05/13.53, allocations: 13.72 kB / 4.211 GB, free: 37.6 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001467/13.54, allocations: 299.3 kB / 4.211 GB, free: 37.55 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01411/13.55, allocations: 0.8752 MB / 4.212 GB, free: 37.41 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/13.56, allocations: 2.074 MB / 4.214 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004595/13.56, allocations: 181.8 kB / 4.214 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001358/13.56, allocations: 198.2 kB / 4.214 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01363/13.58, allocations: 3.683 MB / 4.218 GB, free: 36.43 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.424e-05/13.58, allocations: 8.75 kB / 4.218 GB, free: 36.43 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000431/13.58, allocations: 85.33 kB / 4.218 GB, free: 36.43 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000312/13.58, allocations: 172.9 kB / 4.218 GB, free: 36.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01155/13.59, allocations: 3.299 MB / 4.221 GB, free: 36.41 MB / 0.5417 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.03121/13.62, allocations: 15.58 MB / 4.237 GB, free: 27.1 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007412/13.63, allocations: 2.198 MB / 4.239 GB, free: 27.06 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002676/13.63, allocations: 1.064 MB / 4.24 GB, free: 27.04 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07725/13.71, allocations: 24.62 MB / 4.264 GB, free: 28.01 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006275/13.72, allocations: 1.723 MB / 4.265 GB, free: 27.88 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 5.811e-06/13.72, allocations: 0 / 4.265 GB, free: 27.88 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.03112/13.75, allocations: 7.658 MB / 4.273 GB, free: 26.84 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001946/13.75, allocations: 259.8 kB / 4.273 GB, free: 26.56 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003189/13.75, allocations: 1.495 MB / 4.275 GB, free: 26.38 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005573/13.75, allocations: 56.36 kB / 4.275 GB, free: 26.35 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00089/13.75, allocations: 0.9098 MB / 4.276 GB, free: 25.9 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008/13.75, allocations: 0.6024 MB / 4.276 GB, free: 25.52 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/13.75, allocations: 38.25 kB / 4.276 GB, free: 25.52 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002374/13.75, allocations: 391.6 kB / 4.277 GB, free: 25.21 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/13.76, allocations: 1.027 MB / 4.278 GB, free: 25.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00287/13.76, allocations: 1.455 MB / 4.279 GB, free: 24.74 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/13.76, allocations: 1.261 MB / 4.28 GB, free: 24.63 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/13.76, allocations: 6.406 kB / 4.28 GB, free: 24.63 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008368/13.77, allocations: 3.001 MB / 4.283 GB, free: 24.41 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001884/13.77, allocations: 4.338 MB / 4.287 GB, free: 19.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.768e-05/13.77, allocations: 10.75 kB / 4.287 GB, free: 19.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/13.77, allocations: 231.6 kB / 4.288 GB, free: 19.82 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004382/13.78, allocations: 0.5205 MB / 4.288 GB, free: 19.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002208/13.78, allocations: 2.426 MB / 4.291 GB, free: 17.74 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004361/13.78, allocations: 272 kB / 4.291 GB, free: 17.71 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004887/13.78, allocations: 101.2 kB / 4.291 GB, free: 17.71 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/13.78, allocations: 7.609 kB / 4.291 GB, free: 17.7 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007923/13.79, allocations: 2.847 MB / 4.294 GB, free: 17.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.144e-05/13.79, allocations: 11 kB / 4.294 GB, free: 17.55 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/13.79, allocations: 240.5 kB / 4.294 GB, free: 17.52 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004201/13.8, allocations: 0.502 MB / 4.294 GB, free: 17.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/13.8, allocations: 2.432 MB / 4.297 GB, free: 15.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003419/13.8, allocations: 269.2 kB / 4.297 GB, free: 15.41 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003277/13.8, allocations: 102.3 kB / 4.297 GB, free: 15.41 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.0008888/13.81, allocations: 303.6 kB / 4.297 GB, free: 15.23 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006795/13.81, allocations: 213.1 kB / 4.298 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/13.82, allocations: 7.631 MB / 4.305 GB, free: 14.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.595e-05/13.82, allocations: 83.86 kB / 4.305 GB, free: 14.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/13.82, allocations: 0 / 4.305 GB, free: 14.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01181/13.83, allocations: 6.645 MB / 4.312 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02186/13.85, allocations: 10.91 MB / 4.322 GB, free: 8.801 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/13.85, allocations: 0 / 4.322 GB, free: 8.801 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003525/13.86, allocations: 424.4 kB / 4.323 GB, free: 8.773 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001937/13.86, allocations: 336.8 kB / 4.323 GB, free: 8.66 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005365/13.86, allocations: 62.73 kB / 4.323 GB, free: 8.633 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002194/13.86, allocations: 2.525 MB / 4.326 GB, free: 6.359 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/13.86, allocations: 0 / 4.326 GB, free: 6.359 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/13.88, allocations: 6.924 MB / 4.332 GB, free: 3.297 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002604/13.88, allocations: 0.7797 MB / 4.333 GB, free: 2.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006669/13.88, allocations: 52.09 kB / 4.333 GB, free: 2.789 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003346/13.88, allocations: 207.1 kB / 4.333 GB, free: 2.738 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004927/13.88, allocations: 155.2 kB / 4.334 GB, free: 2.711 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002634/13.88, allocations: 81 kB / 4.334 GB, free: 2.695 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002945/13.89, allocations: 1.325 MB / 4.335 GB, free: 2.16 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.32e-07/13.89, allocations: 6.906 kB / 4.335 GB, free: 2.16 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0137/13.9, allocations: 2.876 MB / 4.338 GB, free: 0.6641 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.medium.phase) * 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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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 Backend phase and start with SimCode phase: time 0.03392/13.93, allocations: 10.36 MB / 4.348 GB, free: 7.746 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01501/13.95, allocations: 5.041 MB / 4.353 GB, free: 3.109 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/13.95, allocations: 3.938 kB / 4.353 GB, free: 3.105 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006039/13.96, allocations: 2.378 MB / 4.355 GB, free: 0.8711 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009586/13.97, allocations: 1.05 MB / 4.356 GB, free: 120 kB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4631/14.43, allocations: 7.429 MB / 4.363 GB, free: 66.08 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002644/14.43, allocations: 2.235 MB / 4.366 GB, free: 65.33 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003323/14.43, allocations: 1.345 MB / 4.367 GB, free: 65.33 MB / 0.573 GB Notification: Performance of SimCode: time 1.152e-06/14.44, allocations: 0 / 4.367 GB, free: 65.33 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.149/19.58, allocations: 133.2 MB / 4.497 GB, free: 46.89 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat