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.ReferenceAir.DryAir1.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.ReferenceAir.DryAir1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.684/1.684, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.0003499, allocations: 16 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08661/0.08699, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.966/2.054, allocations: 0.6308 GB / 0.8966 GB, free: 89.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003407/2.054, allocations: 77.45 kB / 0.8966 GB, free: 89.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.841/3.895, allocations: 473.6 MB / 1.359 GB, free: 68.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/3.895, allocations: 4 kB / 1.359 GB, free: 68.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.463e-05/3.895, allocations: 8 kB / 1.359 GB, free: 68.9 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001787/3.897, allocations: 0.7398 MB / 1.36 GB, free: 68.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/3.897, allocations: 8.031 kB / 1.36 GB, free: 68.17 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/3.897, allocations: 61.73 kB / 1.36 GB, free: 68.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005882/3.898, allocations: 63.25 kB / 1.36 GB, free: 68.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004635/3.899, allocations: 286.2 kB / 1.36 GB, free: 67.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/3.899, allocations: 20.56 kB / 1.36 GB, free: 67.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.899e-05/3.899, allocations: 35.89 kB / 1.36 GB, free: 67.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006583/3.899, allocations: 327.6 kB / 1.361 GB, free: 67.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/3.899, allocations: 8 kB / 1.361 GB, free: 67.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/3.899, allocations: 13.64 kB / 1.361 GB, free: 67.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/3.899, allocations: 4 kB / 1.361 GB, free: 67.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004539/3.9, allocations: 211.9 kB / 1.361 GB, free: 67.19 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0163/3.916, allocations: 5.469 MB / 1.366 GB, free: 62.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/3.917, allocations: 178.5 kB / 1.366 GB, free: 61.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01368/3.93, allocations: 3.448 MB / 1.37 GB, free: 58.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/3.93, allocations: 34.69 kB / 1.37 GB, free: 58.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 3.277e-06/3.93, allocations: 0 / 1.37 GB, free: 58.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.00839/3.939, allocations: 1.37 MB / 1.371 GB, free: 56.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/3.939, allocations: 59.39 kB / 1.371 GB, free: 56.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/3.939, allocations: 233.6 kB / 1.371 GB, free: 56.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/3.939, allocations: 33.7 kB / 1.371 GB, free: 56.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/3.939, allocations: 243.6 kB / 1.372 GB, free: 56.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.506e-05/3.94, allocations: 94.73 kB / 1.372 GB, free: 56.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/3.94, allocations: 4 kB / 1.372 GB, free: 56.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.986e-05/3.94, allocations: 326.8 kB / 1.372 GB, free: 55.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/3.94, allocations: 87.97 kB / 1.372 GB, free: 55.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002686/3.94, allocations: 186.8 kB / 1.372 GB, free: 55.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002861/3.94, allocations: 120 kB / 1.372 GB, free: 55.26 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/3.94, allocations: 3.938 kB / 1.372 GB, free: 55.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009961/3.941, allocations: 379 kB / 1.373 GB, free: 54.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/3.942, allocations: 4 kB / 1.373 GB, free: 54.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/3.942, allocations: 4 kB / 1.373 GB, free: 54.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007486/3.949, allocations: 453.5 kB / 1.373 GB, free: 54.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005163/3.95, allocations: 75.84 kB / 1.373 GB, free: 54.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/3.951, allocations: 1.879 MB / 1.375 GB, free: 52.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004535/3.952, allocations: 24.02 kB / 1.375 GB, free: 52.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-05/3.952, allocations: 12 kB / 1.375 GB, free: 52.27 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * 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 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002446/3.952, allocations: 165.7 kB / 1.375 GB, free: 52.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.73e-05/3.952, allocations: 27.72 kB / 1.375 GB, free: 52.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009878/3.953, allocations: 495.3 kB / 1.376 GB, free: 51.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/3.953, allocations: 7.953 kB / 1.376 GB, free: 51.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/3.953, allocations: 3.938 kB / 1.376 GB, free: 51.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007816/3.954, allocations: 0.721 MB / 1.377 GB, free: 50.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/3.956, allocations: 0.9414 MB / 1.377 GB, free: 49.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/3.956, allocations: 0 / 1.377 GB, free: 49.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003264/3.956, allocations: 43.92 kB / 1.378 GB, free: 49.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002625/3.959, allocations: 312.3 kB / 1.378 GB, free: 49.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-05/3.959, allocations: 11.81 kB / 1.378 GB, free: 49.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005692/3.959, allocations: 0.6422 MB / 1.378 GB, free: 48.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/3.959, allocations: 0 / 1.378 GB, free: 48.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/3.961, allocations: 0.7335 MB / 1.379 GB, free: 47.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/3.961, allocations: 104.8 kB / 1.379 GB, free: 47.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.941e-05/3.961, allocations: 8 kB / 1.379 GB, free: 47.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003316/3.961, allocations: 15.92 kB / 1.379 GB, free: 47.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/3.961, allocations: 15.94 kB / 1.379 GB, free: 47.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.74e-05/3.961, allocations: 23.38 kB / 1.379 GB, free: 47.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002529/3.962, allocations: 182 kB / 1.38 GB, free: 47.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/3.962, allocations: 4 kB / 1.38 GB, free: 47.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001204/3.963, allocations: 207.9 kB / 1.38 GB, free: 47.39 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003292/3.966, allocations: 1.713 MB / 1.381 GB, free: 45.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001146/3.967, allocations: 442.5 kB / 1.382 GB, free: 45.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/3.967, allocations: 0 / 1.382 GB, free: 45.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008594/3.968, allocations: 240.6 kB / 1.382 GB, free: 44.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/3.97, allocations: 167.3 kB / 1.382 GB, free: 44.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004694/3.975, allocations: 3.905 MB / 1.386 GB, free: 40.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/3.975, allocations: 0.7841 MB / 1.387 GB, free: 40 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/3.975, allocations: 107.4 kB / 1.387 GB, free: 39.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.213e-06/3.975, allocations: 4 kB / 1.387 GB, free: 39.89 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.901/6.876, allocations: 10.63 MB / 1.397 GB, free: 29.3 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat does not exist to compare? outputFormat=mat