Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004453/0.0004454, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1092, allocations: 44.51 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.395/0.5043, allocations: 71.4 MB / 379.9 MB, free: 18.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.5047, allocations: 72.73 kB / 380 MB, free: 18.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006978/0.5117, allocations: 1.759 MB / 381.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5117, allocations: 0 / 381.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.5118, allocations: 2.25 kB / 381.8 MB, free: 18.09 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004344/0.5122, allocations: 370.2 kB / 382.1 MB, free: 17.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.5123, allocations: 9.375 kB / 382.1 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.699e-05/0.5123, allocations: 38.2 kB / 382.2 MB, free: 17.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.5125, allocations: 13.06 kB / 382.2 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.5126, allocations: 175.9 kB / 382.4 MB, free: 17.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.5126, allocations: 7.031 kB / 382.4 MB, free: 17.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.367e-05/0.5127, allocations: 9.188 kB / 382.4 MB, free: 17.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.5129, allocations: 79.39 kB / 382.5 MB, free: 17.45 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.5129, allocations: 3.875 kB / 382.5 MB, free: 17.45 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.5129, allocations: 13.17 kB / 382.5 MB, free: 17.44 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.5129, allocations: 2.25 kB / 382.5 MB, free: 17.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001631/0.5131, allocations: 55.12 kB / 382.5 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008222/0.514, allocations: 397.8 kB / 382.9 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.5141, allocations: 81.25 kB / 383 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.5142, allocations: 5.125 kB / 383 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.5142, allocations: 35.19 kB / 383 MB, free: 17.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 2.164e-06/0.5142, allocations: 0 / 383 MB, free: 17.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002622/0.5145, allocations: 89.23 kB / 383.1 MB, free: 17.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.5145, allocations: 56.33 kB / 383.2 MB, free: 16.97 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.264e-05/0.5146, allocations: 101.1 kB / 383.3 MB, free: 16.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.5146, allocations: 30.83 kB / 383.3 MB, free: 16.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.75e-05/0.5147, allocations: 167.8 kB / 383.5 MB, free: 16.69 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.835e-05/0.5147, allocations: 29.23 kB / 383.5 MB, free: 16.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-06/0.5148, allocations: 4.188 kB / 383.5 MB, free: 16.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.092e-05/0.5148, allocations: 317.5 kB / 383.8 MB, free: 16.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.42e-05/0.5149, allocations: 20.88 kB / 383.8 MB, free: 16.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.824e-05/0.515, allocations: 47.53 kB / 383.9 MB, free: 16.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.61e-05/0.5151, allocations: 30.84 kB / 383.9 MB, free: 16.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.5151, allocations: 1.469 kB / 383.9 MB, free: 16.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002418/0.5153, allocations: 110.2 kB / 384 MB, free: 16.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.5154, allocations: 4.031 kB / 384 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.5154, allocations: 1.094 kB / 384 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.5154, allocations: 2.25 kB / 384 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.5156, allocations: 21.67 kB / 384 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.5157, allocations: 3.25 kB / 384.1 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.799e-05/0.5158, allocations: 15.3 kB / 384.1 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.5158, allocations: 3.219 kB / 384.1 MB, free: 16.27 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.407e-05/0.5159, allocations: 122.4 kB / 384.2 MB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.311e-05/0.516, allocations: 6.938 kB / 384.2 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.072e-05/0.516, allocations: 9.406 kB / 384.2 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.516, allocations: 1.156 kB / 384.2 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.516, allocations: 0 / 384.2 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.5161, allocations: 2.828 kB / 384.2 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.5163, allocations: 194 kB / 384.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.5163, allocations: 0 / 384.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.5165, allocations: 20.31 kB / 384.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.5165, allocations: 0.9688 kB / 384.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.5165, allocations: 1.031 kB / 384.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.5165, allocations: 0 / 384.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5166, allocations: 1.188 kB / 384.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.5168, allocations: 202.4 kB / 384.6 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.405e-05/0.5169, allocations: 88.55 kB / 384.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.5169, allocations: 2.188 kB / 384.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.5e-05/0.517, allocations: 2.281 kB / 384.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.9e-05/0.517, allocations: 4.156 kB / 384.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-06/0.5171, allocations: 1.125 kB / 384.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.068e-05/0.5171, allocations: 86.36 kB / 384.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5171, allocations: 5.031 kB / 384.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003468/0.5175, allocations: 29.84 kB / 384.8 MB, free: 15.61 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.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 (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004389/0.5179, allocations: 0.7312 MB / 385.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001889/0.5181, allocations: 55.69 kB / 385.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5181, allocations: 0 / 385.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.443e-05/0.5182, allocations: 24.3 kB / 385.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.5185, allocations: 9.109 kB / 385.7 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.5197, allocations: 0.9176 MB / 386.6 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/0.5199, allocations: 0.7068 MB / 387.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.071e-05/0.52, allocations: 21.8 kB / 387.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of SimCode: time 1.262e-06/0.52, allocations: 4 kB / 387.3 MB, free: 13.4 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.486/3.006, allocations: 1.329 MB / 388.6 MB, free: 13.32 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat