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.DynamicPipeClosingValve.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.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.616/2.616, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006289/0.0006291, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.379, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.07/8.449, allocations: 2.655 GB / 3.016 GB, free: 34.04 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/8.45, allocations: 84.34 kB / 3.016 GB, free: 33.99 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.654/11.1, allocations: 464.9 MB / 3.47 GB, free: 51.68 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.504e-06/11.1, allocations: 3.156 kB / 3.47 GB, free: 51.68 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001036/11.1, allocations: 21.94 kB / 3.47 GB, free: 51.68 MB / 490.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.0107/11.11, allocations: 2.267 MB / 3.472 GB, free: 50.77 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/11.11, allocations: 7.469 kB / 3.472 GB, free: 50.77 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005219/11.12, allocations: 127.9 kB / 3.472 GB, free: 50.73 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003998/11.12, allocations: 375.3 kB / 3.473 GB, free: 50.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/11.12, allocations: 0.9008 MB / 3.474 GB, free: 50.42 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/11.12, allocations: 64.66 kB / 3.474 GB, free: 50.42 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002559/11.12, allocations: 81.09 kB / 3.474 GB, free: 50.42 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005162/11.13, allocations: 1.478 MB / 3.475 GB, free: 50.14 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.59e-05/11.13, allocations: 1.5 kB / 3.475 GB, free: 50.14 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001739/11.13, allocations: 37.28 kB / 3.475 GB, free: 50.14 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/11.13, allocations: 57.7 kB / 3.475 GB, free: 50.14 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005532/11.13, allocations: 1.345 MB / 3.477 GB, free: 50.13 MB / 490.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.01257/11.15, allocations: 6.546 MB / 3.483 GB, free: 45.98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004406/11.15, allocations: 1.025 MB / 3.484 GB, free: 45.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1035/11.26, allocations: 32.01 MB / 3.515 GB, free: 26.28 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/11.26, allocations: 44.84 kB / 3.515 GB, free: 26.24 MB / 490.7 MB Notification: Performance of pre-optimization done (n=57): time 3.687e-06/11.26, allocations: 0 / 3.515 GB, free: 26.24 MB / 490.7 MB Notification: Performance of matching and sorting (n=61): time 0.01344/11.27, allocations: 3.356 MB / 3.519 GB, free: 25.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.527e-05/11.27, allocations: 188.2 kB / 3.519 GB, free: 25.36 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/11.27, allocations: 0.6466 MB / 3.519 GB, free: 25.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001989/11.27, allocations: 36.2 kB / 3.519 GB, free: 25.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002887/11.27, allocations: 427.7 kB / 3.52 GB, free: 24.95 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/11.27, allocations: 215 kB / 3.52 GB, free: 24.81 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.492e-05/11.27, allocations: 15.59 kB / 3.52 GB, free: 24.81 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.01e-05/11.27, allocations: 341.2 kB / 3.52 GB, free: 24.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001499/11.27, allocations: 426.4 kB / 3.521 GB, free: 24.49 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/11.27, allocations: 0.6251 MB / 3.521 GB, free: 24.24 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001581/11.28, allocations: 489.1 kB / 3.522 GB, free: 24.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/11.28, allocations: 5.375 kB / 3.522 GB, free: 24.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004314/11.28, allocations: 1.313 MB / 3.523 GB, free: 24.14 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007067/11.28, allocations: 2.266 MB / 3.525 GB, free: 21.76 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.4e-05/11.28, allocations: 11.64 kB / 3.525 GB, free: 21.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005819/11.29, allocations: 0.6811 MB / 3.526 GB, free: 21.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/11.29, allocations: 162.9 kB / 3.526 GB, free: 21.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002546/11.29, allocations: 1.298 MB / 3.527 GB, free: 21.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/11.29, allocations: 107.1 kB / 3.528 GB, free: 21.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/11.29, allocations: 40 kB / 3.528 GB, free: 21.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/11.29, allocations: 3.75 kB / 3.528 GB, free: 21.18 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004836/11.3, allocations: 1.231 MB / 3.529 GB, free: 21.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.43e-05/11.3, allocations: 7.344 kB / 3.529 GB, free: 21.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002964/11.3, allocations: 418.6 kB / 3.529 GB, free: 21.13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/11.3, allocations: 173.4 kB / 3.529 GB, free: 21.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003028/11.31, allocations: 1.105 MB / 3.53 GB, free: 36.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/11.31, allocations: 106.5 kB / 3.531 GB, free: 36.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/11.31, allocations: 38.45 kB / 3.531 GB, free: 36.59 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.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 (68): * Single equations (assignments): 67 * 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.0009924/11.31, allocations: 364.7 kB / 3.531 GB, free: 36.39 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003397/11.31, allocations: 84.67 kB / 3.531 GB, free: 36.35 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006821/11.31, allocations: 3.353 MB / 3.534 GB, free: 35.96 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.781e-05/11.31, allocations: 40.17 kB / 3.534 GB, free: 35.96 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/11.31, allocations: 0 / 3.534 GB, free: 35.96 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005201/11.32, allocations: 2.797 MB / 3.537 GB, free: 35.44 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009146/11.33, allocations: 4.601 MB / 3.542 GB, free: 34.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/11.33, allocations: 6.094 kB / 3.542 GB, free: 34.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/11.33, allocations: 173.9 kB / 3.542 GB, free: 34.97 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006281/11.33, allocations: 97.33 kB / 3.542 GB, free: 34.95 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/11.33, allocations: 24.86 kB / 3.542 GB, free: 34.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006282/11.33, allocations: 0.6454 MB / 3.542 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/11.33, allocations: 0 / 3.542 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00635/11.34, allocations: 2.961 MB / 3.545 GB, free: 33.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/11.34, allocations: 459.6 kB / 3.546 GB, free: 33.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/11.34, allocations: 17.95 kB / 3.546 GB, free: 33.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/11.34, allocations: 90.8 kB / 3.546 GB, free: 33.72 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/11.34, allocations: 61.33 kB / 3.546 GB, free: 33.72 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-05/11.34, allocations: 28.47 kB / 3.546 GB, free: 33.72 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001646/11.34, allocations: 0.7963 MB / 3.547 GB, free: 33.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.22e-07/11.34, allocations: 1.219 kB / 3.547 GB, free: 33.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008601/11.35, allocations: 1.736 MB / 3.548 GB, free: 33.36 MB / 0.4948 GB 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,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.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 (76): * Single equations (assignments): 65 * 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.01926/11.37, allocations: 5.507 MB / 3.554 GB, free: 30.99 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005779/11.38, allocations: 1.87 MB / 3.556 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/11.38, allocations: 0.75 kB / 3.556 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002086/11.38, allocations: 0.9048 MB / 3.557 GB, free: 30.06 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004294/11.38, allocations: 472.1 kB / 3.557 GB, free: 29.95 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01472/11.4, allocations: 8.938 MB / 3.566 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001113/11.4, allocations: 1.332 MB / 3.567 GB, free: 22.35 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001084/11.4, allocations: 0.5691 MB / 3.568 GB, free: 21.89 MB / 0.4948 GB Notification: Performance of SimCode: time 1.012e-06/11.4, allocations: 0 / 3.568 GB, free: 21.89 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.167/15.57, allocations: 50.85 MB / 3.617 GB, free: 12.88 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat