Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.103/2.103, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006062/0.0006065, allocations: 12 kB / 282.6 MB, free: 9.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3559, allocations: 48.71 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.02362/0.3796, allocations: 14.06 MB / 345.4 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009914/0.3896, allocations: 4.072 MB / 349.4 MB, free: 9.125 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.3908, allocations: 22.12 kB / 349.4 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.3923, allocations: 270.7 kB / 349.7 MB, free: 8.883 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003422/0.3958, allocations: 0.7019 MB / 350.4 MB, free: 8.281 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003463/0.3993, allocations: 0.7023 MB / 351.1 MB, free: 7.762 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003088/0.4024, allocations: 1.153 MB / 352.3 MB, free: 7.012 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001113/0.4036, allocations: 382.8 kB / 352.6 MB, free: 6.77 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002423/0.4061, allocations: 0.6276 MB / 353.3 MB, free: 6.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001431/0.4075, allocations: 423 kB / 353.7 MB, free: 6.168 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002236/0.4078, allocations: 30.38 kB / 353.7 MB, free: 6.168 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001435/0.4092, allocations: 237.7 kB / 353.9 MB, free: 6.098 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004499/0.4097, allocations: 217.3 kB / 354.2 MB, free: 5.961 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004196/0.4102, allocations: 158.2 kB / 354.3 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001927/0.4121, allocations: 0.7678 MB / 355.1 MB, free: 5.363 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4122, allocations: 1.531 kB / 355.1 MB, free: 5.363 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4122, allocations: 0 / 355.1 MB, free: 5.363 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.4122, allocations: 0 / 355.1 MB, free: 5.363 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003431/0.4157, allocations: 0.9244 MB / 356 MB, free: 4.629 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.4157, allocations: 9.625 kB / 356 MB, free: 4.629 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003753/0.4161, allocations: 95.14 kB / 356.1 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005555/0.4167, allocations: 87.27 kB / 356.2 MB, free: 4.508 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.4182, allocations: 0.4974 MB / 356.7 MB, free: 4.082 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.4184, allocations: 99.89 kB / 356.8 MB, free: 4 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.4186, allocations: 49 kB / 356.8 MB, free: 3.984 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002219/0.4208, allocations: 0.8166 MB / 357.7 MB, free: 3.391 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.4209, allocations: 5.344 kB / 357.7 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.421, allocations: 27.7 kB / 357.7 MB, free: 3.367 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.144e-05/0.4211, allocations: 37.17 kB / 357.7 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.4231, allocations: 0.6392 MB / 358.4 MB, free: 3.039 MB / 282.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.008462/0.4316, allocations: 4.222 MB / 362.6 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.4332, allocations: 415.9 kB / 363 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007334/0.434, allocations: 0.4989 MB / 363.5 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.4341, allocations: 42.89 kB / 363.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 3.707e-06/0.4341, allocations: 0 / 363.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.005604/0.4397, allocations: 1.505 MB / 365 MB, free: 12.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.188e-05/0.4398, allocations: 132.5 kB / 365.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.4409, allocations: 0.5497 MB / 365.7 MB, free: 11.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/0.441, allocations: 33.7 kB / 365.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003515/0.4414, allocations: 397.9 kB / 366.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.4416, allocations: 165.7 kB / 366.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.784e-05/0.4417, allocations: 20 kB / 366.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.4419, allocations: 346.8 kB / 366.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006812/0.4426, allocations: 221.9 kB / 366.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009235/0.4435, allocations: 0.541 MB / 367.4 MB, free: 9.461 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008694/0.4444, allocations: 332.5 kB / 367.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.4444, allocations: 4 kB / 367.7 MB, free: 9.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003244/0.4477, allocations: 0.9294 MB / 368.7 MB, free: 8.191 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.4478, allocations: 15.95 kB / 368.7 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.4478, allocations: 12.89 kB / 368.7 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/0.4497, allocations: 264.6 kB / 369 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009422/0.4507, allocations: 131.8 kB / 369.1 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/0.4523, allocations: 0.8504 MB / 369.9 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.4535, allocations: 44.05 kB / 370 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.4537, allocations: 43.98 kB / 370 MB, free: 6.812 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 76 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005749/0.4542, allocations: 253.4 kB / 370.3 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.4545, allocations: 63.25 kB / 370.3 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00227/0.4568, allocations: 0.7123 MB / 371 MB, free: 5.762 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/0.4568, allocations: 4 kB / 371 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.4568, allocations: 7.984 kB / 371.1 MB, free: 5.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4569, allocations: 0 / 371.1 MB, free: 5.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003833/0.4607, allocations: 1.387 MB / 372.4 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.4608, allocations: 4 kB / 372.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/0.4627, allocations: 191.8 kB / 372.6 MB, free: 4.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005451/0.4633, allocations: 76.88 kB / 372.7 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.791e-05/0.4634, allocations: 12 kB / 372.7 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003524/0.467, allocations: 2.789 MB / 375.5 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.467, allocations: 7.969 kB / 375.5 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00274/0.4698, allocations: 0.9879 MB / 376.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006084/0.4704, allocations: 200.3 kB / 376.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.4706, allocations: 15.94 kB / 376.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007315/0.4714, allocations: 39.84 kB / 376.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.4715, allocations: 39.94 kB / 376.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.48e-05/0.4716, allocations: 19.98 kB / 376.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007438/0.4724, allocations: 382.8 kB / 377.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.044e-06/0.4724, allocations: 4 kB / 377.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001322/0.4737, allocations: 211.9 kB / 377.4 MB, free: 15 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003694/0.4774, allocations: 1.656 MB / 379.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002099/0.4796, allocations: 0.6053 MB / 379.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/0.4796, allocations: 0 / 379.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002006/0.4817, allocations: 470.1 kB / 380.1 MB, free: 12.22 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/0.4845, allocations: 294.1 kB / 380.4 MB, free: 11.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.4961, allocations: 4.413 MB / 384.8 MB, free: 7.293 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007201/0.4968, allocations: 0.9464 MB / 385.8 MB, free: 6.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000639/0.4975, allocations: 243.3 kB / 386 MB, free: 6.082 MB / 314.7 MB Notification: Performance of SimCode: time 1.282e-06/0.4975, allocations: 0 / 386 MB, free: 6.082 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.226/3.724, allocations: 17.7 MB / 403.7 MB, free: 4.398 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat does not exist to compare? outputFormat=mat