Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.834/1.834, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004699/0.0004701, allocations: 12 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09429, allocations: 44.49 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.419/0.5134, allocations: 86.77 MB / 395.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/0.5137, allocations: 92.67 kB / 395.4 MB, free: 14.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3305/0.8443, allocations: 82.51 MB / 477.9 MB, free: 9.301 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.8443, allocations: 0 / 477.9 MB, free: 9.301 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002924/0.8446, allocations: 71.94 kB / 478 MB, free: 9.23 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: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.01833/0.863, allocations: 4.329 MB / 482.3 MB, free: 4.859 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.863, allocations: 12.03 kB / 482.3 MB, free: 4.848 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003014/0.8661, allocations: 0.6584 MB / 483 MB, free: 4.203 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04974/0.9158, allocations: 6.617 MB / 489.6 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02205/0.9379, allocations: 5.843 MB / 495.4 MB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003808/0.9383, allocations: 272.4 kB / 495.7 MB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002104/0.9405, allocations: 369 kB / 496.1 MB, free: 7.176 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02706/0.9675, allocations: 9.089 MB / 0.4933 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002628/0.9678, allocations: 63.52 kB / 0.4934 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00119/0.969, allocations: 176.5 kB / 0.4935 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002097/0.9712, allocations: 0.8842 MB / 0.4944 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02408/0.9953, allocations: 7.596 MB / 0.5018 GB, free: 4.547 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3662/1.361, allocations: 42.18 MB / 0.543 GB, free: 65.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01406/1.376, allocations: 3.758 MB / 0.5467 GB, free: 64.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005387/1.376, allocations: 326.6 kB / 0.547 GB, free: 64.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/1.376, allocations: 58.39 kB / 0.5471 GB, free: 64.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 6.122e-06/1.376, allocations: 3.812 kB / 0.5471 GB, free: 64.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.08229/1.459, allocations: 19.49 MB / 0.5661 GB, free: 61.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.741e-05/1.459, allocations: 255.2 kB / 0.5663 GB, free: 60.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006625/1.465, allocations: 3.457 MB / 0.5697 GB, free: 60.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004998/1.466, allocations: 51.86 kB / 0.5698 GB, free: 60.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002067/1.468, allocations: 2.722 MB / 0.5724 GB, free: 59.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/1.469, allocations: 0.7236 MB / 0.5731 GB, free: 58.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004373/1.469, allocations: 105.4 kB / 0.5732 GB, free: 58.72 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003089/1.47, allocations: 0.5388 MB / 0.5738 GB, free: 58.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004431/1.474, allocations: 2.077 MB / 0.5758 GB, free: 58.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006154/1.48, allocations: 5.297 MB / 0.581 GB, free: 54.22 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006844/1.487, allocations: 3.27 MB / 0.5842 GB, free: 54.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.894e-05/1.487, allocations: 34.48 kB / 0.5842 GB, free: 54.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02193/1.509, allocations: 8.248 MB / 0.5922 GB, free: 51.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.36e-05/1.509, allocations: 55.66 kB / 0.5923 GB, free: 51.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001314/1.51, allocations: 112.5 kB / 0.5924 GB, free: 51.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006297/1.516, allocations: 1.386 MB / 0.5938 GB, free: 51.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007016/1.523, allocations: 1.217 MB / 0.5949 GB, free: 51.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01797/1.541, allocations: 8.712 MB / 0.6034 GB, free: 47.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006199/1.547, allocations: 315 kB / 0.6037 GB, free: 46.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/1.548, allocations: 327.5 kB / 0.6041 GB, free: 46.92 MB / 410.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.004586/1.553, allocations: 1.945 MB / 0.606 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009109/1.554, allocations: 360.1 kB / 0.6063 GB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01131/1.565, allocations: 3.912 MB / 0.6101 GB, free: 44.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-05/1.565, allocations: 22.5 kB / 0.6101 GB, free: 44.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/1.565, allocations: 6.875 kB / 0.6102 GB, free: 44.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.22e-05/1.565, allocations: 6.562 kB / 0.6102 GB, free: 44.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02329/1.589, allocations: 8.923 MB / 0.6189 GB, free: 38.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/1.589, allocations: 0 / 0.6189 GB, free: 38.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002389/1.591, allocations: 259.1 kB / 0.6191 GB, free: 37.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005909/1.597, allocations: 1.224 MB / 0.6203 GB, free: 37.08 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003434/1.598, allocations: 28.55 kB / 0.6203 GB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01622/1.614, allocations: 7.86 MB / 0.628 GB, free: 30.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.614, allocations: 0 / 0.628 GB, free: 30.22 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01562/1.629, allocations: 6.822 MB / 0.6347 GB, free: 24.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002105/1.632, allocations: 0.6726 MB / 0.6353 GB, free: 23.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006761/1.632, allocations: 28 kB / 0.6354 GB, free: 23.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002436/1.635, allocations: 119.5 kB / 0.6355 GB, free: 23.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004777/1.635, allocations: 104.5 kB / 0.6356 GB, free: 23.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001932/1.635, allocations: 52.22 kB / 0.6356 GB, free: 23.49 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004914/1.64, allocations: 2.452 MB / 0.638 GB, free: 21.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.02e-07/1.64, allocations: 0 / 0.638 GB, free: 21.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006176/1.647, allocations: 0.9947 MB / 0.639 GB, free: 20.5 MB / 410.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.01636/1.663, allocations: 7.737 MB / 0.6465 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0114/1.674, allocations: 5.185 MB / 0.6516 GB, free: 9.137 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.674, allocations: 4 kB / 0.6516 GB, free: 9.133 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004807/1.679, allocations: 1.976 MB / 0.6535 GB, free: 7.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003613/1.683, allocations: 442.6 kB / 0.654 GB, free: 7.035 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3815/2.064, allocations: 112.6 MB / 0.7639 GB, free: 42.92 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006437/2.071, allocations: 3.166 MB / 0.767 GB, free: 42.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004326/2.075, allocations: 1.803 MB / 0.7687 GB, free: 42.14 MB / 442.7 MB Notification: Performance of SimCode: time 1.823e-06/2.075, allocations: 3.5 kB / 0.7687 GB, free: 42.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.553/6.629, allocations: 94.53 MB / 0.8611 GB, free: 114.1 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat