Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2.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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003778/0.0003779, allocations: 15.98 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1066, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 17.24/17.35, allocations: 5.72 GB / 6.022 GB, free: 105.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/17.35, allocations: 79.91 kB / 6.022 GB, free: 105.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 20.3/37.65, allocations: 4.515 GB / 10.54 GB, free: 105.6 MB / 0.6356 GB Notification: Performance of FrontEnd: time 2.745e-06/37.65, allocations: 1.203 kB / 10.54 GB, free: 105.6 MB / 0.6356 GB Notification: Performance of Transformations before backend: time 5.174e-05/37.65, allocations: 8.375 kB / 10.54 GB, free: 105.6 MB / 0.6356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.06151/37.71, allocations: 2.232 MB / 10.54 GB, free: 104.7 MB / 0.6356 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/37.71, allocations: 12.28 kB / 10.54 GB, free: 104.7 MB / 0.6356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002058/37.71, allocations: 92.59 kB / 10.54 GB, free: 104.7 MB / 0.6356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009372/37.71, allocations: 90.41 kB / 10.54 GB, free: 104.7 MB / 0.6356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007837/37.71, allocations: 379 kB / 10.54 GB, free: 104.5 MB / 0.6356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/37.71, allocations: 37.16 kB / 10.54 GB, free: 104.5 MB / 0.6356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/37.71, allocations: 45.59 kB / 10.54 GB, free: 104.5 MB / 0.6356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/37.72, allocations: 0.6116 MB / 10.54 GB, free: 104.3 MB / 0.6356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/37.72, allocations: 5.125 kB / 10.54 GB, free: 104.3 MB / 0.6356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.813e-05/37.72, allocations: 21.55 kB / 10.54 GB, free: 104.3 MB / 0.6356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/37.72, allocations: 13.38 kB / 10.54 GB, free: 104.3 MB / 0.6356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/37.72, allocations: 0.5322 MB / 10.54 GB, free: 104.3 MB / 0.6356 GB 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.01052/37.73, allocations: 6.087 MB / 10.55 GB, free: 101.8 MB / 0.6356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/37.73, allocations: 438.8 kB / 10.55 GB, free: 101.8 MB / 0.6356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004573/37.73, allocations: 2.837 MB / 10.55 GB, free: 99.3 MB / 0.6356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/37.73, allocations: 44.28 kB / 10.55 GB, free: 99.27 MB / 0.6356 GB Notification: Performance of pre-optimization done (n=46): time 2.896e-06/37.73, allocations: 0.75 kB / 10.55 GB, free: 99.27 MB / 0.6356 GB Notification: Performance of matching and sorting (n=54): time 0.01845/37.75, allocations: 2.031 MB / 10.55 GB, free: 98.8 MB / 0.6356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/37.75, allocations: 58.56 kB / 10.55 GB, free: 98.73 MB / 0.6356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006528/37.75, allocations: 270.3 kB / 10.55 GB, free: 98.63 MB / 0.6356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001544/37.75, allocations: 37.77 kB / 10.55 GB, free: 98.6 MB / 0.6356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/37.75, allocations: 289.4 kB / 10.55 GB, free: 98.4 MB / 0.6356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004857/37.75, allocations: 188.6 kB / 10.55 GB, free: 98.3 MB / 0.6356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/37.76, allocations: 10.91 kB / 10.55 GB, free: 98.3 MB / 0.6356 GB Notification: Performance of setup shared object (initialization): time 0.0001798/37.76, allocations: 335.9 kB / 10.55 GB, free: 97.99 MB / 0.6356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/37.76, allocations: 174.3 kB / 10.55 GB, free: 97.99 MB / 0.6356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008671/37.76, allocations: 328.9 kB / 10.55 GB, free: 97.83 MB / 0.6356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008917/37.76, allocations: 233.1 kB / 10.55 GB, free: 97.83 MB / 0.6356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.605e-05/37.76, allocations: 0 / 10.55 GB, free: 97.83 MB / 0.6356 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003884/37.76, allocations: 0.6518 MB / 10.55 GB, free: 97.75 MB / 0.6356 GB Notification: Performance of prepare postOptimizeDAE: time 6.211e-05/37.76, allocations: 8.625 kB / 10.55 GB, free: 97.75 MB / 0.6356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.29e-05/37.76, allocations: 2.656 kB / 10.55 GB, free: 97.75 MB / 0.6356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03432/37.8, allocations: 0.5533 MB / 10.55 GB, free: 97.73 MB / 0.6356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/37.8, allocations: 142.9 kB / 10.55 GB, free: 97.73 MB / 0.6356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002154/37.8, allocations: 2.993 MB / 10.56 GB, free: 94.85 MB / 0.6356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007857/37.8, allocations: 50.55 kB / 10.56 GB, free: 94.85 MB / 0.6356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.761e-05/37.8, allocations: 27.41 kB / 10.56 GB, free: 94.85 MB / 0.6356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,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 (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003987/37.8, allocations: 192.3 kB / 10.56 GB, free: 94.73 MB / 0.6356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/37.8, allocations: 45.64 kB / 10.56 GB, free: 94.71 MB / 0.6356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002444/37.8, allocations: 1.06 MB / 10.56 GB, free: 94.61 MB / 0.6356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.161e-05/37.8, allocations: 10.72 kB / 10.56 GB, free: 94.61 MB / 0.6356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/37.8, allocations: 0 / 10.56 GB, free: 94.61 MB / 0.6356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001661/37.81, allocations: 1.09 MB / 10.56 GB, free: 94.21 MB / 0.6356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003278/37.81, allocations: 1.743 MB / 10.56 GB, free: 93.85 MB / 0.6356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/37.81, allocations: 2.438 kB / 10.56 GB, free: 93.85 MB / 0.6356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007226/37.81, allocations: 102.6 kB / 10.56 GB, free: 93.85 MB / 0.6356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00652/37.82, allocations: 396.6 kB / 10.56 GB, free: 93.83 MB / 0.6356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/37.82, allocations: 12.47 kB / 10.56 GB, free: 93.83 MB / 0.6356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007545/37.82, allocations: 1.15 MB / 10.56 GB, free: 92.79 MB / 0.6356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/37.82, allocations: 1.344 kB / 10.56 GB, free: 92.79 MB / 0.6356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002399/37.82, allocations: 1.124 MB / 10.56 GB, free: 92.58 MB / 0.6356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/37.82, allocations: 139.8 kB / 10.56 GB, free: 92.46 MB / 0.6356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/37.82, allocations: 9.969 kB / 10.56 GB, free: 92.46 MB / 0.6356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005753/37.82, allocations: 39.22 kB / 10.56 GB, free: 92.45 MB / 0.6356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/37.82, allocations: 35.38 kB / 10.56 GB, free: 92.45 MB / 0.6356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.058e-05/37.82, allocations: 25.7 kB / 10.56 GB, free: 92.45 MB / 0.6356 GB Notification: Performance of sorting global known variables: time 0.0004086/37.82, allocations: 246.1 kB / 10.56 GB, free: 92.37 MB / 0.6356 GB Notification: Performance of sort global known variables: time 5.21e-07/37.82, allocations: 0 / 10.56 GB, free: 92.37 MB / 0.6356 GB Notification: Performance of remove unused functions: time 0.02153/37.84, allocations: 1.117 MB / 10.57 GB, free: 92.19 MB / 0.6356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 Backend phase and start with SimCode phase: time 0.283/38.13, allocations: 25.28 MB / 10.59 GB, free: 79.55 MB / 0.6356 GB Notification: Performance of simCode: created initialization part: time 0.00202/38.13, allocations: 0.6887 MB / 10.59 GB, free: 79.44 MB / 0.6356 GB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/38.13, allocations: 3.5 kB / 10.59 GB, free: 79.44 MB / 0.6356 GB Notification: Performance of simCode: created simulation system equations: time 0.0008739/38.13, allocations: 362.1 kB / 10.59 GB, free: 79.43 MB / 0.6356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002274/38.13, allocations: 247.2 kB / 10.59 GB, free: 79.42 MB / 0.6356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/38.15, allocations: 6.66 MB / 10.6 GB, free: 75.19 MB / 0.6356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/38.16, allocations: 0.8733 MB / 10.6 GB, free: 74.49 MB / 0.6356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004329/38.16, allocations: 210.1 kB / 10.6 GB, free: 74.49 MB / 0.6356 GB Notification: Performance of SimCode: time 1.182e-06/38.16, allocations: 0 / 10.6 GB, free: 74.49 MB / 0.6356 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.64/41.8, allocations: 49.18 MB / 10.65 GB, free: 69.4 MB / 0.6356 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat