Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.246/2.246, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.22e-05/4.228e-05, allocations: 0 / 292.7 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1771/0.1772, allocations: 50.41 MB / 343.2 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4706/0.6478, allocations: 101.6 MB / 444.8 MB, free: 8.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.6482, allocations: 90.12 kB / 444.8 MB, free: 8.543 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9125/1.561, allocations: 128.5 MB / 0.56 GB, free: 94.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.561, allocations: 3.797 kB / 0.56 GB, free: 94.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003852/1.561, allocations: 120.5 kB / 0.5601 GB, free: 94.72 MB / 442.7 MB 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.02683/1.588, allocations: 6.325 MB / 0.5662 GB, free: 92.28 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/1.588, allocations: 10.53 kB / 0.5663 GB, free: 92.28 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006497/1.595, allocations: 1.312 MB / 0.5675 GB, free: 92.17 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06126/1.656, allocations: 8.314 MB / 0.5757 GB, free: 91.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02606/1.682, allocations: 6.967 MB / 0.5825 GB, free: 90.89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000586/1.683, allocations: 449.6 kB / 0.5829 GB, free: 90.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003844/1.687, allocations: 0.5894 MB / 0.5835 GB, free: 90.87 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0466/1.733, allocations: 15.54 MB / 0.5986 GB, free: 84.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000418/1.734, allocations: 68.22 kB / 0.5987 GB, free: 84.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003616/1.737, allocations: 288.7 kB / 0.599 GB, free: 84.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003501/1.741, allocations: 1.617 MB / 0.6006 GB, free: 83.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05461/1.796, allocations: 13.54 MB / 0.6138 GB, free: 72.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1118/1.907, allocations: 64.05 MB / 0.6763 GB, free: 8.488 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02221/1.93, allocations: 6.367 MB / 0.6825 GB, free: 1.879 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3267/2.256, allocations: 3.458 MB / 0.6859 GB, free: 86.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03992/2.296, allocations: 14.28 MB / 0.6999 GB, free: 83.24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.547e-05/2.296, allocations: 63.47 kB / 0.6999 GB, free: 83.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 7.023e-06/2.296, allocations: 1.469 kB / 0.6999 GB, free: 83.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.153/2.45, allocations: 29.56 MB / 0.7288 GB, free: 79.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.218e-05/2.45, allocations: 210.7 kB / 0.729 GB, free: 79.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01177/2.461, allocations: 4.778 MB / 0.7337 GB, free: 77.44 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009556/2.462, allocations: 73.17 kB / 0.7337 GB, free: 77.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004129/2.467, allocations: 4.439 MB / 0.7381 GB, free: 74.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002164/2.469, allocations: 1.243 MB / 0.7393 GB, free: 73.11 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001331/2.47, allocations: 177.7 kB / 0.7395 GB, free: 72.97 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006992/2.471, allocations: 0.6799 MB / 0.7401 GB, free: 72.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01062/2.482, allocations: 4.455 MB / 0.7445 GB, free: 70.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/2.495, allocations: 9.379 MB / 0.7536 GB, free: 62.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01384/2.509, allocations: 6.4 MB / 0.7599 GB, free: 60.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001932/2.51, allocations: 51.88 kB / 0.7599 GB, free: 60.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.07074/2.58, allocations: 18.04 MB / 0.7776 GB, free: 52.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001353/2.581, allocations: 80 kB / 0.7776 GB, free: 52.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002706/2.581, allocations: 172 kB / 0.7778 GB, free: 51.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04013/2.621, allocations: 5.633 MB / 0.7833 GB, free: 48.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01383/2.635, allocations: 2.046 MB / 0.7853 GB, free: 46.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04747/2.682, allocations: 23.64 MB / 0.8084 GB, free: 26.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01196/2.694, allocations: 0.5389 MB / 0.8089 GB, free: 25.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002398/2.697, allocations: 0.5032 MB / 0.8094 GB, free: 25.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 45 (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.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 (1060): * Single equations (assignments): 1052 * 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.003336/2.7, allocations: 0.7587 MB / 0.8101 GB, free: 24.46 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001533/2.702, allocations: 0.4974 MB / 0.8106 GB, free: 23.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05425/2.756, allocations: 12.27 MB / 0.8226 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001237/2.756, allocations: 52.7 kB / 0.8227 GB, free: 12.53 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-05/2.756, allocations: 11.98 kB / 0.8227 GB, free: 12.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.039e-05/2.756, allocations: 15.89 kB / 0.8227 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08944/2.846, allocations: 23.83 MB / 0.846 GB, free: 4.188 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.857e-05/2.846, allocations: 9.375 kB / 0.846 GB, free: 4.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006148/2.852, allocations: 0.5656 MB / 0.8465 GB, free: 3.613 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3745/3.227, allocations: 4.638 MB / 0.851 GB, free: 88.99 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008921/3.228, allocations: 55.62 kB / 0.8511 GB, free: 88.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04159/3.269, allocations: 18.93 MB / 0.8696 GB, free: 86.33 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.348e-05/3.269, allocations: 14.91 kB / 0.8696 GB, free: 86.33 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05726/3.327, allocations: 17.25 MB / 0.8864 GB, free: 82.44 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00181/3.328, allocations: 0.5311 MB / 0.887 GB, free: 82.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002272/3.331, allocations: 58.34 kB / 0.887 GB, free: 82.28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00653/3.337, allocations: 251.6 kB / 0.8873 GB, free: 82.25 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001447/3.339, allocations: 188.8 kB / 0.8874 GB, free: 82.22 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00049/3.339, allocations: 84.95 kB / 0.8875 GB, free: 82.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008792/3.348, allocations: 3.305 MB / 0.8907 GB, free: 81.08 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.002e-06/3.348, allocations: 2.375 kB / 0.8907 GB, free: 81.08 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01253/3.361, allocations: 1.703 MB / 0.8924 GB, free: 80.9 MB / 458.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.0614/3.422, allocations: 18.98 MB / 0.9109 GB, free: 72.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02344/3.446, allocations: 10.06 MB / 0.9208 GB, free: 69.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.809e-06/3.446, allocations: 0 / 0.9208 GB, free: 69.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0091/3.455, allocations: 3.867 MB / 0.9245 GB, free: 67.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00574/3.461, allocations: 0.5785 MB / 0.9251 GB, free: 67.56 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05094/3.512, allocations: 15.51 MB / 0.9403 GB, free: 59.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01147/3.523, allocations: 4.751 MB / 0.9449 GB, free: 55.78 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01477/3.538, allocations: 2.985 MB / 0.9478 GB, free: 54.02 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008475/3.547, allocations: 2.917 MB / 0.9507 GB, free: 51.31 MB / 458.7 MB Notification: Performance of SimCode: time 2.043e-06/3.547, allocations: 0 / 0.9507 GB, free: 51.31 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6317/4.178, allocations: 134 MB / 1.082 GB, free: 94.59 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/4.179, allocations: 181.4 kB / 1.082 GB, free: 94.36 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.234/11.41, allocations: 0 / 1.082 GB, free: 94.36 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat