Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.594e-05, allocations: 4 kB / 269.4 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09681, allocations: 47.59 MB / 317 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4242/0.5211, allocations: 92.21 MB / 409.2 MB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.5214, allocations: 85.64 kB / 409.3 MB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3548/0.8762, allocations: 83.07 MB / 492.4 MB, free: 15.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.8763, allocations: 0 / 492.4 MB, free: 15.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000327/0.8766, allocations: 76 kB / 492.5 MB, free: 15.52 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01701/0.8936, allocations: 3.964 MB / 496.4 MB, free: 11.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/0.8937, allocations: 15.97 kB / 496.4 MB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003217/0.8969, allocations: 0.6595 MB / 497.1 MB, free: 10.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05006/0.9471, allocations: 6.621 MB / 0.4919 GB, free: 4.172 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02252/0.9696, allocations: 5.839 MB / 0.4976 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004116/0.9701, allocations: 270.9 kB / 0.4979 GB, free: 14.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002125/0.9722, allocations: 367.7 kB / 0.4982 GB, free: 13.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04067/1.013, allocations: 8.999 MB / 0.507 GB, free: 3.738 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004104/1.018, allocations: 55.47 kB / 0.5071 GB, free: 3.684 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001887/1.02, allocations: 175.9 kB / 0.5072 GB, free: 3.512 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002811/1.022, allocations: 0.8923 MB / 0.5081 GB, free: 2.621 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3122/1.335, allocations: 7.319 MB / 0.5153 GB, free: 98.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05945/1.394, allocations: 42.3 MB / 0.5566 GB, free: 73.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01322/1.407, allocations: 3.71 MB / 0.5602 GB, free: 72.44 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003503/1.411, allocations: 1.947 MB / 0.5621 GB, free: 72.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005299/1.412, allocations: 326.5 kB / 0.5624 GB, free: 72.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.11e-05/1.412, allocations: 50.59 kB / 0.5625 GB, free: 72.01 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 5.631e-06/1.412, allocations: 0 / 0.5625 GB, free: 72.01 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.0774/1.489, allocations: 17.21 MB / 0.5793 GB, free: 66.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.842e-05/1.489, allocations: 254.6 kB / 0.5795 GB, free: 66.03 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007271/1.496, allocations: 3.452 MB / 0.5829 GB, free: 64.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005298/1.497, allocations: 55.11 kB / 0.5829 GB, free: 64.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002543/1.5, allocations: 2.834 MB / 0.5857 GB, free: 62.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001123/1.501, allocations: 0.7184 MB / 0.5864 GB, free: 62.22 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006035/1.501, allocations: 107.6 kB / 0.5865 GB, free: 62.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003485/1.502, allocations: 0.5331 MB / 0.587 GB, free: 61.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004672/1.506, allocations: 2.04 MB / 0.589 GB, free: 61.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006785/1.513, allocations: 5.253 MB / 0.5941 GB, free: 56.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007007/1.52, allocations: 3.268 MB / 0.5973 GB, free: 54.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.644e-05/1.521, allocations: 32.09 kB / 0.5974 GB, free: 54.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.02301/1.544, allocations: 8.03 MB / 0.6052 GB, free: 51.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.967e-05/1.544, allocations: 58.03 kB / 0.6053 GB, free: 51.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001402/1.544, allocations: 112 kB / 0.6054 GB, free: 51.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006534/1.55, allocations: 1.378 MB / 0.6067 GB, free: 50.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007653/1.558, allocations: 1.224 MB / 0.6079 GB, free: 49.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01737/1.576, allocations: 8.399 MB / 0.6161 GB, free: 42.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006563/1.582, allocations: 316.4 kB / 0.6164 GB, free: 42.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001342/1.584, allocations: 335.2 kB / 0.6167 GB, free: 41.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * Number of states: 0 () * Number of discrete variables: 30 (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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (653): * Single equations (assignments): 649 * 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.001583/1.585, allocations: 0.5106 MB / 0.6172 GB, free: 41.26 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009525/1.586, allocations: 359.4 kB / 0.6176 GB, free: 40.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/1.598, allocations: 3.892 MB / 0.6214 GB, free: 37.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.017e-05/1.599, allocations: 25 kB / 0.6214 GB, free: 37.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/1.599, allocations: 8 kB / 0.6214 GB, free: 37.78 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.507e-05/1.599, allocations: 10.89 kB / 0.6214 GB, free: 37.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02525/1.624, allocations: 8.89 MB / 0.6301 GB, free: 30.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.09e-05/1.624, allocations: 0 / 0.6301 GB, free: 30.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002564/1.627, allocations: 271.9 kB / 0.6304 GB, free: 30.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006245/1.633, allocations: 1.214 MB / 0.6315 GB, free: 29.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004646/1.633, allocations: 36 kB / 0.6316 GB, free: 29.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01595/1.649, allocations: 7.538 MB / 0.6389 GB, free: 22.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.649, allocations: 8 kB / 0.639 GB, free: 22.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01661/1.666, allocations: 6.759 MB / 0.6456 GB, free: 16.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002394/1.668, allocations: 0.6795 MB / 0.6462 GB, free: 16.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009848/1.669, allocations: 35.52 kB / 0.6462 GB, free: 16.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003021/1.672, allocations: 107.1 kB / 0.6464 GB, free: 16.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005315/1.673, allocations: 121.9 kB / 0.6465 GB, free: 16.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/1.673, allocations: 48 kB / 0.6465 GB, free: 16.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005529/1.679, allocations: 2.437 MB / 0.6489 GB, free: 13.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.679, allocations: 0 / 0.6489 GB, free: 13.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00737/1.686, allocations: 0.9997 MB / 0.6499 GB, free: 12.6 MB / 426.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 () * 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.01771/1.704, allocations: 7.703 MB / 0.6574 GB, free: 4.844 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01127/1.715, allocations: 4.946 MB / 0.6622 GB, free: 15.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.715, allocations: 0 / 0.6622 GB, free: 15.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005796/1.721, allocations: 1.922 MB / 0.6641 GB, free: 13.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003975/1.725, allocations: 446.4 kB / 0.6645 GB, free: 13.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02937/1.755, allocations: 8.822 MB / 0.6731 GB, free: 4.688 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007106/1.762, allocations: 3.182 MB / 0.6762 GB, free: 1.496 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.2921/2.054, allocations: 1.819 MB / 0.678 GB, free: 104.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004638/2.059, allocations: 1.772 MB / 0.6798 GB, free: 104.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.854e-06/2.059, allocations: 0 / 0.6798 GB, free: 104.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1859/2.245, allocations: 78.83 MB / 0.7567 GB, free: 77.92 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/2.245, allocations: 185.4 kB / 0.7569 GB, free: 77.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.149/7.394, allocations: 0 / 0.7569 GB, free: 77.7 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat