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.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.292/2.292, allocations: 234.9 MB / 250.5 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004213/0.0004215, allocations: 15.98 kB / 314.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3369, allocations: 54.87 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.1446/0.4816, allocations: 94.31 MB / 463.6 MB, free: 12.19 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.4056/0.8872, allocations: 34.14 MB / 497.7 MB, free: 6.824 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003963/0.8912, allocations: 109.3 kB / 497.8 MB, free: 6.824 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005636/0.8969, allocations: 1.325 MB / 499.2 MB, free: 6.82 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02701/0.9239, allocations: 6.6 MB / 0.4939 GB, free: 6.742 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03029/0.9543, allocations: 7.575 MB / 0.5013 GB, free: 6.613 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01071/0.965, allocations: 5.201 MB / 0.5064 GB, free: 5.723 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003132/0.9682, allocations: 1.411 MB / 0.5078 GB, free: 5.148 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007475/0.9757, allocations: 2.382 MB / 0.5101 GB, free: 4.785 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04579/1.022, allocations: 18.49 MB / 0.5281 GB, free: 9.93 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001184/1.023, allocations: 124 kB / 0.5283 GB, free: 9.809 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03128/1.054, allocations: 9.761 MB / 0.5378 GB, free: 2.168 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002201/1.056, allocations: 0.813 MB / 0.5386 GB, free: 1.652 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001833/1.058, allocations: 0.5728 MB / 0.5391 GB, free: 1.316 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01924/1.077, allocations: 6.715 MB / 0.5457 GB, free: 11.62 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/1.078, allocations: 0 / 0.5457 GB, free: 11.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.527e-06/1.078, allocations: 0 / 0.5457 GB, free: 11.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001524/1.078, allocations: 0 / 0.5457 GB, free: 11.62 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01553/1.093, allocations: 3.916 MB / 0.5495 GB, free: 7.941 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/1.093, allocations: 8.031 kB / 0.5495 GB, free: 7.934 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001083/1.094, allocations: 331 kB / 0.5498 GB, free: 7.734 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008646/1.103, allocations: 0.8815 MB / 0.5507 GB, free: 6.914 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00528/1.108, allocations: 1.687 MB / 0.5524 GB, free: 5.637 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003057/1.109, allocations: 197.5 kB / 0.5525 GB, free: 5.523 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007147/1.109, allocations: 224 kB / 0.5528 GB, free: 5.375 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01344/1.123, allocations: 3.808 MB / 0.5565 GB, free: 2.391 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-05/1.123, allocations: 10.38 kB / 0.5565 GB, free: 2.387 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003939/1.123, allocations: 95.02 kB / 0.5566 GB, free: 2.363 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004406/1.124, allocations: 207.8 kB / 0.5568 GB, free: 2.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0144/1.138, allocations: 3.583 MB / 0.5603 GB, free: 15.59 MB / 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.03353/1.172, allocations: 16.64 MB / 0.5765 GB, free: 244 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/1.184, allocations: 3.145 MB / 0.5796 GB, free: 13.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06577/1.25, allocations: 18.79 MB / 0.5979 GB, free: 8.691 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007896/1.257, allocations: 1.849 MB / 0.5997 GB, free: 6.836 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 5.731e-06/1.258, allocations: 0 / 0.5997 GB, free: 6.836 MB / 474.7 MB Notification: Performance of matching and sorting (n=212): time 0.04848/1.306, allocations: 10.17 MB / 0.6097 GB, free: 12.63 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/1.306, allocations: 184.2 kB / 0.6099 GB, free: 12.42 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003183/1.309, allocations: 1.605 MB / 0.6114 GB, free: 10.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004708/1.31, allocations: 68.55 kB / 0.6115 GB, free: 10.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/1.311, allocations: 1.005 MB / 0.6125 GB, free: 9.742 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001021/1.312, allocations: 0.7082 MB / 0.6132 GB, free: 9.043 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/1.312, allocations: 52 kB / 0.6132 GB, free: 8.992 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002332/1.313, allocations: 411.8 kB / 0.6136 GB, free: 8.582 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004259/1.317, allocations: 1.254 MB / 0.6148 GB, free: 7.324 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004874/1.322, allocations: 1.858 MB / 0.6166 GB, free: 5.234 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004822/1.327, allocations: 1.528 MB / 0.6181 GB, free: 3.711 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.394e-05/1.327, allocations: 4 kB / 0.6181 GB, free: 3.707 MB / 490.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.01189/1.338, allocations: 3.623 MB / 0.6217 GB, free: 152 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005601/1.339, allocations: 0.6371 MB / 0.6223 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.122e-05/1.339, allocations: 16 kB / 0.6223 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002014/1.341, allocations: 351.5 kB / 0.6227 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004912/1.346, allocations: 0.6126 MB / 0.6233 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002966/1.349, allocations: 3.118 MB / 0.6263 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004721/1.354, allocations: 331.4 kB / 0.6266 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004126/1.354, allocations: 132 kB / 0.6267 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/1.354, allocations: 4 kB / 0.6267 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01144/1.366, allocations: 3.472 MB / 0.6301 GB, free: 7.211 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.72e-05/1.366, allocations: 20.06 kB / 0.6302 GB, free: 7.191 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001942/1.368, allocations: 353.6 kB / 0.6305 GB, free: 6.832 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004717/1.372, allocations: 0.6125 MB / 0.6311 GB, free: 6.219 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003255/1.376, allocations: 3.105 MB / 0.6341 GB, free: 2.988 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004022/1.38, allocations: 327.5 kB / 0.6344 GB, free: 2.668 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003648/1.38, allocations: 120 kB / 0.6345 GB, free: 2.551 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 31 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.00222/1.382, allocations: 0.8143 MB / 0.6353 GB, free: 1.715 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006575/1.383, allocations: 225.3 kB / 0.6356 GB, free: 1.492 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02109/1.404, allocations: 8.173 MB / 0.6435 GB, free: 9.199 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001238/1.404, allocations: 91.86 kB / 0.6436 GB, free: 9.109 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/1.404, allocations: 3.938 kB / 0.6436 GB, free: 9.105 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01694/1.421, allocations: 7.097 MB / 0.6506 GB, free: 1.832 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03283/1.454, allocations: 13.01 MB / 0.6633 GB, free: 4.531 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.829e-05/1.454, allocations: 8 kB / 0.6633 GB, free: 4.523 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003882/1.458, allocations: 484.1 kB / 0.6637 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003005/1.461, allocations: 483.6 kB / 0.6642 GB, free: 3.562 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005023/1.462, allocations: 71.97 kB / 0.6643 GB, free: 3.492 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003163/1.465, allocations: 3.237 MB / 0.6674 GB, free: 132 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.234e-05/1.465, allocations: 7.938 kB / 0.6674 GB, free: 124 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3284/1.793, allocations: 8.003 MB / 0.6753 GB, free: 220.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002259/1.796, allocations: 0.7773 MB / 0.676 GB, free: 220.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008318/1.797, allocations: 64.27 kB / 0.6761 GB, free: 220.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003645/1.8, allocations: 228.4 kB / 0.6763 GB, free: 220.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007138/1.801, allocations: 194.7 kB / 0.6765 GB, free: 220.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000279/1.801, allocations: 83.8 kB / 0.6766 GB, free: 220.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002329/1.804, allocations: 1.175 MB / 0.6777 GB, free: 220.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.41e-07/1.804, allocations: 0 / 0.6777 GB, free: 220.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01001/1.814, allocations: 2.734 MB / 0.6804 GB, free: 219.9 MB / 0.5261 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: 59 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,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 (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.02855/1.842, allocations: 10.61 MB / 0.6907 GB, free: 215.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01597/1.858, allocations: 5.982 MB / 0.6966 GB, free: 210.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/1.858, allocations: 4 kB / 0.6966 GB, free: 210.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006907/1.865, allocations: 3.018 MB / 0.6995 GB, free: 208.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00964/1.875, allocations: 1.143 MB / 0.7006 GB, free: 207.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02579/1.901, allocations: 12.52 MB / 0.7129 GB, free: 194.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002115/1.903, allocations: 2.337 MB / 0.7152 GB, free: 192.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002906/1.906, allocations: 1.452 MB / 0.7166 GB, free: 191.1 MB / 0.5261 GB Notification: Performance of SimCode: time 2.655e-06/1.906, allocations: 3.938 kB / 0.7166 GB, free: 191.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.902/6.808, allocations: 146.5 MB / 0.8596 GB, free: 44.33 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat