Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.212/2.212, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003598, allocations: 11.98 kB / 264.1 MB, free: 3.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3087, allocations: 44.51 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1629/0.4717, allocations: 86.77 MB / 395.3 MB, free: 5.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003606/0.4721, allocations: 87.95 kB / 395.4 MB, free: 5.684 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6604/1.133, allocations: 82.52 MB / 477.9 MB, free: 46.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.133, allocations: 0 / 477.9 MB, free: 46.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002809/1.133, allocations: 76 kB / 478 MB, free: 46.45 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: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.01752/1.15, allocations: 4.328 MB / 482.4 MB, free: 42.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/1.15, allocations: 12.03 kB / 482.4 MB, free: 42.04 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002961/1.153, allocations: 0.6603 MB / 483 MB, free: 41.37 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0469/1.2, allocations: 6.609 MB / 489.6 MB, free: 34.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02038/1.221, allocations: 5.85 MB / 495.5 MB, free: 28.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000301/1.221, allocations: 263 kB / 495.7 MB, free: 28.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001984/1.223, allocations: 363.7 kB / 496.1 MB, free: 28.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02478/1.248, allocations: 9.089 MB / 0.4933 GB, free: 18.22 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002794/1.248, allocations: 55.47 kB / 0.4934 GB, free: 18.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001602/1.25, allocations: 175.9 kB / 0.4936 GB, free: 17.99 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001894/1.252, allocations: 0.8885 MB / 0.4944 GB, free: 17.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02161/1.274, allocations: 7.592 MB / 0.5018 GB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07172/1.345, allocations: 42.2 MB / 0.5431 GB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0153/1.361, allocations: 3.758 MB / 0.5467 GB, free: 9.992 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007117/1.361, allocations: 324.2 kB / 0.547 GB, free: 9.621 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.106e-05/1.362, allocations: 55.88 kB / 0.5471 GB, free: 9.559 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 6.723e-06/1.362, allocations: 0 / 0.5471 GB, free: 9.559 MB / 394.7 MB Notification: Performance of matching and sorting (n=189): time 0.3677/1.729, allocations: 19.49 MB / 0.5661 GB, free: 95.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/1.729, allocations: 247.8 kB / 0.5664 GB, free: 95.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007811/1.737, allocations: 3.461 MB / 0.5697 GB, free: 95.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005051/1.738, allocations: 57.17 kB / 0.5698 GB, free: 95.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002649/1.74, allocations: 2.826 MB / 0.5726 GB, free: 93.92 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0012/1.742, allocations: 0.7153 MB / 0.5732 GB, free: 93.51 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006241/1.742, allocations: 105.7 kB / 0.5733 GB, free: 93.51 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003444/1.743, allocations: 0.5369 MB / 0.5739 GB, free: 93.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004832/1.748, allocations: 2.079 MB / 0.5759 GB, free: 93.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007013/1.755, allocations: 5.302 MB / 0.5811 GB, free: 89.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007441/1.762, allocations: 3.273 MB / 0.5843 GB, free: 88.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000107/1.762, allocations: 29.22 kB / 0.5843 GB, free: 88.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02375/1.786, allocations: 8.389 MB / 0.5925 GB, free: 85.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/1.786, allocations: 51.94 kB / 0.5925 GB, free: 85.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001877/1.786, allocations: 118.1 kB / 0.5927 GB, free: 85.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006753/1.793, allocations: 1.38 MB / 0.594 GB, free: 85.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007422/1.801, allocations: 1.221 MB / 0.5952 GB, free: 85.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01846/1.819, allocations: 8.71 MB / 0.6037 GB, free: 81.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006529/1.826, allocations: 312.9 kB / 0.604 GB, free: 81.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001328/1.827, allocations: 338 kB / 0.6043 GB, free: 81.21 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 27 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (650): * Single equations (assignments): 646 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005373/1.832, allocations: 1.933 MB / 0.6062 GB, free: 80.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001078/1.834, allocations: 349.7 kB / 0.6065 GB, free: 80.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01243/1.846, allocations: 3.913 MB / 0.6104 GB, free: 78.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.407e-05/1.846, allocations: 24.83 kB / 0.6104 GB, free: 78.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.908e-05/1.846, allocations: 11.94 kB / 0.6104 GB, free: 78.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.694e-05/1.846, allocations: 11.28 kB / 0.6104 GB, free: 78.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02591/1.872, allocations: 8.916 MB / 0.6191 GB, free: 70.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-05/1.872, allocations: 0 / 0.6191 GB, free: 70.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002451/1.875, allocations: 266.4 kB / 0.6194 GB, free: 70.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00631/1.881, allocations: 1.222 MB / 0.6206 GB, free: 69.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005725/1.882, allocations: 28 kB / 0.6206 GB, free: 69.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01693/1.899, allocations: 7.863 MB / 0.6283 GB, free: 63 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.899, allocations: 4 kB / 0.6283 GB, free: 63 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0168/1.916, allocations: 6.811 MB / 0.6349 GB, free: 57.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002564/1.918, allocations: 0.6758 MB / 0.6356 GB, free: 56.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009658/1.919, allocations: 28 kB / 0.6356 GB, free: 56.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002885/1.922, allocations: 115.8 kB / 0.6357 GB, free: 56.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004544/1.923, allocations: 111.5 kB / 0.6358 GB, free: 56.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000198/1.923, allocations: 46.86 kB / 0.6359 GB, free: 56.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005549/1.928, allocations: 2.454 MB / 0.6383 GB, free: 54.29 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.928, allocations: 3.844 kB / 0.6383 GB, free: 54.29 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00673/1.935, allocations: 1.007 MB / 0.6393 GB, free: 53.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (135): * Single equations (assignments): 131 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01677/1.952, allocations: 7.745 MB / 0.6468 GB, free: 46.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01105/1.963, allocations: 5.162 MB / 0.6519 GB, free: 41.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/1.963, allocations: 7.812 kB / 0.6519 GB, free: 41.94 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004963/1.968, allocations: 1.982 MB / 0.6538 GB, free: 40.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003628/1.972, allocations: 443.3 kB / 0.6542 GB, free: 39.84 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3903/2.362, allocations: 112 MB / 0.7636 GB, free: 61.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007055/2.369, allocations: 3.168 MB / 0.7667 GB, free: 60.33 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00849/2.378, allocations: 1.822 MB / 0.7685 GB, free: 60.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004397/2.382, allocations: 1.763 MB / 0.7702 GB, free: 60.28 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/2.382, allocations: 0 / 0.7702 GB, free: 60.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2424/2.625, allocations: 79.08 MB / 0.8474 GB, free: 1.484 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002104/2.625, allocations: 216.6 kB / 0.8477 GB, free: 1.246 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.005/8.63, allocations: 4 kB / 0.8477 GB, free: 1.242 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat