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.LinearWater_pT.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.LinearWater_pT,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.089/2.089, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005723/0.0005725, allocations: 16 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3508, allocations: 48.7 MB / 331.3 MB, free: 6.527 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.05896/0.4098, allocations: 34.23 MB / 365.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009368/0.4192, allocations: 4.131 MB / 369.6 MB, free: 8.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.4203, allocations: 27.75 kB / 369.7 MB, free: 8.043 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.4216, allocations: 270.6 kB / 369.9 MB, free: 7.777 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002988/0.4246, allocations: 0.6971 MB / 370.6 MB, free: 7.078 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003174/0.4278, allocations: 0.6984 MB / 371.3 MB, free: 6.379 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002654/0.4305, allocations: 1.156 MB / 372.5 MB, free: 5.219 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009602/0.4315, allocations: 381.3 kB / 372.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2271/0.6586, allocations: 70.62 MB / 443.5 MB, free: 14.17 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03851/0.6972, allocations: 13.18 MB / 456.7 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002357/0.6975, allocations: 32 kB / 456.7 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4061/1.104, allocations: 18.04 MB / 474.7 MB, free: 99.12 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006159/1.104, allocations: 209.2 kB / 474.9 MB, free: 99.12 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003593/1.105, allocations: 162.6 kB / 475.1 MB, free: 99.09 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001995/1.107, allocations: 0.7522 MB / 475.8 MB, free: 99.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/1.107, allocations: 0 / 475.8 MB, free: 99.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.677e-06/1.107, allocations: 0 / 475.8 MB, free: 99.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.232e-05/1.107, allocations: 3.453 kB / 475.9 MB, free: 99.04 MB / 394.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.003396/1.11, allocations: 0.9273 MB / 476.8 MB, free: 98.47 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/1.11, allocations: 9.312 kB / 476.8 MB, free: 98.47 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003078/1.111, allocations: 95.5 kB / 476.9 MB, free: 98.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005408/1.111, allocations: 84.78 kB / 477 MB, free: 98.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/1.112, allocations: 0.4979 MB / 477.5 MB, free: 98.14 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/1.113, allocations: 98.31 kB / 477.6 MB, free: 98.08 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/1.113, allocations: 53.02 kB / 477.6 MB, free: 98.08 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/1.115, allocations: 0.8124 MB / 478.4 MB, free: 97.87 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.535e-05/1.115, allocations: 7.188 kB / 478.4 MB, free: 97.87 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/1.115, allocations: 28.08 kB / 478.5 MB, free: 97.87 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.602e-05/1.115, allocations: 40.81 kB / 478.5 MB, free: 97.87 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/1.117, allocations: 0.6419 MB / 479.1 MB, free: 97.87 MB / 394.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.007777/1.125, allocations: 4.207 MB / 483.3 MB, free: 95.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/1.127, allocations: 404.1 kB / 483.7 MB, free: 95.08 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005959/1.127, allocations: 0.501 MB / 484.2 MB, free: 94.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/1.127, allocations: 41.56 kB / 484.3 MB, free: 94.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=40): time 2.225e-06/1.127, allocations: 3.969 kB / 484.3 MB, free: 94.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.005364/1.133, allocations: 1.506 MB / 485.8 MB, free: 94.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/1.133, allocations: 136.9 kB / 485.9 MB, free: 93.92 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/1.134, allocations: 0.5497 MB / 486.5 MB, free: 93.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/1.134, allocations: 35.64 kB / 486.5 MB, free: 93.76 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/1.134, allocations: 400.4 kB / 486.9 MB, free: 93.49 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/1.134, allocations: 166.8 kB / 487.1 MB, free: 93.39 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.303e-05/1.134, allocations: 12.22 kB / 487.1 MB, free: 93.39 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.114e-05/1.135, allocations: 349.2 kB / 487.4 MB, free: 93.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006877/1.135, allocations: 223.2 kB / 487.6 MB, free: 93.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008443/1.136, allocations: 0.5381 MB / 488.2 MB, free: 92.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007556/1.137, allocations: 323.8 kB / 488.5 MB, free: 92.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/1.137, allocations: 10.02 kB / 488.5 MB, free: 92.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002787/1.14, allocations: 0.9363 MB / 489.4 MB, free: 92.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/1.14, allocations: 18.64 kB / 489.5 MB, free: 92.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/1.14, allocations: 10.62 kB / 489.5 MB, free: 92.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/1.142, allocations: 261.8 kB / 489.7 MB, free: 92.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008342/1.142, allocations: 133.7 kB / 489.9 MB, free: 92.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/1.144, allocations: 0.8609 MB / 490.7 MB, free: 92.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/1.145, allocations: 41.36 kB / 490.8 MB, free: 92.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.143e-05/1.145, allocations: 38.08 kB / 490.8 MB, free: 92.07 MB / 394.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.0005241/1.145, allocations: 256.2 kB / 491 MB, free: 91.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/1.146, allocations: 62.22 kB / 491.1 MB, free: 91.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/1.148, allocations: 0.704 MB / 491.8 MB, free: 91.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/1.148, allocations: 6.688 kB / 491.8 MB, free: 91.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/1.148, allocations: 4 kB / 491.8 MB, free: 91.82 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/1.148, allocations: 3.656 kB / 491.8 MB, free: 91.82 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003292/1.151, allocations: 1.398 MB / 493.2 MB, free: 91.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/1.151, allocations: 3.656 kB / 493.2 MB, free: 91.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00189/1.153, allocations: 188.8 kB / 493.4 MB, free: 91.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004941/1.154, allocations: 68.75 kB / 493.5 MB, free: 91.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.075e-05/1.154, allocations: 10.81 kB / 493.5 MB, free: 91.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002654/1.156, allocations: 2.808 MB / 496.3 MB, free: 88.83 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.156, allocations: 7.219 kB / 496.3 MB, free: 88.83 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/1.159, allocations: 0.9808 MB / 497.3 MB, free: 88.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004809/1.159, allocations: 201.5 kB / 497.5 MB, free: 88.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001615/1.159, allocations: 10.5 kB / 497.5 MB, free: 88.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006786/1.16, allocations: 33.53 kB / 497.5 MB, free: 88.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/1.16, allocations: 45.36 kB / 497.6 MB, free: 88.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.17e-05/1.16, allocations: 18.14 kB / 497.6 MB, free: 88.26 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006372/1.161, allocations: 379.7 kB / 498 MB, free: 87.99 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.161, allocations: 4 kB / 498 MB, free: 87.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001134/1.162, allocations: 209 kB / 498.2 MB, free: 87.8 MB / 394.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.002912/1.165, allocations: 1.646 MB / 499.8 MB, free: 86.42 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001719/1.167, allocations: 0.6146 MB / 0.4887 GB, free: 86 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/1.167, allocations: 3.844 kB / 0.4887 GB, free: 86 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001761/1.169, allocations: 469.8 kB / 0.4891 GB, free: 85.62 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/1.171, allocations: 300.5 kB / 0.4894 GB, free: 85.39 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009521/1.181, allocations: 4.398 MB / 0.4937 GB, free: 81.53 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000479/1.181, allocations: 0.9524 MB / 0.4947 GB, free: 80.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005206/1.182, allocations: 238.5 kB / 0.4949 GB, free: 80.49 MB / 394.7 MB Notification: Performance of SimCode: time 8.12e-07/1.182, allocations: 0 / 0.4949 GB, free: 80.49 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.311/4.492, allocations: 17.71 MB / 0.5122 GB, free: 63.01 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat does not exist to compare? outputFormat=mat