Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.737/2.737, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.618e-05/2.628e-05, allocations: 4 kB / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.379, allocations: 54.85 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2105/0.5895, allocations: 102.1 MB / 456.6 MB, free: 8.898 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.5899, allocations: 71.97 kB / 456.7 MB, free: 8.828 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.874/1.464, allocations: 115.8 MB / 0.5591 GB, free: 5.125 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.464, allocations: 0 / 0.5591 GB, free: 5.125 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004909/1.464, allocations: 116 kB / 0.5592 GB, free: 5.012 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.02779/1.492, allocations: 5.95 MB / 0.565 GB, free: 14.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.417e-05/1.492, allocations: 8.031 kB / 0.565 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06303/1.555, allocations: 6.997 MB / 0.5718 GB, free: 7.969 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03386/1.589, allocations: 7.788 MB / 0.5794 GB, free: 100 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004957/1.59, allocations: 188 kB / 0.5796 GB, free: 15.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003393/1.593, allocations: 347.8 kB / 0.5799 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02566/1.619, allocations: 8.204 MB / 0.5879 GB, free: 7.367 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03884/1.658, allocations: 12.41 MB / 0.6001 GB, free: 9.785 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004801/1.658, allocations: 87.23 kB / 0.6001 GB, free: 9.699 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002681/1.661, allocations: 36 kB / 0.6002 GB, free: 9.664 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003681/1.665, allocations: 1.314 MB / 0.6015 GB, free: 8.344 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4969/2.162, allocations: 59.41 MB / 0.6595 GB, free: 51.91 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01012/2.172, allocations: 4.892 MB / 0.6643 GB, free: 51.24 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006469/2.178, allocations: 3.217 MB / 0.6674 GB, free: 51.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001179/2.18, allocations: 0.6969 MB / 0.6681 GB, free: 50.63 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.108e-05/2.18, allocations: 68.62 kB / 0.6681 GB, free: 50.59 MB / 458.7 MB Notification: Performance of pre-optimization done (n=254): time 8.606e-06/2.18, allocations: 0 / 0.6681 GB, free: 50.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=321): time 0.1231/2.303, allocations: 29.91 MB / 0.6974 GB, free: 45.27 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/2.303, allocations: 263 kB / 0.6976 GB, free: 44.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01/2.313, allocations: 3.928 MB / 0.7014 GB, free: 43.56 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009128/2.314, allocations: 29.39 kB / 0.7015 GB, free: 43.53 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004006/2.318, allocations: 4.1 MB / 0.7055 GB, free: 40.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002066/2.32, allocations: 1.164 MB / 0.7066 GB, free: 39.85 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/2.322, allocations: 0 / 0.7066 GB, free: 39.85 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006612/2.322, allocations: 0.6383 MB / 0.7072 GB, free: 39.41 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008092/2.33, allocations: 3.15 MB / 0.7103 GB, free: 38.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01142/2.342, allocations: 7.501 MB / 0.7176 GB, free: 31.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01175/2.354, allocations: 4.814 MB / 0.7223 GB, free: 29.58 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002376/2.354, allocations: 43.94 kB / 0.7224 GB, free: 29.58 MB / 458.7 MB Notification: Performance of matching and sorting (n=1032) (initialization): time 0.03631/2.39, allocations: 11.6 MB / 0.7337 GB, free: 22.49 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/2.39, allocations: 72 kB / 0.7338 GB, free: 22.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/2.391, allocations: 158.6 kB / 0.7339 GB, free: 22.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009936/2.401, allocations: 2.167 MB / 0.736 GB, free: 20.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0128/2.413, allocations: 1.807 MB / 0.7378 GB, free: 19.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03192/2.445, allocations: 13.6 MB / 0.7511 GB, free: 7.113 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009981/2.455, allocations: 311.2 kB / 0.7514 GB, free: 6.875 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002055/2.458, allocations: 467.9 kB / 0.7518 GB, free: 6.438 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 700 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (956): * Single equations (assignments): 951 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002328/2.46, allocations: 0.4975 MB / 0.7523 GB, free: 5.938 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02126/2.481, allocations: 6.829 MB / 0.759 GB, free: 200 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001993/2.483, allocations: 459.2 kB / 0.7594 GB, free: 15.74 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02631/2.51, allocations: 6.759 MB / 0.766 GB, free: 10.25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001067/2.51, allocations: 36 kB / 0.7661 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.528e-05/2.51, allocations: 8 kB / 0.7661 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.684e-05/2.51, allocations: 13.88 kB / 0.7661 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05691/2.567, allocations: 14.89 MB / 0.7806 GB, free: 14.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.826e-05/2.567, allocations: 8 kB / 0.7806 GB, free: 14.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006142/2.573, allocations: 0.5041 MB / 0.7811 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01065/2.584, allocations: 1.866 MB / 0.7829 GB, free: 12.94 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008504/2.585, allocations: 23.69 kB / 0.783 GB, free: 12.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03489/2.62, allocations: 11.93 MB / 0.7946 GB, free: 2.391 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.748e-05/2.62, allocations: 8 kB / 0.7946 GB, free: 2.383 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0395/2.659, allocations: 11.99 MB / 0.8063 GB, free: 7.141 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004543/2.664, allocations: 0.9948 MB / 0.8073 GB, free: 6.121 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001872/2.666, allocations: 12 kB / 0.8073 GB, free: 6.109 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00553/2.671, allocations: 171.5 kB / 0.8075 GB, free: 5.945 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001241/2.672, allocations: 201.6 kB / 0.8077 GB, free: 5.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000466/2.673, allocations: 91.98 kB / 0.8078 GB, free: 5.66 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00814/2.681, allocations: 2.658 MB / 0.8104 GB, free: 3.012 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.222e-06/2.681, allocations: 0 / 0.8104 GB, free: 3.012 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0111/2.692, allocations: 1.288 MB / 0.8116 GB, free: 1.73 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 255 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4672/3.16, allocations: 13.75 MB / 0.825 GB, free: 121.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02555/3.185, allocations: 8.482 MB / 0.8333 GB, free: 121 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/3.185, allocations: 3.156 kB / 0.8333 GB, free: 121 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01421/3.199, allocations: 3.781 MB / 0.837 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005519/3.205, allocations: 0.4983 MB / 0.8375 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04746/3.252, allocations: 13.79 MB / 0.851 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01053/3.263, allocations: 4.528 MB / 0.8554 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01395/3.277, allocations: 2.513 MB / 0.8579 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00794/3.285, allocations: 2.778 MB / 0.8606 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.803e-06/3.285, allocations: 0 / 0.8606 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2944/3.58, allocations: 109.7 MB / 0.9677 GB, free: 34.64 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004274/3.58, allocations: 139.7 kB / 0.9678 GB, free: 34.44 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.377/10.96, allocations: 0 / 0.9678 GB, free: 34.44 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat