Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.01022/0.01022, allocations: 175.1 kB / 15.12 MB, free: 5.934 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 2.037/2.037, allocations: 194.5 MB / 210.3 MB, free: 8.781 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.00203/0.00203, allocations: 116.6 kB / 255.6 MB, free: 11.39 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.2623/0.2623, allocations: 40.01 MB / 340.8 MB, free: 11.56 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006905/0.0006906, allocations: 17.47 kB / 406.3 MB, free: 52.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1072, allocations: 54.88 MB / 461.1 MB, free: 3.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.203/8.31, allocations: 2.677 GB / 3.127 GB, free: 76.78 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/8.31, allocations: 83.86 kB / 3.127 GB, free: 76.78 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.694/13, allocations: 0.9046 GB / 4.032 GB, free: 32.68 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.137e-06/13, allocations: 0 / 4.032 GB, free: 32.68 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005177/13, allocations: 72.06 kB / 4.032 GB, free: 32.66 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.0218/13.03, allocations: 4.229 MB / 4.036 GB, free: 30.32 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/13.03, allocations: 9.719 kB / 4.036 GB, free: 30.32 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001639/13.03, allocations: 305.3 kB / 4.037 GB, free: 30.15 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009595/13.04, allocations: 0.8791 MB / 4.037 GB, free: 29.93 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009289/13.05, allocations: 2.121 MB / 4.039 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003772/13.05, allocations: 180.1 kB / 4.04 GB, free: 28.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001269/13.05, allocations: 206.4 kB / 4.04 GB, free: 28.83 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01487/13.06, allocations: 3.663 MB / 4.043 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/13.06, allocations: 3.938 kB / 4.043 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001024/13.07, allocations: 87.19 kB / 4.043 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003259/13.07, allocations: 167.3 kB / 4.044 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/13.08, allocations: 3.341 MB / 4.047 GB, free: 23.79 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.03055/13.11, allocations: 15.47 MB / 4.062 GB, free: 8.578 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009527/13.12, allocations: 2.783 MB / 4.065 GB, free: 5.684 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06295/13.18, allocations: 18.71 MB / 4.083 GB, free: 0.6719 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.46/13.64, allocations: 1.709 MB / 4.085 GB, free: 51.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=173): time 6.933e-06/13.64, allocations: 0 / 4.085 GB, free: 51.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=189): time 0.04273/13.69, allocations: 9.171 MB / 4.094 GB, free: 50.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/13.69, allocations: 258.5 kB / 4.094 GB, free: 49.83 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003421/13.69, allocations: 1.358 MB / 4.095 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000671/13.69, allocations: 60.28 kB / 4.095 GB, free: 49.63 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001335/13.69, allocations: 0.9838 MB / 4.096 GB, free: 49.32 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001298/13.69, allocations: 0.6317 MB / 4.097 GB, free: 49.01 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003496/13.69, allocations: 39.97 kB / 4.097 GB, free: 49.01 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002024/13.69, allocations: 392.4 kB / 4.097 GB, free: 48.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004351/13.7, allocations: 1.138 MB / 4.098 GB, free: 48.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005101/13.7, allocations: 1.628 MB / 4.1 GB, free: 48.19 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00452/13.71, allocations: 1.389 MB / 4.101 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.917e-05/13.71, allocations: 8.281 kB / 4.101 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01146/13.72, allocations: 3.305 MB / 4.105 GB, free: 47.83 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001129/13.72, allocations: 5.006 MB / 4.109 GB, free: 42.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.804e-05/13.72, allocations: 12.09 kB / 4.109 GB, free: 42.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/13.72, allocations: 253.1 kB / 4.11 GB, free: 42.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004489/13.73, allocations: 0.5253 MB / 4.11 GB, free: 42.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/13.73, allocations: 2.434 MB / 4.113 GB, free: 40.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004859/13.73, allocations: 307.2 kB / 4.113 GB, free: 40.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008153/13.73, allocations: 107 kB / 4.113 GB, free: 40.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/13.73, allocations: 8.906 kB / 4.113 GB, free: 40.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01016/13.74, allocations: 3.042 MB / 4.116 GB, free: 40.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-05/13.74, allocations: 17.22 kB / 4.116 GB, free: 40.31 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/13.75, allocations: 248.1 kB / 4.116 GB, free: 40.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004331/13.75, allocations: 0.5222 MB / 4.117 GB, free: 40.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/13.75, allocations: 2.429 MB / 4.119 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004535/13.76, allocations: 306.3 kB / 4.119 GB, free: 38.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006744/13.76, allocations: 107.2 kB / 4.119 GB, free: 38.19 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 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002413/13.76, allocations: 0.7676 MB / 4.12 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000747/13.76, allocations: 209.7 kB / 4.12 GB, free: 37.84 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01743/13.78, allocations: 7.553 MB / 4.128 GB, free: 37.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.793e-05/13.78, allocations: 80.75 kB / 4.128 GB, free: 37.18 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/13.78, allocations: 0 / 4.128 GB, free: 37.18 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01419/13.79, allocations: 6.57 MB / 4.134 GB, free: 36.28 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02915/13.82, allocations: 12.2 MB / 4.146 GB, free: 34.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.573e-05/13.82, allocations: 3.688 kB / 4.146 GB, free: 34.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003496/13.82, allocations: 433.5 kB / 4.147 GB, free: 34.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002354/13.83, allocations: 368.1 kB / 4.147 GB, free: 34.67 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000598/13.83, allocations: 79.38 kB / 4.147 GB, free: 34.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001773/13.83, allocations: 2.529 MB / 4.15 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.16e-05/13.83, allocations: 9.125 kB / 4.15 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01747/13.85, allocations: 7.768 MB / 4.157 GB, free: 31.19 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/13.85, allocations: 0.749 MB / 4.158 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008333/13.85, allocations: 61.34 kB / 4.158 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003186/13.85, allocations: 222.6 kB / 4.158 GB, free: 30.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004946/13.85, allocations: 169.4 kB / 4.158 GB, free: 30.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/13.85, allocations: 92.72 kB / 4.158 GB, free: 30.85 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002364/13.86, allocations: 1.139 MB / 4.159 GB, free: 30.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.9e-07/13.86, allocations: 0 / 4.159 GB, free: 30.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01333/13.87, allocations: 2.743 MB / 4.162 GB, free: 30.6 MB / 0.5261 GB 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: 56 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.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 (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.03246/13.9, allocations: 12.44 MB / 4.174 GB, free: 27.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01554/13.92, allocations: 5.378 MB / 4.18 GB, free: 26.83 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.427e-05/13.92, allocations: 0 / 4.18 GB, free: 26.83 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006686/13.92, allocations: 2.753 MB / 4.182 GB, free: 26.69 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008972/13.93, allocations: 0.9843 MB / 4.183 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8626/14.8, allocations: 141.4 MB / 4.321 GB, free: 50.45 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003416/14.8, allocations: 2.291 MB / 4.324 GB, free: 49.68 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008024/14.81, allocations: 2.373 MB / 4.326 GB, free: 49.64 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003388/14.81, allocations: 1.338 MB / 4.327 GB, free: 49.64 MB / 0.5417 GB Notification: Performance of SimCode: time 1.673e-06/14.81, allocations: 0 / 4.327 GB, free: 49.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2505/15.06, allocations: 114.2 MB / 4.439 GB, free: 25 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002502/15.06, allocations: 260.2 kB / 4.439 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.655/23.72, allocations: 0 / 4.439 GB, free: 24.66 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat