Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",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.01049/0.01049, allocations: 166 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.693/1.693, 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.002023/0.002022, 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.4703/0.4703, allocations: 38.05 MB / 303.7 MB, free: 42.41 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004726/0.0004725, allocations: 12 kB / 363 MB, free: 5.492 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1408, allocations: 48.71 MB / 411.7 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.233/8.374, allocations: 2.545 GB / 2.947 GB, free: 64.74 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/8.374, allocations: 77.72 kB / 2.947 GB, free: 64.7 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.1/11.47, allocations: 0.5613 GB / 3.508 GB, free: 10.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.823e-06/11.47, allocations: 0 / 3.508 GB, free: 10.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002059/11.47, allocations: 49.86 kB / 3.508 GB, free: 10.26 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.01376/11.49, allocations: 2.967 MB / 3.511 GB, free: 7.262 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/11.49, allocations: 8.031 kB / 3.511 GB, free: 7.254 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009196/11.49, allocations: 193.2 kB / 3.512 GB, free: 7.059 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005974/11.49, allocations: 0.5213 MB / 3.512 GB, free: 6.539 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005874/11.5, allocations: 1.448 MB / 3.513 GB, free: 5.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002029/11.5, allocations: 119.2 kB / 3.514 GB, free: 4.961 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006561/11.5, allocations: 136.9 kB / 3.514 GB, free: 4.836 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008027/11.51, allocations: 2.267 MB / 3.516 GB, free: 2.438 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.424e-05/11.51, allocations: 0 / 3.516 GB, free: 2.438 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002845/11.51, allocations: 57.86 kB / 3.516 GB, free: 2.387 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001996/11.51, allocations: 110.2 kB / 3.516 GB, free: 2.277 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/11.52, allocations: 2.046 MB / 3.518 GB, free: 228 kB / 442.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.02379/11.55, allocations: 9.64 MB / 3.527 GB, free: 5.844 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006101/11.55, allocations: 1.374 MB / 3.529 GB, free: 4.457 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.416/11.97, allocations: 18.76 MB / 3.547 GB, free: 26.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004452/11.97, allocations: 1.029 MB / 3.548 GB, free: 26.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 6.883e-06/11.97, allocations: 3.031 kB / 3.548 GB, free: 26.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.02252/12, allocations: 5.16 MB / 3.553 GB, free: 25.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/12, allocations: 278.7 kB / 3.553 GB, free: 25.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003662/12, allocations: 0.9792 MB / 3.554 GB, free: 25.05 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004803/12, allocations: 46.11 kB / 3.554 GB, free: 25.02 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/12, allocations: 0.6527 MB / 3.555 GB, free: 24.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001003/12, allocations: 354.1 kB / 3.555 GB, free: 24.63 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003415/12, allocations: 24.41 kB / 3.555 GB, free: 24.63 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002302/12, allocations: 359.4 kB / 3.556 GB, free: 24.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004041/12.01, allocations: 0.6835 MB / 3.556 GB, free: 24.32 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00412/12.01, allocations: 1.002 MB / 3.557 GB, free: 23.97 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002736/12.01, allocations: 0.8299 MB / 3.558 GB, free: 23.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.619e-05/12.01, allocations: 3.531 kB / 3.558 GB, free: 23.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.007019/12.02, allocations: 2.012 MB / 3.56 GB, free: 23.76 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008133/12.02, allocations: 3.277 MB / 3.563 GB, free: 20.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.093e-05/12.02, allocations: 9.094 kB / 3.563 GB, free: 20.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009297/12.02, allocations: 138.8 kB / 3.564 GB, free: 20.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002663/12.03, allocations: 325.4 kB / 3.564 GB, free: 20.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/12.03, allocations: 1.257 MB / 3.565 GB, free: 19.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002633/12.03, allocations: 159.1 kB / 3.565 GB, free: 19.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003443/12.03, allocations: 63.38 kB / 3.565 GB, free: 19.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/12.03, allocations: 5.375 kB / 3.565 GB, free: 19.32 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006164/12.04, allocations: 1.842 MB / 3.567 GB, free: 19.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.176e-05/12.04, allocations: 16.48 kB / 3.567 GB, free: 19.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000737/12.04, allocations: 139.7 kB / 3.567 GB, free: 19.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002565/12.04, allocations: 321.6 kB / 3.568 GB, free: 19.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/12.04, allocations: 1.255 MB / 3.569 GB, free: 18.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/12.04, allocations: 154 kB / 3.569 GB, free: 18.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003346/12.04, allocations: 67.3 kB / 3.569 GB, free: 18.19 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.state_b.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 (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001407/12.05, allocations: 0.5352 MB / 3.57 GB, free: 17.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004472/12.05, allocations: 136.1 kB / 3.57 GB, free: 17.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/12.06, allocations: 4.749 MB / 3.574 GB, free: 17.46 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.718e-05/12.06, allocations: 59.94 kB / 3.574 GB, free: 17.46 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/12.06, allocations: 3.953 kB / 3.574 GB, free: 17.45 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008753/12.06, allocations: 3.977 MB / 3.578 GB, free: 17.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/12.08, allocations: 6.738 MB / 3.585 GB, free: 16.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/12.08, allocations: 0.8906 kB / 3.585 GB, free: 16.49 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001999/12.08, allocations: 244.8 kB / 3.585 GB, free: 16.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/12.08, allocations: 193.2 kB / 3.585 GB, free: 16.47 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002053/12.08, allocations: 36.91 kB / 3.585 GB, free: 16.47 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008969/12.08, allocations: 1.293 MB / 3.587 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/12.08, allocations: 0 / 3.587 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01084/12.09, allocations: 4.357 MB / 3.591 GB, free: 15.01 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001703/12.1, allocations: 0.5326 MB / 3.591 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006333/12.1, allocations: 37.22 kB / 3.591 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/12.1, allocations: 121.9 kB / 3.591 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004675/12.1, allocations: 86.02 kB / 3.592 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001869/12.1, allocations: 44.84 kB / 3.592 GB, free: 14.79 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0024/12.1, allocations: 0.8658 MB / 3.592 GB, free: 14.68 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.42e-07/12.1, allocations: 3.25 kB / 3.592 GB, free: 14.68 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01084/12.11, allocations: 2.17 MB / 3.595 GB, free: 14.62 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02619/12.14, allocations: 7.174 MB / 3.602 GB, free: 13.51 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01294/12.15, allocations: 3.174 MB / 3.605 GB, free: 13.28 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/12.15, allocations: 0 / 3.605 GB, free: 13.28 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004885/12.16, allocations: 1.459 MB / 3.606 GB, free: 13.21 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007534/12.17, allocations: 0.5639 MB / 3.607 GB, free: 13.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8383/13, allocations: 132.5 MB / 3.736 GB, free: 41.55 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001593/13, allocations: 1.714 MB / 3.738 GB, free: 40.82 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005167/13.01, allocations: 1.565 MB / 3.739 GB, free: 40.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00189/13.01, allocations: 0.8397 MB / 3.74 GB, free: 40.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.022e-06/13.01, allocations: 1.781 kB / 3.74 GB, free: 40.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2347/13.25, allocations: 81.39 MB / 3.82 GB, free: 35.68 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003178/13.25, allocations: 255 kB / 3.82 GB, free: 35.34 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.037/20.28, allocations: 0 / 3.82 GB, free: 35.34 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat