Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a1.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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.655/1.655, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003537, allocations: 8 kB / 233.2 MB, free: 2.961 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08274/0.08313, allocations: 38.77 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.03674/0.1199, allocations: 22.4 MB / 294.4 MB, free: 5.648 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2588/0.3788, allocations: 20.75 MB / 315.2 MB, free: 8.977 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000445/0.3793, allocations: 3.438 kB / 315.2 MB, free: 8.977 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001063/0.3804, allocations: 245.3 kB / 315.4 MB, free: 8.902 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008032/0.3812, allocations: 254 kB / 315.7 MB, free: 8.836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01468/0.3959, allocations: 3.108 MB / 318.8 MB, free: 7.867 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001186/0.3971, allocations: 0.5456 MB / 319.3 MB, free: 7.742 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.3973, allocations: 80.2 kB / 319.4 MB, free: 7.711 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007079/0.398, allocations: 292.4 kB / 319.7 MB, free: 7.605 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003301/0.3984, allocations: 191.5 kB / 319.9 MB, free: 7.539 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.078e-05/0.3985, allocations: 17.44 kB / 319.9 MB, free: 7.539 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.09733/0.4958, allocations: 53.56 MB / 373.4 MB, free: 7.383 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002442/0.4961, allocations: 79.12 kB / 373.5 MB, free: 7.309 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003161/0.4964, allocations: 109.5 kB / 373.6 MB, free: 7.195 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.06072/0.5572, allocations: 10.66 MB / 384.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.5572, allocations: 4 kB / 384.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5572, allocations: 0 / 384.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.5572, allocations: 0 / 384.3 MB, free: 12.76 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.008146/0.5654, allocations: 1.068 MB / 385.4 MB, free: 11.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.5655, allocations: 8.031 kB / 385.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.5656, allocations: 74.53 kB / 385.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006413/0.5662, allocations: 69.22 kB / 385.5 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005358/0.5668, allocations: 314 kB / 385.8 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.5668, allocations: 29.86 kB / 385.8 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.143e-05/0.5669, allocations: 28 kB / 385.9 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.5682, allocations: 463.8 kB / 386.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.5682, allocations: 3.938 kB / 386.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.693e-05/0.5683, allocations: 12.69 kB / 386.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.5683, allocations: 8 kB / 386.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.5694, allocations: 390.2 kB / 386.7 MB, free: 10.21 MB / 314.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.005029/0.5744, allocations: 2.951 MB / 389.7 MB, free: 7.035 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009525/0.5754, allocations: 283.4 kB / 390 MB, free: 6.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003582/0.579, allocations: 2.545 MB / 392.5 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.5791, allocations: 38.56 kB / 392.5 MB, free: 3.664 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 2.575e-06/0.5791, allocations: 0 / 392.5 MB, free: 3.664 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.007139/0.5862, allocations: 1.303 MB / 393.8 MB, free: 2.285 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.5863, allocations: 55.41 kB / 393.9 MB, free: 2.219 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003997/0.5867, allocations: 258.5 kB / 394.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.5867, allocations: 29.7 kB / 394.2 MB, free: 1.922 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.5869, allocations: 256.3 kB / 394.4 MB, free: 1.672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.5871, allocations: 120.7 kB / 394.5 MB, free: 1.555 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/0.5871, allocations: 8 kB / 394.6 MB, free: 1.547 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.5873, allocations: 334.8 kB / 394.9 MB, free: 1.211 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003225/0.5876, allocations: 108.8 kB / 395 MB, free: 1.105 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004101/0.588, allocations: 230 kB / 395.2 MB, free: 0.832 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.5884, allocations: 151.4 kB / 395.4 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5884, allocations: 0 / 395.4 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001253/0.5897, allocations: 434.8 kB / 395.8 MB, free: 256 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.5897, allocations: 4 kB / 395.8 MB, free: 252 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.5898, allocations: 7.938 kB / 395.8 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007488/0.5973, allocations: 241.9 kB / 396 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00063/0.5979, allocations: 91.78 kB / 396.1 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.5998, allocations: 1.856 MB / 398 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004555/0.6003, allocations: 27.83 kB / 398 MB, free: 13.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.508e-05/0.6004, allocations: 24.16 kB / 398 MB, free: 13.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002824/0.6007, allocations: 158 kB / 398.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.322e-05/0.6008, allocations: 31.7 kB / 398.2 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00165/0.6024, allocations: 0.7046 MB / 398.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.6024, allocations: 4 kB / 398.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6025, allocations: 4 kB / 398.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00129/0.6038, allocations: 0.8555 MB / 399.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002256/0.606, allocations: 1.193 MB / 401 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.6061, allocations: 0 / 401 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004604/0.6065, allocations: 71.83 kB / 401 MB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002773/0.6093, allocations: 176.6 kB / 401.2 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.6094, allocations: 12.86 kB / 401.2 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004655/0.6098, allocations: 0.5796 MB / 401.8 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.6099, allocations: 0 / 401.8 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.6115, allocations: 0.7326 MB / 402.5 MB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.6118, allocations: 128.7 kB / 402.7 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.282e-05/0.6119, allocations: 12 kB / 402.7 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004108/0.6123, allocations: 24.05 kB / 402.7 MB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.73e-05/0.6124, allocations: 19.97 kB / 402.7 MB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.919e-05/0.6125, allocations: 12 kB / 402.7 MB, free: 8.914 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004123/0.6129, allocations: 225.9 kB / 403 MB, free: 8.691 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6129, allocations: 0 / 403 MB, free: 8.691 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.006088/0.619, allocations: 0.7418 MB / 403.7 MB, free: 7.949 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.05832/0.6774, allocations: 7.564 MB / 411.3 MB, free: 372 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.6788, allocations: 478.4 kB / 411.7 MB, free: 15.89 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.6788, allocations: 0 / 411.7 MB, free: 15.89 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006366/0.6794, allocations: 227.9 kB / 412 MB, free: 15.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.6812, allocations: 178.8 kB / 412.1 MB, free: 15.49 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009207/0.6904, allocations: 2.63 MB / 414.8 MB, free: 12.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004494/0.6909, allocations: 0.8129 MB / 415.6 MB, free: 11.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003217/0.6912, allocations: 139.4 kB / 415.7 MB, free: 11.78 MB / 346.7 MB Notification: Performance of SimCode: time 1.333e-06/0.6912, allocations: 4 kB / 415.7 MB, free: 11.78 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.16/4.851, allocations: 31.66 MB / 447.4 MB, free: 128.7 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a1_res.mat does not exist to compare? outputFormat=mat