Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.01462/0.01463, allocations: 176 kB / 15.12 MB, free: 5.93 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.943/1.943, allocations: 194.5 MB / 210.3 MB, free: 8.582 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.002873/0.002873, allocations: 120.7 kB / 255.6 MB, free: 11.21 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.2437/0.2437, allocations: 40.01 MB / 340.8 MB, free: 11.53 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000468/0.0004682, allocations: 10.5 kB / 406.3 MB, free: 52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1011, allocations: 54.87 MB / 461.1 MB, free: 3.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.21/8.311, allocations: 2.673 GB / 3.123 GB, free: 75.56 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003316/8.311, allocations: 82.56 kB / 3.123 GB, free: 75.56 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.466/12.78, allocations: 0.8005 GB / 3.924 GB, free: 39.94 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.025e-06/12.78, allocations: 0 / 3.924 GB, free: 39.94 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003983/12.78, allocations: 56.2 kB / 3.924 GB, free: 39.93 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02321/12.8, allocations: 3.923 MB / 3.928 GB, free: 38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/12.8, allocations: 10.22 kB / 3.928 GB, free: 38 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001652/12.8, allocations: 273.7 kB / 3.928 GB, free: 37.96 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009014/12.81, allocations: 0.7823 MB / 3.929 GB, free: 37.83 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009042/12.82, allocations: 2.004 MB / 3.931 GB, free: 37.39 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003868/12.82, allocations: 159.3 kB / 3.931 GB, free: 37.38 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001219/12.82, allocations: 184.9 kB / 3.931 GB, free: 37.38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01412/12.84, allocations: 3.336 MB / 3.934 GB, free: 36.89 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/12.84, allocations: 10.91 kB / 3.934 GB, free: 36.89 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009141/12.84, allocations: 82.89 kB / 3.934 GB, free: 36.89 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003368/12.84, allocations: 148.9 kB / 3.934 GB, free: 36.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/12.85, allocations: 3.17 MB / 3.937 GB, free: 36.87 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.02935/12.88, allocations: 13.66 MB / 3.951 GB, free: 28.62 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008245/12.89, allocations: 2.032 MB / 3.953 GB, free: 28.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05859/12.95, allocations: 18.83 MB / 3.971 GB, free: 32.75 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006717/12.96, allocations: 1.598 MB / 3.973 GB, free: 32.62 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00203/12.96, allocations: 170.5 kB / 3.973 GB, free: 32.55 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 1.018e-05/12.96, allocations: 0 / 3.973 GB, free: 32.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=167): time 0.03841/13, allocations: 8.307 MB / 3.981 GB, free: 31.31 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002021/13, allocations: 260.7 kB / 3.981 GB, free: 31.03 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003149/13, allocations: 1.266 MB / 3.982 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006603/13, allocations: 62.05 kB / 3.983 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00115/13, allocations: 0.879 MB / 3.983 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001052/13, allocations: 0.5544 MB / 3.984 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002589/13, allocations: 36.62 kB / 3.984 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002229/13, allocations: 377 kB / 3.984 GB, free: 29.82 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003261/13.01, allocations: 1.02 MB / 3.985 GB, free: 29.81 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004038/13.01, allocations: 1.453 MB / 3.987 GB, free: 29.37 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004083/13.01, allocations: 1.261 MB / 3.988 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.789e-05/13.01, allocations: 5.75 kB / 3.988 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01173/13.03, allocations: 3.119 MB / 3.991 GB, free: 29.01 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001993/13.03, allocations: 4.355 MB / 3.995 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.125e-05/13.03, allocations: 11.25 kB / 3.995 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00474/13.03, allocations: 0.5372 MB / 3.996 GB, free: 24.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00381/13.04, allocations: 454.6 kB / 3.996 GB, free: 24.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003135/13.04, allocations: 2.706 MB / 3.999 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004517/13.04, allocations: 257.3 kB / 3.999 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008031/13.05, allocations: 99.22 kB / 3.999 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/13.05, allocations: 3.219 kB / 3.999 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009402/13.05, allocations: 2.75 MB / 4.002 GB, free: 22.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.652e-05/13.05, allocations: 10.56 kB / 4.002 GB, free: 22.15 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/13.06, allocations: 205.8 kB / 4.002 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003829/13.06, allocations: 469.9 kB / 4.003 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001738/13.06, allocations: 1.882 MB / 4.004 GB, free: 20.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004055/13.07, allocations: 255.6 kB / 4.005 GB, free: 20.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005891/13.07, allocations: 94.72 kB / 4.005 GB, free: 20.55 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.002121/13.07, allocations: 0.7114 MB / 4.005 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006187/13.07, allocations: 187.9 kB / 4.006 GB, free: 20.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01665/13.09, allocations: 7.451 MB / 4.013 GB, free: 19.45 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.676e-05/13.09, allocations: 85.48 kB / 4.013 GB, free: 19.45 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/13.09, allocations: 0 / 4.013 GB, free: 19.45 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01354/13.1, allocations: 6.516 MB / 4.019 GB, free: 18.53 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02705/13.13, allocations: 11.2 MB / 4.03 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-05/13.13, allocations: 3.844 kB / 4.03 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002788/13.13, allocations: 356.6 kB / 4.031 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004391/13.13, allocations: 1.208 MB / 4.032 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005487/13.13, allocations: 61.83 kB / 4.032 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003745/13.14, allocations: 3.222 MB / 4.035 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/13.14, allocations: 7.906 kB / 4.035 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01566/13.15, allocations: 7.463 MB / 4.042 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002361/13.16, allocations: 0.7056 MB / 4.043 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006949/13.16, allocations: 57.14 kB / 4.043 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002745/13.16, allocations: 181.2 kB / 4.043 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000457/13.16, allocations: 154.4 kB / 4.043 GB, free: 10.56 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002389/13.16, allocations: 80.73 kB / 4.043 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002437/13.16, allocations: 1.084 MB / 4.045 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.91e-07/13.16, allocations: 0 / 4.045 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01284/13.18, allocations: 2.561 MB / 4.047 GB, free: 9.605 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03116/13.21, allocations: 11.46 MB / 4.058 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02104/13.23, allocations: 5.244 MB / 4.063 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.741e-05/13.23, allocations: 4 kB / 4.063 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006701/13.24, allocations: 2.508 MB / 4.066 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008039/13.24, allocations: 0.8507 MB / 4.067 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8168/14.06, allocations: 139.4 MB / 4.203 GB, free: 44.53 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003308/14.06, allocations: 2.178 MB / 4.205 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006759/14.07, allocations: 2.253 MB / 4.207 GB, free: 43.66 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00278/14.07, allocations: 1.216 MB / 4.208 GB, free: 43.65 MB / 0.5417 GB Notification: Performance of SimCode: time 1.313e-06/14.07, allocations: 0 / 4.208 GB, free: 43.65 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.696/14.77, allocations: 106.4 MB / 4.312 GB, free: 59.92 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003057/14.77, allocations: 253.3 kB / 4.312 GB, free: 59.59 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.308/22.08, allocations: 4.281 kB / 4.312 GB, free: 59.59 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat