Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.01569/0.0157, allocations: 106 kB / 15.06 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.001944/0.001944, allocations: 166.4 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.739/1.739, allocations: 170.9 MB / 187.5 MB, free: 0.8555 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.2586/0.2586, allocations: 38.09 MB / 265.1 MB, free: 3.953 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000622/0.0006224, allocations: 8 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08945/0.09012, allocations: 48.71 MB / 372.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3): time 0.4216/0.5118, allocations: 82.71 MB / 455 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05504/0.5669, allocations: 31.08 MB / 486.1 MB, free: 2.457 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003524/0.5704, allocations: 95.91 kB / 486.2 MB, free: 2.41 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004989/0.5755, allocations: 1.178 MB / 487.4 MB, free: 1.582 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02492/0.6004, allocations: 6.018 MB / 493.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02808/0.6286, allocations: 6.762 MB / 0.4884 GB, free: 7.91 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008541/0.6371, allocations: 3.471 MB / 0.4918 GB, free: 4.66 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003019/0.6402, allocations: 1.238 MB / 0.493 GB, free: 3.398 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006236/0.6465, allocations: 2.01 MB / 0.495 GB, free: 1.383 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05212/0.6987, allocations: 18.14 MB / 0.5127 GB, free: 15.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007583/0.6995, allocations: 104 kB / 0.5128 GB, free: 15.13 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02837/0.7279, allocations: 9.294 MB / 0.5219 GB, free: 5.828 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.7298, allocations: 0.6933 MB / 0.5225 GB, free: 5.133 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001458/0.7313, allocations: 496.5 kB / 0.523 GB, free: 4.641 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0166/0.7479, allocations: 6.03 MB / 0.5289 GB, free: 14.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.748, allocations: 0 / 0.5289 GB, free: 14.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.748, allocations: 0 / 0.5289 GB, free: 14.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001243/0.7481, allocations: 0 / 0.5289 GB, free: 14.59 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01326/0.7614, allocations: 3.351 MB / 0.5322 GB, free: 11.17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.7615, allocations: 12.03 kB / 0.5322 GB, free: 11.16 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00094/0.7624, allocations: 265.9 kB / 0.5324 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007437/0.7699, allocations: 0.7309 MB / 0.5332 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004613/0.7746, allocations: 1.477 MB / 0.5346 GB, free: 8.625 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002765/0.7749, allocations: 171.4 kB / 0.5348 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000608/0.7755, allocations: 180 kB / 0.5349 GB, free: 8.281 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01127/0.7868, allocations: 3.152 MB / 0.538 GB, free: 5.004 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-05/0.787, allocations: 11.84 kB / 0.538 GB, free: 4.992 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003603/0.7874, allocations: 87.89 kB / 0.5381 GB, free: 4.906 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003958/0.7878, allocations: 167.2 kB / 0.5383 GB, free: 4.742 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/0.7999, allocations: 2.921 MB / 0.5411 GB, free: 1.816 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.02818/0.8282, allocations: 13.8 MB / 0.5546 GB, free: 2.852 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008406/0.8366, allocations: 2.023 MB / 0.5566 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06489/0.9016, allocations: 19.02 MB / 0.5751 GB, free: 11.47 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006546/0.9082, allocations: 1.561 MB / 0.5767 GB, free: 9.887 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001657/0.9099, allocations: 158.5 kB / 0.5768 GB, free: 9.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=151): time 6.943e-06/0.9099, allocations: 0 / 0.5768 GB, free: 9.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.03959/0.9495, allocations: 8.221 MB / 0.5848 GB, free: 1.352 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.9497, allocations: 187.5 kB / 0.585 GB, free: 1.133 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2786/1.228, allocations: 1.395 MB / 0.5864 GB, free: 162.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004696/1.229, allocations: 54.2 kB / 0.5864 GB, free: 162.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/1.23, allocations: 0.9115 MB / 0.5873 GB, free: 162.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009702/1.231, allocations: 0.5507 MB / 0.5879 GB, free: 162.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002207/1.231, allocations: 41.78 kB / 0.5879 GB, free: 162.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/1.232, allocations: 382.6 kB / 0.5883 GB, free: 161.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003603/1.235, allocations: 0.9953 MB / 0.5892 GB, free: 161.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00416/1.239, allocations: 1.466 MB / 0.5907 GB, free: 161 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004158/1.244, allocations: 1.247 MB / 0.5919 GB, free: 160.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.348e-05/1.244, allocations: 3.531 kB / 0.5919 GB, free: 160.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01312/1.257, allocations: 3.208 MB / 0.595 GB, free: 159.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001211/1.258, allocations: 5.143 MB / 0.6 GB, free: 153.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.354e-05/1.258, allocations: 16.55 kB / 0.6001 GB, free: 153.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005039/1.263, allocations: 0.5352 MB / 0.6006 GB, free: 153.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003897/1.267, allocations: 470.4 kB / 0.601 GB, free: 153.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002761/1.27, allocations: 2.697 MB / 0.6037 GB, free: 151.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003979/1.274, allocations: 260 kB / 0.6039 GB, free: 151.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000571/1.275, allocations: 100.2 kB / 0.604 GB, free: 151.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/1.275, allocations: 3.812 kB / 0.604 GB, free: 151.2 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009603/1.284, allocations: 2.793 MB / 0.6067 GB, free: 150.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.736e-05/1.284, allocations: 11.78 kB / 0.6068 GB, free: 150.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/1.286, allocations: 212.8 kB / 0.607 GB, free: 150.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003836/1.289, allocations: 480.5 kB / 0.6074 GB, free: 150 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/1.291, allocations: 1.885 MB / 0.6093 GB, free: 148.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003715/1.295, allocations: 256.9 kB / 0.6095 GB, free: 148.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004809/1.295, allocations: 94.25 kB / 0.6096 GB, free: 148.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.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 (224): * Single equations (assignments): 218 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001888/1.297, allocations: 0.72 MB / 0.6103 GB, free: 147.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005453/1.298, allocations: 190.5 kB / 0.6105 GB, free: 147.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01527/1.313, allocations: 7.418 MB / 0.6177 GB, free: 144.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.989e-05/1.313, allocations: 78.34 kB / 0.6178 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/1.313, allocations: 3.953 kB / 0.6178 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01238/1.326, allocations: 6.495 MB / 0.6241 GB, free: 140.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02244/1.348, allocations: 11.07 MB / 0.635 GB, free: 129.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-05/1.348, allocations: 4 kB / 0.635 GB, free: 129.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002666/1.351, allocations: 351.4 kB / 0.6353 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004225/1.355, allocations: 1.201 MB / 0.6365 GB, free: 127.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004062/1.356, allocations: 63.91 kB / 0.6365 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002797/1.358, allocations: 3.197 MB / 0.6396 GB, free: 124.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.358, allocations: 4 kB / 0.6397 GB, free: 124.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01408/1.372, allocations: 7.356 MB / 0.6468 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001755/1.374, allocations: 0.6797 MB / 0.6475 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005519/1.375, allocations: 51.98 kB / 0.6475 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002632/1.377, allocations: 183.6 kB / 0.6477 GB, free: 115.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005105/1.378, allocations: 149.7 kB / 0.6479 GB, free: 115.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002168/1.378, allocations: 73.16 kB / 0.6479 GB, free: 115.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001972/1.38, allocations: 1.047 MB / 0.649 GB, free: 114.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.32e-07/1.38, allocations: 0 / 0.649 GB, free: 114.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008535/1.389, allocations: 2.406 MB / 0.6513 GB, free: 112.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.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) * 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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02362/1.413, allocations: 10.72 MB / 0.6618 GB, free: 101.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01236/1.425, allocations: 4.781 MB / 0.6664 GB, free: 96.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.425, allocations: 1.688 kB / 0.6664 GB, free: 96.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005547/1.431, allocations: 2.441 MB / 0.6688 GB, free: 94.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007956/1.439, allocations: 0.9087 MB / 0.6697 GB, free: 93.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0359/1.475, allocations: 19 MB / 0.6883 GB, free: 74.06 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003683/1.478, allocations: 2.181 MB / 0.6904 GB, free: 71.84 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0104/1.489, allocations: 2.277 MB / 0.6926 GB, free: 69.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003756/1.493, allocations: 1.202 MB / 0.6938 GB, free: 68.36 MB / 442.7 MB Notification: Performance of SimCode: time 1.573e-06/1.493, allocations: 0 / 0.6938 GB, free: 68.36 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5093/2.002, allocations: 105.4 MB / 0.7967 GB, free: 136.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00023/2.002, allocations: 262.5 kB / 0.797 GB, free: 136.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.563/11.57, allocations: 0.5625 kB / 0.797 GB, free: 136.5 MB / 442.7 MB