Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01139/0.0114, allocations: 104.4 kB / 15.05 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001217/0.001217, allocations: 168 kB / 15.93 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.707/1.707, allocations: 170.9 MB / 187.5 MB, free: 1.004 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2579/0.2579, allocations: 38.09 MB / 265.1 MB, free: 3.973 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004619/0.0004619, allocations: 12 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09616/0.09666, allocations: 48.71 MB / 372.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.06531/0.162, allocations: 39.97 MB / 412.3 MB, free: 4.773 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.3367/0.4988, allocations: 22.34 MB / 434.6 MB, free: 12.05 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001623/0.5005, allocations: 38.38 kB / 434.6 MB, free: 12.05 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.5031, allocations: 0.5019 MB / 435.1 MB, free: 12.05 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02407/0.5272, allocations: 4.521 MB / 439.7 MB, free: 12 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01944/0.5467, allocations: 4.088 MB / 443.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004782/0.5515, allocations: 2.459 MB / 446.2 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001924/0.5534, allocations: 0.8466 MB / 447.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1511/0.7045, allocations: 50.36 MB / 497.4 MB, free: 9.125 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05913/0.7637, allocations: 19.95 MB / 0.5052 GB, free: 6.754 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006003/0.7644, allocations: 84.56 kB / 0.5053 GB, free: 6.672 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02565/0.7901, allocations: 8.109 MB / 0.5132 GB, free: 336 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0015/0.7916, allocations: 0.642 MB / 0.5139 GB, free: 15.9 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.7929, allocations: 450.5 kB / 0.5143 GB, free: 15.64 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01413/0.807, allocations: 5.226 MB / 0.5194 GB, free: 11.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.8071, allocations: 0 / 0.5194 GB, free: 11.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.105e-06/0.8071, allocations: 3.844 kB / 0.5194 GB, free: 11.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001015/0.8072, allocations: 0 / 0.5194 GB, free: 11.16 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01504/0.8223, allocations: 3.057 MB / 0.5224 GB, free: 8.281 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.8224, allocations: 8.031 kB / 0.5224 GB, free: 8.273 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001041/0.8234, allocations: 283.6 kB / 0.5227 GB, free: 8.105 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0076/0.831, allocations: 0.6705 MB / 0.5233 GB, free: 7.496 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003786/0.8349, allocations: 1.183 MB / 0.5245 GB, free: 6.602 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000304/0.8352, allocations: 166.3 kB / 0.5246 GB, free: 6.508 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008597/0.8361, allocations: 169.7 kB / 0.5248 GB, free: 6.395 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01267/0.8488, allocations: 3.553 MB / 0.5283 GB, free: 3.719 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.302e-05/0.8489, allocations: 6.812 kB / 0.5283 GB, free: 3.715 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003918/0.8493, allocations: 77.62 kB / 0.5283 GB, free: 3.695 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003803/0.8497, allocations: 224 kB / 0.5286 GB, free: 3.504 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01423/0.8639, allocations: 3.53 MB / 0.532 GB, free: 0.9961 MB / 394.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.03333/0.8973, allocations: 14.12 MB / 0.5458 GB, free: 4.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01373/0.9111, allocations: 2.292 MB / 0.548 GB, free: 2.527 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5704/1.482, allocations: 64.23 MB / 0.6108 GB, free: 146.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009515/1.491, allocations: 1.727 MB / 0.6124 GB, free: 146.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=154): time 8.286e-06/1.491, allocations: 1.969 kB / 0.6124 GB, free: 146.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=174): time 0.03714/1.528, allocations: 9.493 MB / 0.6217 GB, free: 145 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/1.528, allocations: 282.8 kB / 0.622 GB, free: 144.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00307/1.532, allocations: 1.325 MB / 0.6233 GB, free: 144.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005266/1.532, allocations: 62.89 kB / 0.6233 GB, free: 144.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008482/1.533, allocations: 0.8262 MB / 0.6241 GB, free: 143.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009022/1.534, allocations: 0.6015 MB / 0.6247 GB, free: 143.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002788/1.534, allocations: 44.78 kB / 0.6248 GB, free: 143.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/1.534, allocations: 387.6 kB / 0.6251 GB, free: 143 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004278/1.539, allocations: 1.287 MB / 0.6264 GB, free: 142.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004832/1.544, allocations: 1.863 MB / 0.6282 GB, free: 141.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004897/1.549, allocations: 1.524 MB / 0.6297 GB, free: 141.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.521e-05/1.549, allocations: 3.719 kB / 0.6297 GB, free: 141.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01407/1.563, allocations: 4.373 MB / 0.634 GB, free: 139.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00149/1.564, allocations: 6.696 MB / 0.6405 GB, free: 132.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-05/1.564, allocations: 16 kB / 0.6405 GB, free: 132.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02915/1.594, allocations: 3.755 MB / 0.6442 GB, free: 129.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002455/1.596, allocations: 339.4 kB / 0.6445 GB, free: 128.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/1.607, allocations: 4.063 MB / 0.6485 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003997/1.612, allocations: 271.5 kB / 0.6487 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004933/1.612, allocations: 114.8 kB / 0.6489 GB, free: 124.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/1.612, allocations: 4 kB / 0.6489 GB, free: 124.8 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01284/1.625, allocations: 3.982 MB / 0.6528 GB, free: 120.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.342e-05/1.625, allocations: 16 kB / 0.6528 GB, free: 120.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01683/1.642, allocations: 2.497 MB / 0.6552 GB, free: 118.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002629/1.645, allocations: 373 kB / 0.6556 GB, free: 118 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00811/1.653, allocations: 3.347 MB / 0.6588 GB, free: 114.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003458/1.656, allocations: 271.5 kB / 0.6591 GB, free: 114.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003229/1.657, allocations: 99.98 kB / 0.6592 GB, free: 114.3 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.001761/1.658, allocations: 0.7021 MB / 0.6599 GB, free: 113.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004965/1.659, allocations: 170 kB / 0.66 GB, free: 113.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01479/1.674, allocations: 6.842 MB / 0.6667 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.869e-05/1.674, allocations: 75.84 kB / 0.6668 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/1.674, allocations: 4 kB / 0.6668 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01117/1.685, allocations: 5.49 MB / 0.6722 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02014/1.705, allocations: 9.524 MB / 0.6815 GB, free: 91.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.1e-05/1.705, allocations: 448 / 0.6815 GB, free: 91.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003675/1.709, allocations: 451 kB / 0.6819 GB, free: 90.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002986/1.712, allocations: 473.4 kB / 0.6823 GB, free: 90.49 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004873/1.713, allocations: 75.91 kB / 0.6824 GB, free: 90.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002158/1.715, allocations: 3.211 MB / 0.6855 GB, free: 87.09 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.715, allocations: 4.312 kB / 0.6855 GB, free: 87.09 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01643/1.731, allocations: 7.104 MB / 0.6925 GB, free: 79.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002204/1.733, allocations: 0.7619 MB / 0.6932 GB, free: 79.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000752/1.734, allocations: 55.94 kB / 0.6933 GB, free: 79.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003203/1.738, allocations: 203.5 kB / 0.6935 GB, free: 78.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007009/1.738, allocations: 186.9 kB / 0.6937 GB, free: 78.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000231/1.739, allocations: 71.53 kB / 0.6937 GB, free: 78.61 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002483/1.741, allocations: 1.233 MB / 0.6949 GB, free: 77.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.741, allocations: 4 kB / 0.6949 GB, free: 77.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008291/1.749, allocations: 2.204 MB / 0.6971 GB, free: 75.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse34.phase,$cse34.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * 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 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02486/1.774, allocations: 9.439 MB / 0.7063 GB, free: 66.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0167/1.791, allocations: 5.52 MB / 0.7117 GB, free: 60.67 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/1.791, allocations: 0 / 0.7117 GB, free: 60.67 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00593/1.797, allocations: 2.36 MB / 0.714 GB, free: 58.35 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006809/1.804, allocations: 0.7842 MB / 0.7148 GB, free: 57.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02363/1.828, allocations: 21.84 MB / 0.7361 GB, free: 35.29 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001925/1.83, allocations: 2.058 MB / 0.7381 GB, free: 33.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005127/1.835, allocations: 1.457 MB / 0.7395 GB, free: 31.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00235/1.837, allocations: 1.148 MB / 0.7406 GB, free: 30.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.343e-06/1.837, allocations: 0 / 0.7406 GB, free: 30.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5615/2.399, allocations: 110.5 MB / 0.8485 GB, free: 102.1 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002544/2.399, allocations: 283.3 kB / 0.8488 GB, free: 101.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.886/11.28, allocations: 0 / 0.8488 GB, free: 101.8 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat