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.DynamicPipeClosingValve.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.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.887/1.887, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004541/0.0004543, allocations: 8 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3334, allocations: 48.7 MB / 331.3 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.06318/0.3966, allocations: 39.75 MB / 371 MB, free: 6.559 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04379/0.4405, allocations: 22.37 MB / 393.4 MB, free: 152 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001531/0.4421, allocations: 35.75 kB / 393.4 MB, free: 116 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002367/0.4444, allocations: 0.5017 MB / 393.9 MB, free: 15.61 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02013/0.4646, allocations: 4.683 MB / 398.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01635/0.481, allocations: 4.052 MB / 402.7 MB, free: 6.855 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004206/0.4852, allocations: 1.812 MB / 404.5 MB, free: 5.043 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001189/0.4865, allocations: 0.4978 MB / 405 MB, free: 4.531 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02512/0.5116, allocations: 9.009 MB / 414 MB, free: 11.52 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03698/0.5487, allocations: 14.16 MB / 428.1 MB, free: 13.35 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002978/0.549, allocations: 40 kB / 428.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0234/0.5724, allocations: 8.155 MB / 436.3 MB, free: 5.148 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006529/0.5731, allocations: 275.1 kB / 436.6 MB, free: 4.879 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004656/0.5736, allocations: 225.2 kB / 436.8 MB, free: 4.652 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.5852, allocations: 4.07 MB / 440.9 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5853, allocations: 0 / 440.9 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.5853, allocations: 0 / 440.9 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.5853, allocations: 0 / 440.9 MB, free: 0.5742 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.007548/0.5929, allocations: 1.906 MB / 442.8 MB, free: 14.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/0.593, allocations: 8.031 kB / 442.8 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003226/0.5933, allocations: 130.8 kB / 442.9 MB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003453/0.5968, allocations: 366.4 kB / 443.3 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001997/0.5988, allocations: 0.6953 MB / 444 MB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.5989, allocations: 69.97 kB / 444.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/0.5992, allocations: 83.97 kB / 444.1 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005221/0.6044, allocations: 1.451 MB / 445.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.913e-05/0.6045, allocations: 7.891 kB / 445.6 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001448/0.6047, allocations: 43.92 kB / 445.6 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001443/0.6048, allocations: 61.95 kB / 445.7 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005548/0.6104, allocations: 1.342 MB / 447 MB, free: 10.24 MB / 378.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.01349/0.6239, allocations: 6.53 MB / 453.6 MB, free: 3.164 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004586/0.6285, allocations: 1.029 MB / 454.6 MB, free: 2.105 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4023/1.031, allocations: 32.38 MB / 487 MB, free: 136.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.03e-05/1.031, allocations: 42.19 kB / 487 MB, free: 136.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 3.837e-06/1.031, allocations: 0 / 487 MB, free: 136.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.0139/1.045, allocations: 3.321 MB / 490.3 MB, free: 135.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/1.045, allocations: 161.9 kB / 490.5 MB, free: 135.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/1.046, allocations: 0.708 MB / 491.2 MB, free: 135.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001575/1.047, allocations: 40.48 kB / 491.2 MB, free: 135 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003093/1.047, allocations: 449.1 kB / 491.7 MB, free: 134.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002423/1.047, allocations: 211.2 kB / 491.9 MB, free: 134.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.068e-05/1.047, allocations: 14.97 kB / 491.9 MB, free: 134.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.181e-05/1.047, allocations: 344.9 kB / 492.2 MB, free: 134.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/1.049, allocations: 417.5 kB / 492.6 MB, free: 134 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/1.05, allocations: 0.6219 MB / 493.3 MB, free: 133.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001593/1.052, allocations: 480.8 kB / 493.7 MB, free: 133.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/1.052, allocations: 1.375 kB / 493.7 MB, free: 133.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.004291/1.056, allocations: 1.311 MB / 495 MB, free: 133 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000158/1.057, allocations: 267.1 kB / 495.3 MB, free: 132.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/1.057, allocations: 6.812 kB / 495.3 MB, free: 132.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005364/1.062, allocations: 0.677 MB / 496 MB, free: 132.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/1.063, allocations: 165.2 kB / 496.2 MB, free: 132.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002545/1.066, allocations: 1.3 MB / 497.5 MB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/1.067, allocations: 101.4 kB / 497.6 MB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/1.068, allocations: 43.42 kB / 497.6 MB, free: 131.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/1.068, allocations: 6.25 kB / 497.6 MB, free: 131.8 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004538/1.072, allocations: 1.23 MB / 498.8 MB, free: 131.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/1.072, allocations: 6.219 kB / 498.8 MB, free: 131.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002959/1.075, allocations: 426.7 kB / 499.3 MB, free: 131.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/1.076, allocations: 171.7 kB / 499.4 MB, free: 131.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001974/1.078, allocations: 1.102 MB / 0.4888 GB, free: 130.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/1.08, allocations: 98.83 kB / 0.4889 GB, free: 130.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/1.08, allocations: 41.52 kB / 0.4889 GB, free: 130.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.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 (69): * Single equations (assignments): 68 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0007399/1.081, allocations: 378 kB / 0.4893 GB, free: 130 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003059/1.081, allocations: 83.56 kB / 0.4894 GB, free: 130 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006733/1.088, allocations: 3.326 MB / 0.4926 GB, free: 128.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.437e-05/1.088, allocations: 39.59 kB / 0.4927 GB, free: 128.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/1.088, allocations: 2.625 kB / 0.4927 GB, free: 128.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00477/1.092, allocations: 2.785 MB / 0.4954 GB, free: 126.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008636/1.101, allocations: 4.573 MB / 0.4998 GB, free: 123.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/1.101, allocations: 0 / 0.4998 GB, free: 123.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/1.102, allocations: 167.2 kB / 0.5 GB, free: 123.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005989/1.103, allocations: 102.2 kB / 0.5001 GB, free: 123.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.102e-05/1.103, allocations: 24.23 kB / 0.5001 GB, free: 123.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004469/1.104, allocations: 0.6464 MB / 0.5008 GB, free: 123.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.104, allocations: 0 / 0.5008 GB, free: 123.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005581/1.109, allocations: 2.902 MB / 0.5036 GB, free: 120.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007935/1.11, allocations: 458.1 kB / 0.504 GB, free: 119.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002782/1.11, allocations: 15.72 kB / 0.504 GB, free: 119.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/1.112, allocations: 91.58 kB / 0.5041 GB, free: 119.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/1.112, allocations: 56.56 kB / 0.5042 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.501e-05/1.112, allocations: 27.98 kB / 0.5042 GB, free: 119.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00135/1.113, allocations: 0.7863 MB / 0.505 GB, free: 118.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.113, allocations: 0 / 0.505 GB, free: 118.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005267/1.119, allocations: 1.624 MB / 0.5066 GB, free: 117.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01338/1.132, allocations: 4.936 MB / 0.5114 GB, free: 112.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005254/1.137, allocations: 1.849 MB / 0.5132 GB, free: 110.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/1.137, allocations: 0 / 0.5132 GB, free: 110.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00188/1.139, allocations: 0.9001 MB / 0.5141 GB, free: 109.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003798/1.143, allocations: 461.5 kB / 0.5145 GB, free: 109.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009507/1.152, allocations: 5.092 MB / 0.5195 GB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007968/1.153, allocations: 1.337 MB / 0.5208 GB, free: 102.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009383/1.154, allocations: 0.5618 MB / 0.5213 GB, free: 102.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/1.154, allocations: 0 / 0.5213 GB, free: 102.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.025/5.179, allocations: 50.26 MB / 0.5704 GB, free: 52.02 MB / 410.7 MB