Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.183/2.183, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.0004197, allocations: 12 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3473, allocations: 54.86 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.0867/0.4341, allocations: 55.58 MB / 424.8 MB, free: 3 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05115/0.4853, allocations: 25.97 MB / 450.8 MB, free: 8.973 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002011/0.4873, allocations: 71.44 kB / 450.9 MB, free: 8.902 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003347/0.4907, allocations: 0.7778 MB / 451.7 MB, free: 8.121 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02058/0.5113, allocations: 5.107 MB / 456.8 MB, free: 3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02151/0.5329, allocations: 5.512 MB / 462.3 MB, free: 13.48 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.006781/0.5397, allocations: 3.023 MB / 465.3 MB, free: 10.45 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001938/0.5417, allocations: 0.8166 MB / 466.1 MB, free: 9.613 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004364/0.5461, allocations: 1.414 MB / 467.5 MB, free: 8.195 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.352/0.8981, allocations: 12.16 MB / 479.7 MB, free: 16.77 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005146/0.8986, allocations: 69.25 kB / 479.8 MB, free: 16.77 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02384/0.9225, allocations: 9.188 MB / 489 MB, free: 16.75 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001182/0.9237, allocations: 491.4 kB / 489.4 MB, free: 16.75 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007026/0.9245, allocations: 350.8 kB / 489.8 MB, free: 16.72 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01298/0.9374, allocations: 5.227 MB / 495 MB, free: 16.42 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.9375, allocations: 0 / 495 MB, free: 16.42 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.9375, allocations: 4 kB / 495 MB, free: 16.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.943e-05/0.9376, allocations: 0 / 495 MB, free: 16.41 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.009353/0.947, allocations: 2.656 MB / 497.7 MB, free: 15.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.947, allocations: 6.719 kB / 497.7 MB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005/0.9475, allocations: 196.1 kB / 497.9 MB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004892/0.9524, allocations: 0.538 MB / 498.4 MB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003146/0.9556, allocations: 1.095 MB / 499.5 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.9558, allocations: 112 kB / 499.6 MB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003155/0.9561, allocations: 124.1 kB / 499.7 MB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006825/0.963, allocations: 2.23 MB / 0.4902 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.437e-05/0.9631, allocations: 5.641 kB / 0.4902 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.9633, allocations: 54.64 kB / 0.4902 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002326/0.9635, allocations: 120.5 kB / 0.4904 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007305/0.9708, allocations: 2.041 MB / 0.4924 GB, free: 14.24 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.01653/0.9874, allocations: 9.585 MB / 0.5017 GB, free: 7.523 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004975/0.9924, allocations: 1.378 MB / 0.5031 GB, free: 7.227 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06066/1.053, allocations: 19.02 MB / 0.5216 GB, free: 3.633 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004158/1.057, allocations: 1.02 MB / 0.5226 GB, free: 2.824 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 4.618e-06/1.057, allocations: 0 / 0.5226 GB, free: 2.824 MB / 410.7 MB Notification: Performance of matching and sorting (n=104): time 0.02141/1.079, allocations: 5.137 MB / 0.5276 GB, free: 14.81 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/1.079, allocations: 218.6 kB / 0.5279 GB, free: 14.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/1.081, allocations: 1.08 MB / 0.5289 GB, free: 13.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003007/1.081, allocations: 42.64 kB / 0.5289 GB, free: 13.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006536/1.082, allocations: 0.66 MB / 0.5296 GB, free: 13.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00051/1.083, allocations: 358.3 kB / 0.5299 GB, free: 12.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/1.083, allocations: 29.12 kB / 0.53 GB, free: 12.92 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/1.083, allocations: 367.8 kB / 0.5303 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002237/1.085, allocations: 0.6745 MB / 0.531 GB, free: 12.12 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002548/1.088, allocations: 1.039 MB / 0.532 GB, free: 11.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/1.09, allocations: 0.8349 MB / 0.5328 GB, free: 10.63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.306e-05/1.09, allocations: 4 kB / 0.5328 GB, free: 10.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006139/1.097, allocations: 1.947 MB / 0.5347 GB, free: 9.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003361/1.097, allocations: 413.4 kB / 0.5351 GB, free: 8.762 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-05/1.097, allocations: 12 kB / 0.5351 GB, free: 8.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008386/1.098, allocations: 139.7 kB / 0.5352 GB, free: 8.637 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002582/1.101, allocations: 334.7 kB / 0.5356 GB, free: 8.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/1.102, allocations: 1.258 MB / 0.5368 GB, free: 7.121 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002224/1.104, allocations: 163.8 kB / 0.5369 GB, free: 6.988 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002092/1.104, allocations: 61.73 kB / 0.537 GB, free: 6.938 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/1.104, allocations: 4 kB / 0.537 GB, free: 6.934 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005826/1.11, allocations: 1.852 MB / 0.5388 GB, free: 5.676 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.982e-05/1.11, allocations: 8 kB / 0.5388 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007625/1.111, allocations: 153.1 kB / 0.539 GB, free: 5.547 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002479/1.113, allocations: 325.1 kB / 0.5393 GB, free: 5.262 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/1.115, allocations: 1.261 MB / 0.5405 GB, free: 4.039 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/1.116, allocations: 151 kB / 0.5407 GB, free: 3.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/1.117, allocations: 63.67 kB / 0.5407 GB, free: 3.859 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.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,valveOpening1.nextEventScaled,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 (158): * Single equations (assignments): 153 * 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.001321/1.118, allocations: 0.5441 MB / 0.5413 GB, free: 3.449 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004023/1.118, allocations: 130.4 kB / 0.5414 GB, free: 3.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01019/1.129, allocations: 4.729 MB / 0.546 GB, free: 108 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-05/1.129, allocations: 53.42 kB / 0.546 GB, free: 68 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/1.129, allocations: 2.734 kB / 0.546 GB, free: 68 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008337/1.137, allocations: 3.956 MB / 0.5499 GB, free: 13.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01414/1.151, allocations: 6.684 MB / 0.5564 GB, free: 8.957 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-05/1.151, allocations: 7.953 kB / 0.5564 GB, free: 8.949 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001949/1.153, allocations: 245.6 kB / 0.5567 GB, free: 8.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001248/1.154, allocations: 195.9 kB / 0.5569 GB, free: 8.57 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001986/1.155, allocations: 35.92 kB / 0.5569 GB, free: 8.551 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/1.156, allocations: 1.284 MB / 0.5582 GB, free: 7.324 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.156, allocations: 8.219 kB / 0.5582 GB, free: 7.316 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009928/1.166, allocations: 4.316 MB / 0.5624 GB, free: 4.395 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001417/1.167, allocations: 0.5153 MB / 0.5629 GB, free: 3.945 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004685/1.168, allocations: 33.75 kB / 0.5629 GB, free: 3.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001673/1.169, allocations: 120.4 kB / 0.563 GB, free: 3.828 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002861/1.17, allocations: 86.31 kB / 0.5631 GB, free: 3.754 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/1.17, allocations: 38.8 kB / 0.5631 GB, free: 3.723 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001847/1.172, allocations: 0.8462 MB / 0.564 GB, free: 3.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.172, allocations: 4 kB / 0.564 GB, free: 3.086 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008026/1.18, allocations: 2.05 MB / 0.566 GB, free: 1.16 MB / 442.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: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (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 (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.02107/1.201, allocations: 6.637 MB / 0.5725 GB, free: 12.13 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009146/1.21, allocations: 3.251 MB / 0.5756 GB, free: 9.852 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.21, allocations: 0 / 0.5756 GB, free: 9.852 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003358/1.214, allocations: 1.471 MB / 0.5771 GB, free: 8.953 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005163/1.219, allocations: 0.5796 MB / 0.5776 GB, free: 8.488 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01826/1.237, allocations: 7.682 MB / 0.5851 GB, free: 1.641 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001779/1.239, allocations: 1.707 MB / 0.5868 GB, free: 15.96 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00172/1.241, allocations: 0.8543 MB / 0.5876 GB, free: 15.77 MB / 474.7 MB Notification: Performance of SimCode: time 1.573e-06/1.241, allocations: 0 / 0.5876 GB, free: 15.77 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.817/6.058, allocations: 75.1 MB / 0.661 GB, free: 206.2 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat