Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.433/2.433, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.708e-05/3.717e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.3983, allocations: 54.85 MB / 359.9 MB, free: 2.707 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2277/0.6261, allocations: 97.13 MB / 457 MB, free: 15.82 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.6264, allocations: 79.95 kB / 457.1 MB, free: 15.74 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1496/0.7761, allocations: 33.22 MB / 490.3 MB, free: 14.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.559e-06/0.7761, allocations: 3.984 kB / 490.3 MB, free: 14.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001176/0.7763, allocations: 32 kB / 490.3 MB, free: 14.4 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: 430 * Number of variables: 430 Notification: Performance of Generate backend data structure: time 0.005748/0.782, allocations: 1.648 MB / 492 MB, free: 12.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.7821, allocations: 12.03 kB / 492 MB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007554/0.7829, allocations: 244.8 kB / 492.2 MB, free: 12.44 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003443/0.7863, allocations: 397.5 kB / 492.6 MB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01203/0.7984, allocations: 2.908 MB / 495.5 MB, free: 9.098 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.7986, allocations: 102.8 kB / 495.6 MB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005322/0.7991, allocations: 148.2 kB / 495.8 MB, free: 8.852 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009733/0.8089, allocations: 2.867 MB / 498.6 MB, free: 5.758 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.332e-05/0.809, allocations: 11.88 kB / 498.6 MB, free: 5.746 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002623/0.8093, allocations: 63.98 kB / 498.7 MB, free: 5.684 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008021/0.8101, allocations: 266 kB / 499 MB, free: 5.422 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008471/0.8186, allocations: 2.03 MB / 0.4893 GB, free: 3.387 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02133/0.84, allocations: 11.27 MB / 0.5003 GB, free: 7.797 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006376/0.8464, allocations: 1.068 MB / 0.5013 GB, free: 6.715 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009362/0.8474, allocations: 363.4 kB / 0.5016 GB, free: 6.355 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005754/0.8532, allocations: 2.63 MB / 0.5042 GB, free: 3.531 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.111e-05/0.8533, allocations: 46.5 kB / 0.5043 GB, free: 3.477 MB / 442.7 MB Notification: Performance of pre-optimization done (n=44): time 3.627e-06/0.8533, allocations: 0 / 0.5043 GB, free: 3.477 MB / 442.7 MB Notification: Performance of matching and sorting (n=50): time 0.0195/0.8728, allocations: 3.151 MB / 0.5073 GB, free: 228 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.873, allocations: 85.55 kB / 0.5074 GB, free: 124 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002297/0.8753, allocations: 1.036 MB / 0.5084 GB, free: 15.07 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.8754, allocations: 37.7 kB / 0.5085 GB, free: 15.02 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008772/0.8763, allocations: 0.9301 MB / 0.5094 GB, free: 14.08 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002824/0.8766, allocations: 197.5 kB / 0.5096 GB, free: 13.89 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.765e-05/0.8767, allocations: 24 kB / 0.5096 GB, free: 13.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002276/0.877, allocations: 374.8 kB / 0.5099 GB, free: 13.49 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009947/0.878, allocations: 375.8 kB / 0.5103 GB, free: 13.12 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.8796, allocations: 1.179 MB / 0.5115 GB, free: 11.53 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.8812, allocations: 0.6493 MB / 0.5121 GB, free: 10.88 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/0.8812, allocations: 8 kB / 0.5121 GB, free: 10.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.003982/0.8852, allocations: 1.48 MB / 0.5135 GB, free: 9.387 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.889e-05/0.8853, allocations: 23.94 kB / 0.5136 GB, free: 9.363 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.555e-05/0.8853, allocations: 28 kB / 0.5136 GB, free: 9.336 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003351/0.8857, allocations: 88.83 kB / 0.5137 GB, free: 9.246 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002239/0.888, allocations: 347.4 kB / 0.514 GB, free: 8.906 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.8903, allocations: 1.702 MB / 0.5157 GB, free: 7.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.892, allocations: 72.05 kB / 0.5157 GB, free: 7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001856/0.8922, allocations: 84 kB / 0.5158 GB, free: 6.918 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[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 (182): * Single equations (assignments): 181 * Array equations: 0 * 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.0003607/0.8925, allocations: 230.4 kB / 0.516 GB, free: 6.684 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002286/0.8928, allocations: 114.6 kB / 0.5161 GB, free: 6.57 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.8946, allocations: 0.6448 MB / 0.5168 GB, free: 5.906 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.8946, allocations: 8 kB / 0.5168 GB, free: 5.898 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.8946, allocations: 0 / 0.5168 GB, free: 5.898 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.8947, allocations: 3.984 kB / 0.5168 GB, free: 5.895 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0054/0.9001, allocations: 2.134 MB / 0.5189 GB, free: 3.652 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.9001, allocations: 0 / 0.5189 GB, free: 3.652 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000752/0.9009, allocations: 91.88 kB / 0.519 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002913/0.9012, allocations: 60.83 kB / 0.519 GB, free: 3.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.396e-05/0.9013, allocations: 16.38 kB / 0.519 GB, free: 3.484 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002287/0.9036, allocations: 1.741 MB / 0.5207 GB, free: 1.605 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.9036, allocations: 7.938 kB / 0.5207 GB, free: 1.598 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.9059, allocations: 1.178 MB / 0.5219 GB, free: 300 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005653/0.9065, allocations: 215.7 kB / 0.5221 GB, free: 64 kB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/0.9067, allocations: 12 kB / 0.5221 GB, free: 52 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006665/0.9074, allocations: 19.98 kB / 0.5221 GB, free: 32 kB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.3092/1.217, allocations: 49.12 kB / 0.5222 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/1.217, allocations: 17.92 kB / 0.5222 GB, free: 125.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002015/1.219, allocations: 0.7413 MB / 0.5229 GB, free: 125.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.222e-06/1.219, allocations: 1 kB / 0.5229 GB, free: 125.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002396/1.221, allocations: 297.3 kB / 0.5232 GB, free: 125.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002984/1.224, allocations: 2.708 MB / 0.5258 GB, free: 123.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00262/1.227, allocations: 0.9562 MB / 0.5268 GB, free: 123.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/1.227, allocations: 0 / 0.5268 GB, free: 123.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008802/1.228, allocations: 358.6 kB / 0.5271 GB, free: 123.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/1.23, allocations: 158.9 kB / 0.5273 GB, free: 123.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009247/1.239, allocations: 2.641 MB / 0.5298 GB, free: 122.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002222/1.241, allocations: 1.454 MB / 0.5313 GB, free: 121.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/1.242, allocations: 0.5679 MB / 0.5318 GB, free: 121.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.373e-06/1.242, allocations: 1.125 kB / 0.5318 GB, free: 121.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.265/4.508, allocations: 28.37 MB / 0.5595 GB, free: 119.1 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat does not exist to compare? outputFormat=mat