Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.751/1.751, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003426, allocations: 8 kB / 233.3 MB, free: 0.832 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08024/0.08061, allocations: 38.76 MB / 272.1 MB, free: 9.984 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3535/0.4341, allocations: 79.07 MB / 351.2 MB, free: 3.816 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004226/0.4346, allocations: 87.95 kB / 351.3 MB, free: 3.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2614/0.696, allocations: 56.75 MB / 408 MB, free: 10.53 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.6961, allocations: 3.938 kB / 408 MB, free: 10.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001367/0.6962, allocations: 47.94 kB / 408.1 MB, free: 10.48 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 931 * Number of variables: 931 Notification: Performance of Generate backend data structure: time 0.01027/0.7065, allocations: 2.649 MB / 410.7 MB, free: 7.766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.7066, allocations: 12.03 kB / 410.7 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001811/0.7084, allocations: 481.8 kB / 411.2 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01594/0.7244, allocations: 1.966 MB / 413.2 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02168/0.7461, allocations: 3.29 MB / 416.5 MB, free: 1.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004391/0.7466, allocations: 172.6 kB / 416.6 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00285/0.7495, allocations: 235.8 kB / 416.9 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2673/1.017, allocations: 6.794 MB / 423.7 MB, free: 81.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001677/1.017, allocations: 46.55 kB / 423.7 MB, free: 81.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007546/1.018, allocations: 120.9 kB / 423.8 MB, free: 81.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001662/1.02, allocations: 0.7063 MB / 424.5 MB, free: 81.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01822/1.038, allocations: 5.835 MB / 430.4 MB, free: 81.6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05738/1.095, allocations: 33.3 MB / 463.7 MB, free: 58.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009773/1.105, allocations: 2.279 MB / 465.9 MB, free: 57.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/1.105, allocations: 20.22 kB / 466 MB, free: 57.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/1.105, allocations: 44.56 kB / 466 MB, free: 57.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 5.961e-06/1.105, allocations: 0 / 466 MB, free: 57.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=106): time 0.03323/1.139, allocations: 8.718 MB / 474.7 MB, free: 53.47 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/1.139, allocations: 135.5 kB / 474.8 MB, free: 53.31 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004655/1.143, allocations: 2.54 MB / 477.4 MB, free: 52.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002386/1.144, allocations: 44.33 kB / 477.4 MB, free: 52.39 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001328/1.145, allocations: 2.054 MB / 479.5 MB, free: 50.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005025/1.145, allocations: 434.6 kB / 479.9 MB, free: 50.55 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002705/1.146, allocations: 85.92 kB / 480 MB, free: 50.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000258/1.146, allocations: 0.4921 MB / 480.5 MB, free: 50.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003263/1.149, allocations: 1.412 MB / 481.9 MB, free: 49.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004569/1.154, allocations: 4.203 MB / 486.1 MB, free: 45.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004981/1.159, allocations: 2.377 MB / 488.5 MB, free: 44.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.082e-05/1.159, allocations: 31.25 kB / 488.5 MB, free: 44.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.01596/1.175, allocations: 5.996 MB / 494.5 MB, free: 42.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.121e-05/1.175, allocations: 48.06 kB / 494.5 MB, free: 42.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/1.175, allocations: 99.38 kB / 494.6 MB, free: 42.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00381/1.179, allocations: 0.8057 MB / 495.5 MB, free: 42.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005439/1.184, allocations: 0.9907 MB / 496.4 MB, free: 42.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008058/1.193, allocations: 4.208 MB / 0.4889 GB, free: 39.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004702/1.197, allocations: 281 kB / 0.4892 GB, free: 39.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005222/1.198, allocations: 271.8 kB / 0.4894 GB, free: 38.95 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 15 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (528): * Single equations (assignments): 524 * Array equations: 3 * 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: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002535/1.2, allocations: 1.361 MB / 0.4908 GB, free: 37.74 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004839/1.201, allocations: 229 kB / 0.491 GB, free: 37.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005801/1.207, allocations: 1.852 MB / 0.4928 GB, free: 36.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-05/1.207, allocations: 13.33 kB / 0.4928 GB, free: 36.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/1.207, allocations: 8 kB / 0.4928 GB, free: 36.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/1.207, allocations: 3.656 kB / 0.4928 GB, free: 36.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01223/1.219, allocations: 4.812 MB / 0.4975 GB, free: 32.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/1.219, allocations: 4 kB / 0.4975 GB, free: 32.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/1.22, allocations: 136.1 kB / 0.4977 GB, free: 32.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003309/1.224, allocations: 0.6374 MB / 0.4983 GB, free: 31.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/1.224, allocations: 24.72 kB / 0.4983 GB, free: 31.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007032/1.231, allocations: 3.731 MB / 0.5019 GB, free: 28.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.231, allocations: 4.031 kB / 0.502 GB, free: 28.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008912/1.24, allocations: 3.778 MB / 0.5056 GB, free: 25.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/1.241, allocations: 442.9 kB / 0.5061 GB, free: 24.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000408/1.242, allocations: 24.73 kB / 0.5061 GB, free: 24.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001637/1.243, allocations: 73.45 kB / 0.5062 GB, free: 24.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002522/1.243, allocations: 51.08 kB / 0.5062 GB, free: 24.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/1.244, allocations: 32 kB / 0.5062 GB, free: 24.64 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00389/1.247, allocations: 1.767 MB / 0.508 GB, free: 22.96 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.248, allocations: 0 / 0.508 GB, free: 22.96 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00477/1.252, allocations: 0.6468 MB / 0.5086 GB, free: 22.32 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (75): * Single equations (assignments): 71 * Array equations: 3 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009252/1.262, allocations: 4.712 MB / 0.5132 GB, free: 17.56 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007526/1.269, allocations: 3.395 MB / 0.5165 GB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/1.269, allocations: 0 / 0.5165 GB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0018/1.271, allocations: 0.9402 MB / 0.5174 GB, free: 13.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/1.273, allocations: 237.4 kB / 0.5177 GB, free: 13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2992/1.572, allocations: 89.57 MB / 0.6051 GB, free: 37.76 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004504/1.577, allocations: 2.243 MB / 0.6073 GB, free: 37.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002726/1.579, allocations: 1.077 MB / 0.6084 GB, free: 37.01 MB / 362.7 MB Notification: Performance of SimCode: time 1.964e-06/1.58, allocations: 0 / 0.6084 GB, free: 37.01 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.647/5.227, allocations: 60.88 MB / 0.6678 GB, free: 7.164 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat