Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.009969/0.009969, allocations: 165 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.638/1.638, allocations: 170.8 MB / 186.6 MB, free: 1.133 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.002013/0.002013, allocations: 106.5 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.451/0.451, allocations: 38.05 MB / 303.7 MB, free: 42.35 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005349/0.0005348, allocations: 12 kB / 363 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1047, allocations: 48.7 MB / 411.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.114/8.219, allocations: 2.567 GB / 2.969 GB, free: 99.51 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000361/8.219, allocations: 81.88 kB / 2.969 GB, free: 99.51 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.288/13.51, allocations: 0.9848 GB / 3.954 GB, free: 7.012 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.445e-06/13.51, allocations: 0 / 3.954 GB, free: 7.012 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003424/13.51, allocations: 75.78 kB / 3.954 GB, free: 6.941 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.02268/13.53, allocations: 4.397 MB / 3.958 GB, free: 2.516 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/13.53, allocations: 12.03 kB / 3.958 GB, free: 2.504 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001682/13.53, allocations: 321.9 kB / 3.959 GB, free: 2.188 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01045/13.54, allocations: 0.91 MB / 3.959 GB, free: 1.277 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5146/14.06, allocations: 2.198 MB / 3.962 GB, free: 29.62 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006401/14.06, allocations: 195.9 kB / 3.962 GB, free: 29.61 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/14.06, allocations: 222.7 kB / 3.962 GB, free: 29.61 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02537/14.08, allocations: 3.9 MB / 3.966 GB, free: 29 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001869/14.09, allocations: 11.02 kB / 3.966 GB, free: 29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001361/14.09, allocations: 97.14 kB / 3.966 GB, free: 29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005777/14.09, allocations: 173.3 kB / 3.966 GB, free: 28.99 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02329/14.11, allocations: 3.599 MB / 3.97 GB, free: 28.96 MB / 490.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.04702/14.16, allocations: 16.7 MB / 3.986 GB, free: 19.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01751/14.18, allocations: 3.15 MB / 3.989 GB, free: 18.47 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06996/14.25, allocations: 18.54 MB / 4.007 GB, free: 22.93 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008102/14.25, allocations: 1.853 MB / 4.009 GB, free: 22.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=188): time 6.862e-06/14.25, allocations: 2.938 kB / 4.009 GB, free: 22.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=208): time 0.05177/14.31, allocations: 10.26 MB / 4.019 GB, free: 21.57 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001977/14.31, allocations: 264 kB / 4.019 GB, free: 21.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003982/14.31, allocations: 1.441 MB / 4.021 GB, free: 21.08 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007543/14.31, allocations: 65.3 kB / 4.021 GB, free: 21.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001441/14.31, allocations: 1.045 MB / 4.022 GB, free: 20.65 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001374/14.31, allocations: 0.6964 MB / 4.022 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004447/14.31, allocations: 50.09 kB / 4.022 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003011/14.31, allocations: 404.1 kB / 4.023 GB, free: 19.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005924/14.32, allocations: 1.257 MB / 4.024 GB, free: 19.89 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005699/14.33, allocations: 1.813 MB / 4.026 GB, free: 19.33 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005295/14.33, allocations: 1.521 MB / 4.027 GB, free: 19.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.486e-05/14.33, allocations: 3.312 kB / 4.027 GB, free: 19.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01469/14.35, allocations: 3.762 MB / 4.031 GB, free: 18.96 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002531/14.35, allocations: 5.657 MB / 4.036 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-05/14.35, allocations: 12.5 kB / 4.037 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002206/14.35, allocations: 349.8 kB / 4.037 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005215/14.36, allocations: 0.6027 MB / 4.037 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003203/14.36, allocations: 3.094 MB / 4.04 GB, free: 10.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005632/14.36, allocations: 343.7 kB / 4.041 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009083/14.37, allocations: 121.2 kB / 4.041 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/14.37, allocations: 3.938 kB / 4.041 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01318/14.38, allocations: 3.474 MB / 4.044 GB, free: 10.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-05/14.38, allocations: 14.62 kB / 4.044 GB, free: 10.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001974/14.38, allocations: 350.3 kB / 4.045 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005061/14.39, allocations: 0.5963 MB / 4.045 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003391/14.39, allocations: 3.097 MB / 4.048 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005341/14.39, allocations: 334.9 kB / 4.049 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008629/14.4, allocations: 120.6 kB / 4.049 GB, free: 23.57 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (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,junctionVolume.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 (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002737/14.4, allocations: 0.7829 MB / 4.049 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007691/14.4, allocations: 227.3 kB / 4.05 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01935/14.42, allocations: 8.227 MB / 4.058 GB, free: 22.43 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/14.42, allocations: 94.67 kB / 4.058 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/14.42, allocations: 3.344 kB / 4.058 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01577/14.43, allocations: 7.148 MB / 4.065 GB, free: 21.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03171/14.47, allocations: 13.15 MB / 4.078 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.091e-05/14.47, allocations: 3.438 kB / 4.078 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003902/14.47, allocations: 485.5 kB / 4.078 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00291/14.47, allocations: 482.7 kB / 4.079 GB, free: 19.81 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006111/14.47, allocations: 79.61 kB / 4.079 GB, free: 19.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003101/14.48, allocations: 3.229 MB / 4.082 GB, free: 17.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/14.48, allocations: 5.656 kB / 4.082 GB, free: 17.21 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01884/14.5, allocations: 8.47 MB / 4.09 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002653/14.5, allocations: 0.7928 MB / 4.091 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008506/14.5, allocations: 75.59 kB / 4.091 GB, free: 15.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003776/14.5, allocations: 227.9 kB / 4.091 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006118/14.5, allocations: 192.1 kB / 4.091 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/14.5, allocations: 94.98 kB / 4.091 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002603/14.51, allocations: 1.197 MB / 4.093 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.61e-07/14.51, allocations: 0 / 4.093 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01458/14.52, allocations: 2.889 MB / 4.095 GB, free: 15.17 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 57 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionVolume.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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03573/14.56, allocations: 13.26 MB / 4.108 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0171/14.57, allocations: 5.839 MB / 4.114 GB, free: 9.727 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.685e-05/14.57, allocations: 3.344 kB / 4.114 GB, free: 9.727 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007279/14.58, allocations: 2.978 MB / 4.117 GB, free: 8.492 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01047/14.59, allocations: 1.134 MB / 4.118 GB, free: 8.289 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9152/15.51, allocations: 142.6 MB / 4.257 GB, free: 39.17 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003729/15.51, allocations: 2.375 MB / 4.26 GB, free: 38.36 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01031/15.52, allocations: 2.521 MB / 4.262 GB, free: 38.26 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003598/15.53, allocations: 1.429 MB / 4.263 GB, free: 38.26 MB / 0.5105 GB Notification: Performance of SimCode: time 1.553e-06/15.53, allocations: 5.969 kB / 4.263 GB, free: 38.25 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7951/16.32, allocations: 123.5 MB / 4.384 GB, free: 52.94 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002828/16.32, allocations: 248.2 kB / 4.384 GB, free: 52.61 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.653/25.97, allocations: 0 / 4.384 GB, free: 52.61 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat