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.653/2.653, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.986e-05/4.995e-05, allocations: 8 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.4283, allocations: 54.85 MB / 364.6 MB, free: 5.422 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.233/8.661, allocations: 2.655 GB / 3.011 GB, free: 103.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/8.661, allocations: 79.27 kB / 3.011 GB, free: 103.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.317/10.98, allocations: 463.8 MB / 3.464 GB, free: 23.67 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.246e-06/10.98, allocations: 0 / 3.464 GB, free: 23.67 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001028/10.98, allocations: 23.94 kB / 3.464 GB, free: 23.65 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.01036/10.99, allocations: 2.145 MB / 3.466 GB, free: 21.67 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/10.99, allocations: 12.03 kB / 3.466 GB, free: 21.66 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000392/10.99, allocations: 130.9 kB / 3.466 GB, free: 21.53 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003822/10.99, allocations: 370.7 kB / 3.467 GB, free: 21.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003293/11, allocations: 0.8773 MB / 3.468 GB, free: 20.26 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/11, allocations: 72.8 kB / 3.468 GB, free: 20.19 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002429/11, allocations: 82.27 kB / 3.468 GB, free: 20.11 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004393/11, allocations: 1.453 MB / 3.469 GB, free: 18.57 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.458e-05/11, allocations: 11.88 kB / 3.469 GB, free: 18.56 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/11, allocations: 37.61 kB / 3.469 GB, free: 18.53 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/11, allocations: 57.97 kB / 3.469 GB, free: 18.47 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004192/11.01, allocations: 1.253 MB / 3.471 GB, free: 17.22 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01223/11.02, allocations: 6.556 MB / 3.477 GB, free: 10.17 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003277/11.02, allocations: 0.9274 MB / 3.478 GB, free: 9.211 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008808/11.02, allocations: 388.1 kB / 3.478 GB, free: 8.824 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4971/11.52, allocations: 32.1 MB / 3.51 GB, free: 52.31 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.551e-05/11.52, allocations: 44.34 kB / 3.51 GB, free: 52.27 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=57): time 4.819e-06/11.52, allocations: 2.719 kB / 3.51 GB, free: 52.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61): time 0.01121/11.53, allocations: 2.801 MB / 3.512 GB, free: 51.75 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.401e-05/11.53, allocations: 190.2 kB / 3.513 GB, free: 51.53 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001426/11.53, allocations: 0.6414 MB / 3.513 GB, free: 51.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001986/11.53, allocations: 38.95 kB / 3.513 GB, free: 51.37 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000306/11.53, allocations: 424.5 kB / 3.514 GB, free: 51.14 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002551/11.53, allocations: 213.1 kB / 3.514 GB, free: 51.04 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.427e-05/11.53, allocations: 18.44 kB / 3.514 GB, free: 51.04 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.57e-05/11.53, allocations: 342.4 kB / 3.514 GB, free: 50.73 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009321/11.53, allocations: 346.7 kB / 3.514 GB, free: 50.73 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/11.54, allocations: 0.5429 MB / 3.515 GB, free: 50.49 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/11.54, allocations: 421.3 kB / 3.515 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/11.54, allocations: 1.125 kB / 3.515 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003204/11.54, allocations: 1.156 MB / 3.517 GB, free: 50.42 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005584/11.54, allocations: 2.268 MB / 3.519 GB, free: 48.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/11.54, allocations: 6.344 kB / 3.519 GB, free: 48.06 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005247/11.55, allocations: 0.6359 MB / 3.519 GB, free: 48.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/11.55, allocations: 160.2 kB / 3.52 GB, free: 48.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/11.55, allocations: 1.256 MB / 3.521 GB, free: 47.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001979/11.55, allocations: 107.5 kB / 3.521 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001683/11.55, allocations: 39.89 kB / 3.521 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/11.55, allocations: 3.375 kB / 3.521 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003501/11.56, allocations: 1.066 MB / 3.522 GB, free: 47.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/11.56, allocations: 5.125 kB / 3.522 GB, free: 47.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002553/11.56, allocations: 385.3 kB / 3.522 GB, free: 47.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/11.56, allocations: 177.7 kB / 3.522 GB, free: 47.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/11.56, allocations: 1.052 MB / 3.524 GB, free: 46.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/11.56, allocations: 105.8 kB / 3.524 GB, free: 46.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/11.56, allocations: 45.97 kB / 3.524 GB, free: 46.96 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 () * 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.0003542/11.56, allocations: 151.6 kB / 3.524 GB, free: 46.85 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000407/11.56, allocations: 81.53 kB / 3.524 GB, free: 46.81 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005514/11.57, allocations: 3.235 MB / 3.527 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.783e-05/11.57, allocations: 35.31 kB / 3.527 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/11.57, allocations: 0 / 3.527 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003641/11.57, allocations: 2.701 MB / 3.53 GB, free: 45.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007733/11.58, allocations: 4.47 MB / 3.534 GB, free: 45.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/11.58, allocations: 3.969 kB / 3.534 GB, free: 45.58 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/11.58, allocations: 174.9 kB / 3.534 GB, free: 45.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005463/11.58, allocations: 98.81 kB / 3.534 GB, free: 45.57 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.193e-05/11.58, allocations: 22.27 kB / 3.534 GB, free: 45.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004664/11.58, allocations: 0.6442 MB / 3.535 GB, free: 45.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/11.58, allocations: 5.156 kB / 3.535 GB, free: 45.05 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004696/11.59, allocations: 2.745 MB / 3.538 GB, free: 44.57 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/11.59, allocations: 451.2 kB / 3.538 GB, free: 44.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002993/11.59, allocations: 19.31 kB / 3.538 GB, free: 44.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/11.59, allocations: 92.44 kB / 3.538 GB, free: 44.39 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/11.59, allocations: 61.66 kB / 3.538 GB, free: 44.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.645e-05/11.59, allocations: 28.92 kB / 3.538 GB, free: 44.38 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001557/11.59, allocations: 0.7929 MB / 3.539 GB, free: 44.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.61e-07/11.59, allocations: 0 / 3.539 GB, free: 44.27 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008161/11.6, allocations: 1.736 MB / 3.541 GB, free: 44.23 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 () * 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.01662/11.62, allocations: 5.295 MB / 3.546 GB, free: 42.99 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0041/11.62, allocations: 1.655 MB / 3.548 GB, free: 42.95 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/11.62, allocations: 3.938 kB / 3.548 GB, free: 42.95 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001747/11.62, allocations: 0.8345 MB / 3.548 GB, free: 42.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004368/11.63, allocations: 468.5 kB / 3.549 GB, free: 42.94 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/11.64, allocations: 3.215 MB / 3.552 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009305/11.64, allocations: 1.338 MB / 3.553 GB, free: 41.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/11.64, allocations: 0.5682 MB / 3.554 GB, free: 41.53 MB / 0.4948 GB Notification: Performance of SimCode: time 1.152e-06/11.64, allocations: 0 / 3.554 GB, free: 41.53 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.15/15.79, allocations: 52.1 MB / 3.605 GB, free: 37.97 MB / 0.4948 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