Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.009731/0.009731, allocations: 175.1 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.951/1.951, allocations: 194.5 MB / 210.3 MB, free: 7.609 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001999/0.001999, allocations: 124.6 kB / 255.6 MB, free: 10.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2531/0.2531, allocations: 40.02 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005079/0.000508, allocations: 16.73 kB / 406.3 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1033, allocations: 54.87 MB / 461.1 MB, free: 3.227 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.91/8.014, allocations: 2.66 GB / 3.11 GB, free: 2.723 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/8.014, allocations: 79.95 kB / 3.111 GB, free: 2.684 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.213/13.23, allocations: 0.9012 GB / 4.012 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.705e-06/13.23, allocations: 0 / 4.012 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003383/13.23, allocations: 66.83 kB / 4.012 GB, free: 35.29 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.02191/13.25, allocations: 4.311 MB / 4.016 GB, free: 33.14 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/13.25, allocations: 8.25 kB / 4.016 GB, free: 33.14 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00174/13.25, allocations: 309.2 kB / 4.016 GB, free: 33.08 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009611/13.26, allocations: 0.8737 MB / 4.017 GB, free: 32.95 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00906/13.27, allocations: 2.09 MB / 4.019 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003785/13.27, allocations: 183 kB / 4.019 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001169/13.27, allocations: 203.2 kB / 4.02 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/13.29, allocations: 3.682 MB / 4.023 GB, free: 31.88 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/13.29, allocations: 3.625 kB / 4.023 GB, free: 31.88 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004856/13.29, allocations: 88.36 kB / 4.023 GB, free: 31.88 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003054/13.29, allocations: 168.3 kB / 4.023 GB, free: 31.88 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/13.3, allocations: 3.436 MB / 4.027 GB, free: 31.6 MB / 0.5105 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.03209/13.33, allocations: 15.42 MB / 4.042 GB, free: 19.94 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009502/13.34, allocations: 2.265 MB / 4.044 GB, free: 19.27 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05733/13.4, allocations: 18.89 MB / 4.062 GB, free: 6.516 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007317/13.41, allocations: 1.69 MB / 4.064 GB, free: 5.996 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=163): time 5.59e-06/13.41, allocations: 0 / 4.064 GB, free: 5.996 MB / 0.5105 GB Notification: Performance of matching and sorting (n=179): time 0.04238/13.45, allocations: 9.016 MB / 4.073 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001683/13.45, allocations: 256.6 kB / 4.073 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003751/13.45, allocations: 1.45 MB / 4.075 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006202/13.45, allocations: 69.06 kB / 4.075 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001396/13.46, allocations: 0.993 MB / 4.076 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001276/13.46, allocations: 0.5971 MB / 4.076 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000323/13.46, allocations: 40 kB / 4.076 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002409/13.46, allocations: 386.8 kB / 4.077 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004198/13.46, allocations: 1.131 MB / 4.078 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004874/13.47, allocations: 1.598 MB / 4.079 GB, free: 8.445 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004903/13.47, allocations: 1.372 MB / 4.081 GB, free: 7.215 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.732e-05/13.47, allocations: 4 kB / 4.081 GB, free: 7.211 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01204/13.48, allocations: 3.288 MB / 4.084 GB, free: 4.297 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.4794/13.96, allocations: 4.999 MB / 4.089 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.874e-05/13.96, allocations: 14.48 kB / 4.089 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001683/13.97, allocations: 252.7 kB / 4.089 GB, free: 49.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004513/13.97, allocations: 0.5148 MB / 4.089 GB, free: 49.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001991/13.97, allocations: 2.433 MB / 4.092 GB, free: 47.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004488/13.98, allocations: 272.7 kB / 4.092 GB, free: 47.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008086/13.98, allocations: 103.6 kB / 4.092 GB, free: 47.42 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/13.98, allocations: 7.453 kB / 4.092 GB, free: 47.42 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01205/13.99, allocations: 3.02 MB / 4.095 GB, free: 47.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.226e-05/13.99, allocations: 12.92 kB / 4.095 GB, free: 47.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/13.99, allocations: 249.2 kB / 4.095 GB, free: 47.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004571/14, allocations: 0.5125 MB / 4.096 GB, free: 47.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001906/14, allocations: 2.437 MB / 4.098 GB, free: 45.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004137/14, allocations: 266.5 kB / 4.099 GB, free: 45.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005264/14, allocations: 106.6 kB / 4.099 GB, free: 45.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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.002499/14, allocations: 0.7593 MB / 4.099 GB, free: 44.94 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007107/14.01, allocations: 207.3 kB / 4.1 GB, free: 44.94 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01919/14.02, allocations: 7.614 MB / 4.107 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.721e-05/14.02, allocations: 90.73 kB / 4.107 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/14.02, allocations: 0 / 4.107 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01377/14.04, allocations: 6.643 MB / 4.114 GB, free: 43.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02405/14.06, allocations: 10.85 MB / 4.124 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/14.06, allocations: 0 / 4.124 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003359/14.07, allocations: 410.1 kB / 4.125 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002323/14.07, allocations: 364.6 kB / 4.125 GB, free: 42.84 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005559/14.07, allocations: 70.61 kB / 4.125 GB, free: 42.83 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001708/14.07, allocations: 2.519 MB / 4.127 GB, free: 40.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/14.07, allocations: 3.375 kB / 4.127 GB, free: 40.77 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01655/14.09, allocations: 7.137 MB / 4.134 GB, free: 40.18 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002492/14.09, allocations: 0.7475 MB / 4.135 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008687/14.09, allocations: 54.12 kB / 4.135 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003449/14.09, allocations: 212.1 kB / 4.135 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000588/14.09, allocations: 152.7 kB / 4.136 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003083/14.1, allocations: 75.23 kB / 4.136 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002833/14.1, allocations: 1.218 MB / 4.137 GB, free: 39.76 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.143e-06/14.1, allocations: 3.125 kB / 4.137 GB, free: 39.76 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01458/14.11, allocations: 2.845 MB / 4.14 GB, free: 39.76 MB / 0.5261 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 171 * 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.03426/14.15, allocations: 10.53 MB / 4.15 GB, free: 38.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01576/14.16, allocations: 5.316 MB / 4.155 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/14.16, allocations: 2.734 kB / 4.155 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006038/14.17, allocations: 2.478 MB / 4.158 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008857/14.18, allocations: 0.9673 MB / 4.158 GB, free: 37.92 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8241/15, allocations: 141.2 MB / 4.296 GB, free: 53.64 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003666/15.01, allocations: 2.278 MB / 4.299 GB, free: 52.88 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008856/15.01, allocations: 2.439 MB / 4.301 GB, free: 52.84 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003485/15.02, allocations: 1.324 MB / 4.302 GB, free: 52.84 MB / 0.5417 GB Notification: Performance of SimCode: time 1.593e-06/15.02, allocations: 0 / 4.302 GB, free: 52.84 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2802/15.3, allocations: 114.4 MB / 4.414 GB, free: 42.61 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002513/15.3, allocations: 255 kB / 4.414 GB, free: 42.28 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.919/23.22, allocations: 3.781 kB / 4.414 GB, free: 42.28 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat