Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.04/2.04, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.657e-05/3.663e-05, allocations: 0 / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 48.69 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4465/0.5546, allocations: 96.08 MB / 417.9 MB, free: 9.703 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.5549, allocations: 75.91 kB / 418 MB, free: 9.629 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8089/1.364, allocations: 126.4 MB / 0.5316 GB, free: 90.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.084e-06/1.364, allocations: 3.688 kB / 0.5316 GB, free: 90.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003876/1.364, allocations: 111.9 kB / 0.5317 GB, free: 90.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.0269/1.391, allocations: 6.335 MB / 0.5379 GB, free: 88.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/1.391, allocations: 15.31 kB / 0.5379 GB, free: 88.4 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006489/1.398, allocations: 1.304 MB / 0.5392 GB, free: 88.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0601/1.458, allocations: 8.321 MB / 0.5473 GB, free: 87.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02701/1.485, allocations: 7.363 MB / 0.5545 GB, free: 86.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005981/1.486, allocations: 452.9 kB / 0.555 GB, free: 86.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004032/1.49, allocations: 0.5828 MB / 0.5555 GB, free: 86.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04672/1.536, allocations: 15.54 MB / 0.5707 GB, free: 79.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004086/1.537, allocations: 69.97 kB / 0.5708 GB, free: 79.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00337/1.54, allocations: 287.4 kB / 0.571 GB, free: 79.35 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003484/1.544, allocations: 1.615 MB / 0.5726 GB, free: 79.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04041/1.584, allocations: 13.57 MB / 0.5859 GB, free: 67.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1023/1.687, allocations: 64 MB / 0.6484 GB, free: 2.793 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.325/2.012, allocations: 6.39 MB / 0.6546 GB, free: 82.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008279/2.02, allocations: 3.524 MB / 0.6581 GB, free: 82.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03891/2.059, allocations: 14.44 MB / 0.6722 GB, free: 78.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.211e-05/2.059, allocations: 61.5 kB / 0.6722 GB, free: 78.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=289): time 7.154e-06/2.059, allocations: 0 / 0.6722 GB, free: 78.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1554/2.215, allocations: 29.78 MB / 0.7013 GB, free: 72.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.772e-05/2.215, allocations: 212.8 kB / 0.7015 GB, free: 72.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01188/2.227, allocations: 4.78 MB / 0.7062 GB, free: 70.51 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009512/2.228, allocations: 72.94 kB / 0.7062 GB, free: 70.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003796/2.231, allocations: 4.287 MB / 0.7104 GB, free: 67.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002198/2.234, allocations: 1.247 MB / 0.7116 GB, free: 66.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001423/2.235, allocations: 176.9 kB / 0.7118 GB, free: 66.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007401/2.236, allocations: 0.6849 MB / 0.7125 GB, free: 65.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01081/2.247, allocations: 4.483 MB / 0.7169 GB, free: 63.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01403/2.261, allocations: 9.375 MB / 0.726 GB, free: 55.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01412/2.275, allocations: 6.407 MB / 0.7323 GB, free: 53.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001904/2.275, allocations: 49.19 kB / 0.7323 GB, free: 53.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.07046/2.346, allocations: 17.9 MB / 0.7498 GB, free: 43.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/2.346, allocations: 84.06 kB / 0.7499 GB, free: 43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001916/2.346, allocations: 175.9 kB / 0.75 GB, free: 42.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03947/2.386, allocations: 5.622 MB / 0.7555 GB, free: 39.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01341/2.399, allocations: 2.061 MB / 0.7575 GB, free: 37.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04637/2.445, allocations: 23.63 MB / 0.7806 GB, free: 16.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01161/2.457, allocations: 0.5404 MB / 0.7812 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002131/2.459, allocations: 0.5006 MB / 0.7816 GB, free: 15.47 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1058): * Single equations (assignments): 1050 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002662/2.462, allocations: 0.7517 MB / 0.7824 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001474/2.463, allocations: 0.4975 MB / 0.7829 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05241/2.516, allocations: 12.34 MB / 0.7949 GB, free: 1.801 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001191/2.516, allocations: 57.23 kB / 0.795 GB, free: 1.746 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.236e-05/2.516, allocations: 12.75 kB / 0.795 GB, free: 1.734 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.011e-05/2.516, allocations: 12.7 kB / 0.795 GB, free: 1.723 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4059/2.922, allocations: 23.95 MB / 0.8184 GB, free: 84.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-05/2.922, allocations: 8.672 kB / 0.8184 GB, free: 84.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006165/2.928, allocations: 0.5751 MB / 0.819 GB, free: 84.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03561/2.964, allocations: 4.645 MB / 0.8235 GB, free: 84.88 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009145/2.965, allocations: 59.92 kB / 0.8235 GB, free: 84.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03963/3.005, allocations: 18.91 MB / 0.842 GB, free: 82.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.278e-06/3.005, allocations: 10.66 kB / 0.842 GB, free: 82.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05746/3.062, allocations: 17.38 MB / 0.859 GB, free: 75.99 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004487/3.067, allocations: 1.226 MB / 0.8602 GB, free: 75.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001902/3.069, allocations: 58.88 kB / 0.8603 GB, free: 75.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006524/3.075, allocations: 253 kB / 0.8605 GB, free: 75.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001411/3.077, allocations: 188.2 kB / 0.8607 GB, free: 75.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005346/3.077, allocations: 90.23 kB / 0.8608 GB, free: 75.48 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00841/3.086, allocations: 3.306 MB / 0.864 GB, free: 74.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.042e-06/3.086, allocations: 1.312 kB / 0.864 GB, free: 74.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01112/3.097, allocations: 1.715 MB / 0.8657 GB, free: 74.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05947/3.156, allocations: 19.09 MB / 0.8843 GB, free: 66.08 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02309/3.18, allocations: 10.11 MB / 0.8942 GB, free: 62.67 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/3.18, allocations: 9.75 kB / 0.8942 GB, free: 62.67 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009127/3.189, allocations: 3.913 MB / 0.898 GB, free: 61.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00542/3.194, allocations: 0.5745 MB / 0.8986 GB, free: 60.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04815/3.242, allocations: 16.27 MB / 0.9145 GB, free: 47.35 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01036/3.253, allocations: 4.761 MB / 0.9191 GB, free: 43.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007932/3.261, allocations: 2.962 MB / 0.922 GB, free: 41.07 MB / 442.7 MB Notification: Performance of SimCode: time 1.834e-06/3.261, allocations: 2.531 kB / 0.922 GB, free: 41.07 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.576/8.836, allocations: 179.1 MB / 1.097 GB, free: 31.71 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat