Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.483/2.483, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.568e-05/4.56e-05, allocations: 3.406 kB / 249.8 MB, free: 5.227 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5097/0.621, allocations: 93.47 MB / 387.8 MB, free: 4.246 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/0.6214, allocations: 86.56 kB / 387.9 MB, free: 4.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9815/1.603, allocations: 123.7 MB / 0.4996 GB, free: 69.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.514e-06/1.603, allocations: 0 / 0.4996 GB, free: 69.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005202/1.603, allocations: 118.2 kB / 0.4997 GB, free: 69.81 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: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.03445/1.638, allocations: 6.315 MB / 0.5059 GB, free: 67.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/1.638, allocations: 11.88 kB / 0.5059 GB, free: 67.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.075/1.713, allocations: 8.317 MB / 0.514 GB, free: 67.13 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03166/1.745, allocations: 7.252 MB / 0.5211 GB, free: 66.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004846/1.745, allocations: 191.4 kB / 0.5213 GB, free: 66.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003921/1.749, allocations: 351 kB / 0.5216 GB, free: 66.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0284/1.778, allocations: 10.11 MB / 0.5315 GB, free: 66.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04128/1.819, allocations: 14.06 MB / 0.5452 GB, free: 63.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000387/1.819, allocations: 68.78 kB / 0.5453 GB, free: 63.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00253/1.822, allocations: 35.75 kB / 0.5453 GB, free: 63.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004029/1.826, allocations: 1.613 MB / 0.5469 GB, free: 63.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1184/1.945, allocations: 61.4 MB / 0.6068 GB, free: 18.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01115/1.956, allocations: 5.559 MB / 0.6123 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007514/1.963, allocations: 3.365 MB / 0.6156 GB, free: 9.906 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04242/2.006, allocations: 14.03 MB / 0.6293 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.805e-05/2.006, allocations: 64.5 kB / 0.6293 GB, free: 13.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 1.021e-05/2.006, allocations: 7.844 kB / 0.6293 GB, free: 13.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.5493/2.555, allocations: 31.54 MB / 0.6601 GB, free: 78.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/2.555, allocations: 213.4 kB / 0.6603 GB, free: 77.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01499/2.57, allocations: 4.273 MB / 0.6645 GB, free: 77.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001168/2.572, allocations: 27.67 kB / 0.6645 GB, free: 77.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005896/2.578, allocations: 4.523 MB / 0.6689 GB, free: 75.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00298/2.581, allocations: 1.208 MB / 0.6701 GB, free: 74.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001883/2.583, allocations: 0 / 0.6701 GB, free: 74.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001087/2.584, allocations: 0.6966 MB / 0.6708 GB, free: 74.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01551/2.599, allocations: 4.37 MB / 0.6751 GB, free: 74.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02133/2.621, allocations: 9.547 MB / 0.6844 GB, free: 67.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0218/2.643, allocations: 6.36 MB / 0.6906 GB, free: 67.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000255/2.643, allocations: 51.69 kB / 0.6907 GB, free: 67.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.09549/2.738, allocations: 17.64 MB / 0.7079 GB, free: 64.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002717/2.739, allocations: 87.06 kB / 0.708 GB, free: 64.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004307/2.739, allocations: 182.2 kB / 0.7081 GB, free: 64.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09227/2.831, allocations: 5.636 MB / 0.7136 GB, free: 63.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01737/2.849, allocations: 2.134 MB / 0.7157 GB, free: 63.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05221/2.901, allocations: 21.61 MB / 0.7368 GB, free: 53.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01311/2.914, allocations: 393.1 kB / 0.7372 GB, free: 53.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002667/2.917, allocations: 0.5249 MB / 0.7377 GB, free: 53.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.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 (1105): * Single equations (assignments): 1097 * 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.004022/2.921, allocations: 0.5634 MB / 0.7383 GB, free: 52.76 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06082/2.982, allocations: 11.87 MB / 0.7499 GB, free: 44.06 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002109/2.984, allocations: 473.8 kB / 0.7503 GB, free: 43.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06174/3.046, allocations: 12.02 MB / 0.762 GB, free: 34.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001515/3.046, allocations: 53.86 kB / 0.7621 GB, free: 34.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.321e-05/3.046, allocations: 11.95 kB / 0.7621 GB, free: 34.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.699e-05/3.046, allocations: 14.62 kB / 0.7621 GB, free: 34.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09029/3.136, allocations: 22.47 MB / 0.7841 GB, free: 12.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.722e-05/3.137, allocations: 8 kB / 0.7841 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006642/3.143, allocations: 0.5655 MB / 0.7846 GB, free: 11.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0417/3.185, allocations: 4.627 MB / 0.7891 GB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008749/3.186, allocations: 15.98 kB / 0.7892 GB, free: 7.238 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4561/3.642, allocations: 17.32 MB / 0.8061 GB, free: 68.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.646e-05/3.642, allocations: 9.062 kB / 0.8061 GB, free: 68.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06672/3.709, allocations: 16.98 MB / 0.8227 GB, free: 66.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00527/3.714, allocations: 1.176 MB / 0.8238 GB, free: 66.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002541/3.717, allocations: 8.594 kB / 0.8238 GB, free: 66.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007235/3.724, allocations: 204.4 kB / 0.824 GB, free: 66.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001666/3.726, allocations: 196.1 kB / 0.8242 GB, free: 66.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005937/3.726, allocations: 83.94 kB / 0.8243 GB, free: 66.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.008237/3.735, allocations: 2.846 MB / 0.8271 GB, free: 66.44 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.72e-07/3.735, allocations: 0 / 0.8271 GB, free: 66.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01416/3.749, allocations: 1.489 MB / 0.8285 GB, free: 66.44 MB / 410.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 (251): * Single equations (assignments): 243 * 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.06888/3.818, allocations: 18.68 MB / 0.8468 GB, free: 60.37 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02457/3.842, allocations: 9.986 MB / 0.8565 GB, free: 56.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/3.842, allocations: 0 / 0.8565 GB, free: 56.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009558/3.852, allocations: 3.808 MB / 0.8602 GB, free: 55.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005351/3.857, allocations: 456.6 kB / 0.8607 GB, free: 55.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05364/3.911, allocations: 15.16 MB / 0.8755 GB, free: 49.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01285/3.924, allocations: 4.745 MB / 0.8801 GB, free: 46.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.01787/3.942, allocations: 3.075 MB / 0.8831 GB, free: 44.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009041/3.951, allocations: 2.898 MB / 0.8859 GB, free: 41.86 MB / 410.7 MB Notification: Performance of SimCode: time 3.065e-06/3.951, allocations: 0 / 0.8859 GB, free: 41.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7042/4.655, allocations: 127.5 MB / 1.01 GB, free: 73.79 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002442/4.655, allocations: 144.8 kB / 1.011 GB, free: 73.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.604/13.26, allocations: 0 / 1.011 GB, free: 73.6 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat