Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Prismatic,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Prismatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.857/1.857, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.59e-05, allocations: 0 / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 48.7 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4155/0.517, allocations: 88.27 MB / 404.6 MB, free: 4.184 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/0.5173, allocations: 77.58 kB / 404.7 MB, free: 4.145 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3644/0.8817, allocations: 83.15 MB / 487.8 MB, free: 4.309 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.8818, allocations: 0 / 487.8 MB, free: 4.309 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002007/0.882, allocations: 68 kB / 487.9 MB, free: 4.242 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: 1554 * Number of variables: 1554 Notification: Performance of Generate backend data structure: time 0.01342/0.8954, allocations: 3.51 MB / 491.4 MB, free: 0.668 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.8955, allocations: 8.031 kB / 491.4 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2924/1.188, allocations: 3.5 MB / 494.9 MB, free: 93.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01722/1.205, allocations: 4.179 MB / 499.1 MB, free: 93.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003283/1.206, allocations: 130.3 kB / 499.2 MB, free: 93.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002587/1.208, allocations: 228.9 kB / 499.4 MB, free: 93.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01783/1.226, allocations: 7.027 MB / 0.4946 GB, free: 93.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02516/1.251, allocations: 9.205 MB / 0.5036 GB, free: 92.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002293/1.252, allocations: 22 kB / 0.5036 GB, free: 92.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002231/1.254, allocations: 15.59 kB / 0.5036 GB, free: 92.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002748/1.257, allocations: 1.166 MB / 0.5047 GB, free: 92.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05974/1.316, allocations: 29.71 MB / 0.5338 GB, free: 76.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00456/1.321, allocations: 2.944 MB / 0.5366 GB, free: 74.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002165/1.323, allocations: 1.031 MB / 0.5376 GB, free: 74.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001497/1.325, allocations: 1.308 MB / 0.5389 GB, free: 73.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/1.325, allocations: 57.48 kB / 0.539 GB, free: 73.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=189): time 5.74e-06/1.325, allocations: 3.906 kB / 0.539 GB, free: 73.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=195): time 0.02658/1.352, allocations: 8.008 MB / 0.5468 GB, free: 70.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/1.352, allocations: 92.83 kB / 0.5469 GB, free: 70.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00479/1.356, allocations: 2.237 MB / 0.5491 GB, free: 69.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003527/1.357, allocations: 25.7 kB / 0.5491 GB, free: 69.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002131/1.359, allocations: 2.833 MB / 0.5519 GB, free: 66.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/1.36, allocations: 0.7135 MB / 0.5526 GB, free: 66.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005189/1.361, allocations: 0 / 0.5526 GB, free: 66.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004099/1.361, allocations: 0.5356 MB / 0.5531 GB, free: 65.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00351/1.365, allocations: 1.487 MB / 0.5545 GB, free: 65.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005362/1.37, allocations: 4.609 MB / 0.559 GB, free: 60.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005731/1.376, allocations: 2.684 MB / 0.5617 GB, free: 58.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/1.376, allocations: 32 kB / 0.5617 GB, free: 58.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01413/1.39, allocations: 5.446 MB / 0.567 GB, free: 54.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.162e-05/1.39, allocations: 55.95 kB / 0.5671 GB, free: 54.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001654/1.39, allocations: 116.5 kB / 0.5672 GB, free: 53.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004787/1.391, allocations: 203.9 kB / 0.5674 GB, free: 53.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006987/1.398, allocations: 1.179 MB / 0.5685 GB, free: 52.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001744/1.4, allocations: 1.628 MB / 0.5701 GB, free: 51.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004603/1.404, allocations: 125.5 kB / 0.5702 GB, free: 50.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001164/1.406, allocations: 320.8 kB / 0.5705 GB, free: 50.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 509 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (648): * Single equations (assignments): 641 * Array equations: 6 * 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 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001825/1.407, allocations: 380.4 kB / 0.5709 GB, free: 50.28 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005241/1.413, allocations: 2.138 MB / 0.573 GB, free: 48.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007689/1.413, allocations: 252.6 kB / 0.5732 GB, free: 48.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00628/1.42, allocations: 2.437 MB / 0.5756 GB, free: 46.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-05/1.42, allocations: 24.66 kB / 0.5756 GB, free: 46.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/1.42, allocations: 0 / 0.5756 GB, free: 46.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-05/1.42, allocations: 9.469 kB / 0.5756 GB, free: 46.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0184/1.438, allocations: 6.923 MB / 0.5824 GB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.976e-05/1.438, allocations: 8 kB / 0.5824 GB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002184/1.441, allocations: 262.9 kB / 0.5826 GB, free: 39.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002726/1.441, allocations: 60.48 kB / 0.5827 GB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003087/1.441, allocations: 27.28 kB / 0.5827 GB, free: 39.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/1.443, allocations: 1.434 MB / 0.5841 GB, free: 38.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.536e-05/1.443, allocations: 15.94 kB / 0.5841 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007774/1.451, allocations: 4.856 MB / 0.5889 GB, free: 33.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001688/1.452, allocations: 0.5017 MB / 0.5894 GB, free: 32.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007503/1.453, allocations: 19.7 kB / 0.5894 GB, free: 32.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00181/1.455, allocations: 30.73 kB / 0.5894 GB, free: 32.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004396/1.455, allocations: 133.5 kB / 0.5896 GB, free: 32.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/1.456, allocations: 60 kB / 0.5896 GB, free: 32.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003205/1.459, allocations: 1.465 MB / 0.591 GB, free: 31.37 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.459, allocations: 0 / 0.591 GB, free: 31.37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005883/1.465, allocations: 0.7085 MB / 0.5917 GB, free: 30.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 2 (prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 137 * Array equations: 6 * 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 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008792/1.474, allocations: 8.334 MB / 0.5999 GB, free: 22.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007799/1.481, allocations: 3.706 MB / 0.6035 GB, free: 19.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/1.482, allocations: 0 / 0.6035 GB, free: 19.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002387/1.484, allocations: 1.193 MB / 0.6047 GB, free: 17.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002105/1.486, allocations: 216.9 kB / 0.6049 GB, free: 17.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02905/1.515, allocations: 8.78 MB / 0.6134 GB, free: 9.473 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009904/1.525, allocations: 3.276 MB / 0.6166 GB, free: 6.184 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005649/1.531, allocations: 1.808 MB / 0.6184 GB, free: 4.375 MB / 410.7 MB Notification: Performance of SimCode: time 2.014e-06/1.531, allocations: 0 / 0.6184 GB, free: 4.375 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.368/5.899, allocations: 85.67 MB / 0.7021 GB, free: 75.12 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Prismatic_res.mat does not exist to compare? outputFormat=mat