Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.999/1.999, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007164/0.0007167, allocations: 8 kB / 282.6 MB, free: 9.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.3534, allocations: 48.72 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.145/0.4985, allocations: 93.51 MB / 424.8 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06971/0.5683, allocations: 33.9 MB / 458.7 MB, free: 14.83 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00362/0.5719, allocations: 107.1 kB / 458.8 MB, free: 14.73 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005827/0.5778, allocations: 1.326 MB / 460.1 MB, free: 13.39 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02755/0.6054, allocations: 6.509 MB / 466.6 MB, free: 6.867 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.3551/0.9605, allocations: 7.521 MB / 474.1 MB, free: 12.73 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01262/0.9732, allocations: 5.145 MB / 479.3 MB, free: 12.73 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003778/0.977, allocations: 1.391 MB / 480.7 MB, free: 12.63 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008501/0.9856, allocations: 2.353 MB / 483 MB, free: 12.63 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05337/1.039, allocations: 18.29 MB / 0.4896 GB, free: 12.33 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001079/1.04, allocations: 125.4 kB / 0.4897 GB, free: 12.33 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03624/1.076, allocations: 9.597 MB / 0.4991 GB, free: 9.023 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002441/1.079, allocations: 0.8019 MB / 0.4998 GB, free: 8.73 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001936/1.081, allocations: 0.5693 MB / 0.5004 GB, free: 8.398 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01713/1.098, allocations: 6.636 MB / 0.5069 GB, free: 4.609 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/1.098, allocations: 0 / 0.5069 GB, free: 4.609 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.637e-06/1.098, allocations: 0 / 0.5069 GB, free: 4.609 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.926e-05/1.098, allocations: 1.641 kB / 0.5069 GB, free: 4.609 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: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01403/1.112, allocations: 3.83 MB / 0.5106 GB, free: 1.016 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/1.112, allocations: 12.03 kB / 0.5106 GB, free: 1.004 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008755/1.113, allocations: 322 kB / 0.5109 GB, free: 0.8164 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007744/1.121, allocations: 0.8569 MB / 0.5118 GB, free: 24 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00525/1.126, allocations: 1.671 MB / 0.5134 GB, free: 14.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002798/1.127, allocations: 199.8 kB / 0.5136 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005761/1.127, allocations: 219.7 kB / 0.5138 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01346/1.141, allocations: 3.795 MB / 0.5175 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-05/1.141, allocations: 14.39 kB / 0.5175 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003844/1.141, allocations: 89.83 kB / 0.5176 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004525/1.142, allocations: 207.9 kB / 0.5178 GB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01526/1.157, allocations: 3.582 MB / 0.5213 GB, free: 8.727 MB / 410.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.03471/1.192, allocations: 16.61 MB / 0.5375 GB, free: 9.398 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01169/1.203, allocations: 3.15 MB / 0.5406 GB, free: 6.867 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06347/1.267, allocations: 18.76 MB / 0.5589 GB, free: 2.273 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007727/1.275, allocations: 1.841 MB / 0.5607 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of pre-optimization done (n=188): time 6.472e-06/1.275, allocations: 0.8438 kB / 0.5607 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of matching and sorting (n=208): time 0.04894/1.324, allocations: 10.17 MB / 0.5707 GB, free: 8.992 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/1.324, allocations: 187.1 kB / 0.5708 GB, free: 8.777 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003387/1.327, allocations: 1.604 MB / 0.5724 GB, free: 7.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005996/1.328, allocations: 64.95 kB / 0.5725 GB, free: 7.531 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001155/1.329, allocations: 1.008 MB / 0.5735 GB, free: 6.859 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/1.33, allocations: 0.702 MB / 0.5741 GB, free: 6.262 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002513/1.331, allocations: 48.06 kB / 0.5742 GB, free: 6.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002547/1.331, allocations: 413 kB / 0.5746 GB, free: 5.879 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004631/1.335, allocations: 1.243 MB / 0.5758 GB, free: 5.039 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005405/1.341, allocations: 1.849 MB / 0.5776 GB, free: 3.418 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005467/1.346, allocations: 1.521 MB / 0.5791 GB, free: 2.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.622e-05/1.347, allocations: 4 kB / 0.5791 GB, free: 2.426 MB / 458.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.0133/1.36, allocations: 3.648 MB / 0.5826 GB, free: 15.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005942/1.361, allocations: 0.6233 MB / 0.5833 GB, free: 15.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.425e-05/1.361, allocations: 20 kB / 0.5833 GB, free: 15.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002066/1.363, allocations: 348.1 kB / 0.5836 GB, free: 14.78 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005217/1.368, allocations: 0.618 MB / 0.5842 GB, free: 14.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003355/1.371, allocations: 3.106 MB / 0.5872 GB, free: 11.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005073/1.376, allocations: 328.3 kB / 0.5876 GB, free: 10.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005111/1.377, allocations: 124.5 kB / 0.5877 GB, free: 10.83 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/1.377, allocations: 4 kB / 0.5877 GB, free: 10.83 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01213/1.389, allocations: 3.489 MB / 0.5911 GB, free: 8.453 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.714e-05/1.389, allocations: 16 kB / 0.5911 GB, free: 8.438 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001947/1.391, allocations: 360.3 kB / 0.5914 GB, free: 8.145 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005023/1.396, allocations: 0.6083 MB / 0.592 GB, free: 7.594 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/1.4, allocations: 3.107 MB / 0.5951 GB, free: 4.586 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00421/1.404, allocations: 324.6 kB / 0.5954 GB, free: 4.305 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005129/1.404, allocations: 117.2 kB / 0.5955 GB, free: 4.215 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (296): * Single equations (assignments): 289 * 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.002516/1.407, allocations: 0.7973 MB / 0.5963 GB, free: 3.652 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007459/1.408, allocations: 221.3 kB / 0.5965 GB, free: 3.434 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0202/1.428, allocations: 8.168 MB / 0.6045 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001422/1.428, allocations: 98.78 kB / 0.6046 GB, free: 13.79 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/1.428, allocations: 4 kB / 0.6046 GB, free: 13.78 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01743/1.446, allocations: 7.09 MB / 0.6115 GB, free: 8.859 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03243/1.478, allocations: 12.99 MB / 0.6242 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.812e-05/1.478, allocations: 8 kB / 0.6242 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003879/1.482, allocations: 482.3 kB / 0.6246 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002992/1.485, allocations: 483.6 kB / 0.6251 GB, free: 14.99 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005454/1.486, allocations: 81.89 kB / 0.6252 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003295/1.489, allocations: 3.228 MB / 0.6283 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/1.489, allocations: 6.625 kB / 0.6283 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0197/1.509, allocations: 7.988 MB / 0.6361 GB, free: 6.336 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002437/1.511, allocations: 0.7761 MB / 0.6369 GB, free: 5.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007888/1.512, allocations: 60.72 kB / 0.6369 GB, free: 5.656 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003226/1.515, allocations: 228.4 kB / 0.6372 GB, free: 5.461 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000556/1.516, allocations: 191.6 kB / 0.6373 GB, free: 5.301 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/1.516, allocations: 92.69 kB / 0.6374 GB, free: 5.23 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002864/1.519, allocations: 1.167 MB / 0.6386 GB, free: 4.344 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.42e-07/1.519, allocations: 0 / 0.6386 GB, free: 4.344 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01141/1.531, allocations: 2.713 MB / 0.6412 GB, free: 1.73 MB / 0.4948 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,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse44.phase,$cse44.region,$cse49.phase,$cse49.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.3419/1.872, allocations: 10.56 MB / 0.6515 GB, free: 214.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01722/1.89, allocations: 5.843 MB / 0.6572 GB, free: 212 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/1.89, allocations: 0.875 kB / 0.6572 GB, free: 212 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006956/1.897, allocations: 2.975 MB / 0.6601 GB, free: 210.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009313/1.906, allocations: 1.13 MB / 0.6613 GB, free: 210.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02642/1.933, allocations: 12.46 MB / 0.6734 GB, free: 203.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002252/1.935, allocations: 2.333 MB / 0.6757 GB, free: 202.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003106/1.938, allocations: 1.441 MB / 0.6771 GB, free: 201.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.673e-06/1.938, allocations: 0 / 0.6771 GB, free: 201.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.304/7.243, allocations: 145.8 MB / 0.8195 GB, free: 59.23 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat