Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.445/2.445, allocations: 270 MB / 283.6 MB, free: 3.113 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.646e-05/4.663e-05, allocations: 4 kB / 348.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1675, allocations: 61.89 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5485/0.716, allocations: 111.2 MB / 0.5093 GB, free: 8.828 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003924/0.7165, allocations: 75.95 kB / 0.5094 GB, free: 8.754 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9875/1.704, allocations: 128.6 MB / 0.635 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.705e-06/1.704, allocations: 1.094 kB / 0.635 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004257/1.705, allocations: 114.5 kB / 0.6351 GB, free: 111.5 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02802/1.733, allocations: 6.335 MB / 0.6413 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/1.733, allocations: 7.906 kB / 0.6413 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006585/1.739, allocations: 1.308 MB / 0.6426 GB, free: 109 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06047/1.8, allocations: 8.323 MB / 0.6507 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02673/1.827, allocations: 7.06 MB / 0.6576 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005929/1.827, allocations: 456.1 kB / 0.658 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003953/1.831, allocations: 0.589 MB / 0.6586 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04861/1.88, allocations: 15.55 MB / 0.6738 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004602/1.88, allocations: 75.53 kB / 0.6739 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003731/1.884, allocations: 284.6 kB / 0.6741 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003586/1.888, allocations: 1.614 MB / 0.6757 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04034/1.928, allocations: 13.58 MB / 0.689 GB, free: 98.97 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1213/2.05, allocations: 64.07 MB / 0.7515 GB, free: 43.76 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03138/2.081, allocations: 6.373 MB / 0.7578 GB, free: 38.01 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007231/2.088, allocations: 3.527 MB / 0.7612 GB, free: 34.76 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03721/2.126, allocations: 14.4 MB / 0.7753 GB, free: 19.98 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/2.126, allocations: 64.5 kB / 0.7753 GB, free: 19.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=289): time 7.254e-06/2.126, allocations: 0 / 0.7753 GB, free: 19.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=339): time 0.2099/2.336, allocations: 29.67 MB / 0.8043 GB, free: 6.219 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/2.336, allocations: 210 kB / 0.8045 GB, free: 5.969 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01299/2.349, allocations: 4.772 MB / 0.8092 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009503/2.35, allocations: 77.61 kB / 0.8092 GB, free: 1.137 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.3852/2.735, allocations: 4.418 MB / 0.8136 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002556/2.738, allocations: 1.255 MB / 0.8148 GB, free: 116.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/2.74, allocations: 176.8 kB / 0.815 GB, free: 116.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001233/2.741, allocations: 0.6829 MB / 0.8156 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01339/2.754, allocations: 4.487 MB / 0.82 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02134/2.776, allocations: 9.398 MB / 0.8292 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02554/2.801, allocations: 6.425 MB / 0.8355 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000608/2.802, allocations: 50.09 kB / 0.8355 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.09454/2.897, allocations: 18.08 MB / 0.8532 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001756/2.897, allocations: 85.59 kB / 0.8532 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002677/2.897, allocations: 173.2 kB / 0.8534 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03938/2.936, allocations: 5.636 MB / 0.8589 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0139/2.95, allocations: 2.061 MB / 0.8609 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04839/2.999, allocations: 23.62 MB / 0.884 GB, free: 96.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01222/3.011, allocations: 0.5431 MB / 0.8845 GB, free: 95.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002575/3.014, allocations: 0.5053 MB / 0.885 GB, free: 95.82 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 793 * Number of states: 0 () * Number of discrete variables: 45 (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.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 (1061): * Single equations (assignments): 1053 * 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.004225/3.018, allocations: 0.7592 MB / 0.8857 GB, free: 95.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001563/3.02, allocations: 0.4961 MB / 0.8862 GB, free: 95.02 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0548/3.074, allocations: 12.35 MB / 0.8983 GB, free: 91.17 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001254/3.075, allocations: 57.69 kB / 0.8983 GB, free: 91.17 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-05/3.075, allocations: 7.188 kB / 0.8984 GB, free: 91.17 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.493e-05/3.075, allocations: 18.72 kB / 0.8984 GB, free: 91.16 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08341/3.158, allocations: 23.95 MB / 0.9218 GB, free: 78.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.498e-05/3.158, allocations: 4 kB / 0.9218 GB, free: 78.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005847/3.164, allocations: 0.5749 MB / 0.9223 GB, free: 77.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03435/3.199, allocations: 4.65 MB / 0.9269 GB, free: 74.89 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000933/3.2, allocations: 57.12 kB / 0.9269 GB, free: 74.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03877/3.238, allocations: 18.92 MB / 0.9454 GB, free: 56.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/3.238, allocations: 11.94 kB / 0.9454 GB, free: 56.67 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05758/3.296, allocations: 17.37 MB / 0.9624 GB, free: 39.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001846/3.298, allocations: 0.5336 MB / 0.9629 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002142/3.3, allocations: 52.86 kB / 0.9629 GB, free: 38.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006388/3.306, allocations: 256.7 kB / 0.9632 GB, free: 38.18 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001325/3.308, allocations: 189.6 kB / 0.9634 GB, free: 38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004469/3.308, allocations: 93.42 kB / 0.9635 GB, free: 37.91 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008205/3.317, allocations: 3.298 MB / 0.9667 GB, free: 34.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.32e-07/3.317, allocations: 0 / 0.9667 GB, free: 34.63 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01176/3.328, allocations: 1.709 MB / 0.9684 GB, free: 32.93 MB / 0.5261 GB 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.07134/3.4, allocations: 19.1 MB / 0.987 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0343/3.434, allocations: 10.12 MB / 0.9969 GB, free: 3.461 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.644e-05/3.434, allocations: 0 / 0.9969 GB, free: 3.461 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01053/3.445, allocations: 3.9 MB / 1.001 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005693/3.45, allocations: 0.584 MB / 1.001 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4375/3.888, allocations: 15.55 MB / 1.016 GB, free: 123.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01433/3.902, allocations: 4.754 MB / 1.021 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01598/3.918, allocations: 2.994 MB / 1.024 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008795/3.927, allocations: 2.918 MB / 1.027 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.734e-06/3.927, allocations: 0 / 1.027 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2872/4.214, allocations: 134.3 MB / 1.158 GB, free: 44.65 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002406/4.215, allocations: 186.2 kB / 1.158 GB, free: 44.42 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/11.86, allocations: 0 / 1.158 GB, free: 44.42 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat