Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01055/0.01055, allocations: 165.6 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.664/1.664, allocations: 170.8 MB / 186.6 MB, free: 1.129 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002034/0.002033, allocations: 107.4 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4533/0.4533, allocations: 38.06 MB / 303.7 MB, free: 42.32 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004903/0.0004903, allocations: 8 kB / 363 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.107, allocations: 48.71 MB / 411.7 MB, free: 4.707 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.784/7.891, allocations: 2.566 GB / 2.968 GB, free: 35.88 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/7.891, allocations: 81.45 kB / 2.969 GB, free: 35.84 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.842/12.73, allocations: 0.8821 GB / 3.851 GB, free: 27.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.274e-06/12.73, allocations: 0 / 3.851 GB, free: 27.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003097/12.73, allocations: 61.2 kB / 3.851 GB, free: 27.17 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.02038/12.75, allocations: 4.111 MB / 3.855 GB, free: 24.89 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/12.75, allocations: 7.156 kB / 3.855 GB, free: 24.89 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001719/12.76, allocations: 306.3 kB / 3.855 GB, free: 24.72 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009675/12.77, allocations: 0.8485 MB / 3.856 GB, free: 24.51 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008827/12.77, allocations: 2.105 MB / 3.858 GB, free: 23.57 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003388/12.77, allocations: 181.5 kB / 3.858 GB, free: 23.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/12.78, allocations: 196.1 kB / 3.858 GB, free: 23.44 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01362/12.79, allocations: 3.649 MB / 3.862 GB, free: 21.94 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000107/12.79, allocations: 15.47 kB / 3.862 GB, free: 21.93 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005345/12.79, allocations: 90.92 kB / 3.862 GB, free: 21.87 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000302/12.79, allocations: 166.5 kB / 3.862 GB, free: 21.85 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01343/12.8, allocations: 3.331 MB / 3.865 GB, free: 20.86 MB / 474.7 MB 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.02901/12.83, allocations: 15.43 MB / 3.88 GB, free: 7.738 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009551/12.84, allocations: 2.785 MB / 3.883 GB, free: 5.262 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0616/12.9, allocations: 18.69 MB / 3.901 GB, free: 0.8516 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4133/13.32, allocations: 1.692 MB / 3.903 GB, free: 45.54 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 7.143e-06/13.32, allocations: 1.156 kB / 3.903 GB, free: 45.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.04498/13.36, allocations: 9.165 MB / 3.912 GB, free: 44.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/13.36, allocations: 264.5 kB / 3.912 GB, free: 44.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00326/13.37, allocations: 1.358 MB / 3.914 GB, free: 44.14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006671/13.37, allocations: 59.14 kB / 3.914 GB, free: 44.11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/13.37, allocations: 0.9765 MB / 3.915 GB, free: 43.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001167/13.37, allocations: 0.6224 MB / 3.915 GB, free: 43.48 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002856/13.37, allocations: 42.84 kB / 3.915 GB, free: 43.48 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000179/13.37, allocations: 387.4 kB / 3.916 GB, free: 43.18 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003862/13.37, allocations: 1.128 MB / 3.917 GB, free: 43.17 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004598/13.38, allocations: 1.617 MB / 3.918 GB, free: 42.67 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004501/13.38, allocations: 1.38 MB / 3.92 GB, free: 42.59 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.467e-05/13.38, allocations: 6.234 kB / 3.92 GB, free: 42.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01139/13.39, allocations: 3.324 MB / 3.923 GB, free: 42.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001178/13.4, allocations: 5 MB / 3.928 GB, free: 37.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.334e-05/13.4, allocations: 13.94 kB / 3.928 GB, free: 37.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001611/13.4, allocations: 251.6 kB / 3.928 GB, free: 37.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004559/13.4, allocations: 0.5318 MB / 3.928 GB, free: 37.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/13.4, allocations: 2.43 MB / 3.931 GB, free: 34.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004922/13.41, allocations: 312 kB / 3.931 GB, free: 34.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008518/13.41, allocations: 105.3 kB / 3.931 GB, free: 34.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/13.41, allocations: 6.469 kB / 3.931 GB, free: 34.93 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0105/13.42, allocations: 3.063 MB / 3.934 GB, free: 34.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.71e-05/13.42, allocations: 12.94 kB / 3.934 GB, free: 34.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/13.42, allocations: 254.2 kB / 3.935 GB, free: 34.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004396/13.43, allocations: 0.5219 MB / 3.935 GB, free: 34.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/13.43, allocations: 2.427 MB / 3.937 GB, free: 32.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004708/13.43, allocations: 308.5 kB / 3.938 GB, free: 32.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000728/13.43, allocations: 103.4 kB / 3.938 GB, free: 32.68 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.002463/13.44, allocations: 0.7647 MB / 3.939 GB, free: 32.42 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007346/13.44, allocations: 201.7 kB / 3.939 GB, free: 32.32 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01853/13.46, allocations: 7.561 MB / 3.946 GB, free: 31.66 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.812e-05/13.46, allocations: 83.67 kB / 3.946 GB, free: 31.66 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/13.46, allocations: 3.172 kB / 3.946 GB, free: 31.66 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01593/13.47, allocations: 6.579 MB / 3.953 GB, free: 30.76 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02999/13.5, allocations: 12.19 MB / 3.965 GB, free: 29.19 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.143e-05/13.5, allocations: 3.969 kB / 3.965 GB, free: 29.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003375/13.5, allocations: 434.9 kB / 3.965 GB, free: 29.19 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002339/13.51, allocations: 361.6 kB / 3.965 GB, free: 29.15 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005683/13.51, allocations: 79.72 kB / 3.965 GB, free: 29.15 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001731/13.51, allocations: 2.524 MB / 3.968 GB, free: 27.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/13.51, allocations: 9 kB / 3.968 GB, free: 27.08 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01769/13.53, allocations: 7.766 MB / 3.975 GB, free: 25.68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0026/13.53, allocations: 0.749 MB / 3.976 GB, free: 25.35 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008208/13.53, allocations: 59.09 kB / 3.976 GB, free: 25.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003354/13.53, allocations: 217.1 kB / 3.976 GB, free: 25.34 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005669/13.53, allocations: 172.9 kB / 3.977 GB, free: 25.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002683/13.54, allocations: 87.73 kB / 3.977 GB, free: 25.33 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002687/13.54, allocations: 1.141 MB / 3.978 GB, free: 25.19 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.11e-07/13.54, allocations: 3.172 kB / 3.978 GB, free: 25.19 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01452/13.55, allocations: 2.709 MB / 3.98 GB, free: 25.08 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.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.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 183 * 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.03296/13.59, allocations: 12.41 MB / 3.993 GB, free: 21.66 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0155/13.6, allocations: 5.254 MB / 3.998 GB, free: 21.32 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.641e-05/13.6, allocations: 0 / 3.998 GB, free: 21.32 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006695/13.61, allocations: 2.704 MB / 4 GB, free: 21.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009175/13.62, allocations: 0.9706 MB / 4.001 GB, free: 21.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7987/14.42, allocations: 139.2 MB / 4.137 GB, free: 44.32 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002949/14.42, allocations: 2.285 MB / 4.139 GB, free: 43.55 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007897/14.43, allocations: 2.374 MB / 4.142 GB, free: 43.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003322/14.43, allocations: 1.323 MB / 4.143 GB, free: 43.51 MB / 0.4948 GB Notification: Performance of SimCode: time 2.144e-06/14.43, allocations: 0 / 4.143 GB, free: 43.51 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2437/14.67, allocations: 113.5 MB / 4.254 GB, free: 2.285 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003353/14.67, allocations: 256.2 kB / 4.254 GB, free: 1.945 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.261/22.94, allocations: 0 / 4.254 GB, free: 1.945 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat