Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.738/1.738, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.694e-05/4.716e-05, allocations: 4 kB / 225.1 MB, free: 2.207 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2833, allocations: 38.77 MB / 263.9 MB, free: 9.805 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1595/0.4428, allocations: 84.9 MB / 348.8 MB, free: 4.773 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/0.4432, allocations: 83.95 kB / 348.8 MB, free: 4.691 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.437/1.88, allocations: 160 MB / 0.4969 GB, free: 36.1 MB / 346.8 MB Notification: Performance of FrontEnd: time 3.647e-06/1.88, allocations: 0 / 0.4969 GB, free: 36.1 MB / 346.8 MB Notification: Performance of Transformations before backend: time 0.0009071/1.881, allocations: 160.2 kB / 0.497 GB, free: 36.1 MB / 346.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.04149/1.922, allocations: 7.884 MB / 0.5047 GB, free: 34.34 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/1.922, allocations: 11.16 kB / 0.5047 GB, free: 34.34 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006475/1.929, allocations: 1.199 MB / 0.5059 GB, free: 34.25 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.138/2.067, allocations: 16.49 MB / 0.522 GB, free: 33.71 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04444/2.112, allocations: 13.48 MB / 0.5352 GB, free: 32.52 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007422/2.112, allocations: 0.5253 MB / 0.5357 GB, free: 32.5 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003749/2.116, allocations: 0.73 MB / 0.5364 GB, free: 32.48 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04865/2.165, allocations: 16.26 MB / 0.5523 GB, free: 28.89 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005789/2.165, allocations: 115 kB / 0.5524 GB, free: 28.88 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002777/2.168, allocations: 330.5 kB / 0.5527 GB, free: 28.88 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003296/2.172, allocations: 1.485 MB / 0.5542 GB, free: 28.86 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04002/2.212, allocations: 12.71 MB / 0.5666 GB, free: 26.31 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4385/2.65, allocations: 73.3 MB / 0.6382 GB, free: 24.39 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03271/2.683, allocations: 7.449 MB / 0.6454 GB, free: 23.7 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007865/2.691, allocations: 3.968 MB / 0.6493 GB, free: 23.66 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02868/2.72, allocations: 11.58 MB / 0.6606 GB, free: 21.89 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.511e-05/2.72, allocations: 65.06 kB / 0.6607 GB, free: 21.85 MB / 378.8 MB Notification: Performance of pre-optimization done (n=280): time 6.993e-06/2.72, allocations: 0 / 0.6607 GB, free: 21.85 MB / 378.8 MB Notification: Performance of matching and sorting (n=339): time 0.2258/2.946, allocations: 37.94 MB / 0.6977 GB, free: 17.34 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/2.946, allocations: 399.1 kB / 0.6981 GB, free: 16.9 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01635/2.962, allocations: 6.179 MB / 0.7041 GB, free: 16.39 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009519/2.963, allocations: 81.05 kB / 0.7042 GB, free: 16.36 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00561/2.969, allocations: 5.223 MB / 0.7093 GB, free: 14.12 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002088/2.971, allocations: 1.248 MB / 0.7105 GB, free: 13.38 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00126/2.972, allocations: 164.4 kB / 0.7107 GB, free: 13.38 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0006626/2.973, allocations: 0.6528 MB / 0.7113 GB, free: 13.06 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009166/2.982, allocations: 3.721 MB / 0.715 GB, free: 10.48 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01213/2.994, allocations: 8.372 MB / 0.7231 GB, free: 0.4922 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02448/3.019, allocations: 6.105 MB / 0.7291 GB, free: 13.63 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002031/3.019, allocations: 48 kB / 0.7291 GB, free: 13.58 MB / 394.8 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.06265/3.082, allocations: 16.54 MB / 0.7453 GB, free: 0.7422 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001842/3.082, allocations: 76.88 kB / 0.7454 GB, free: 0.668 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004062/3.082, allocations: 171.8 kB / 0.7455 GB, free: 0.5039 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0382/3.121, allocations: 5.92 MB / 0.7513 GB, free: 13.72 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01292/3.134, allocations: 1.789 MB / 0.7531 GB, free: 12.16 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07194/3.206, allocations: 28 MB / 0.7804 GB, free: 1.289 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01146/3.217, allocations: 0.5187 MB / 0.7809 GB, free: 0.7695 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002231/3.219, allocations: 484 kB / 0.7814 GB, free: 304 kB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (944): * Single equations (assignments): 938 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003143/3.223, allocations: 0.7376 MB / 0.7821 GB, free: 15.57 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002187/3.225, allocations: 0.6634 MB / 0.7827 GB, free: 14.89 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04596/3.271, allocations: 10.88 MB / 0.7934 GB, free: 3.945 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.052e-05/3.271, allocations: 36 kB / 0.7934 GB, free: 3.91 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.502e-05/3.271, allocations: 19.94 kB / 0.7934 GB, free: 3.891 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.688e-05/3.271, allocations: 15.94 kB / 0.7934 GB, free: 3.875 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3655/3.637, allocations: 23.91 MB / 0.8168 GB, free: 110.5 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.396e-05/3.637, allocations: 7.344 kB / 0.8168 GB, free: 110.5 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003865/3.641, allocations: 426.1 kB / 0.8172 GB, free: 110.5 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02848/3.669, allocations: 5.082 MB / 0.8222 GB, free: 110.5 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008812/3.67, allocations: 65.59 kB / 0.8222 GB, free: 110.5 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06017/3.73, allocations: 26.72 MB / 0.8483 GB, free: 106.2 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.33e-05/3.73, allocations: 13.27 kB / 0.8483 GB, free: 106.2 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05632/3.787, allocations: 16.75 MB / 0.8647 GB, free: 99.39 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006397/3.793, allocations: 1.271 MB / 0.8659 GB, free: 99.03 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002569/3.796, allocations: 63.95 kB / 0.866 GB, free: 98.99 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006973/3.803, allocations: 254.1 kB / 0.8662 GB, free: 98.95 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001623/3.804, allocations: 234.9 kB / 0.8665 GB, free: 98.91 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005081/3.805, allocations: 94.62 kB / 0.8665 GB, free: 98.89 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.01242/3.817, allocations: 4.453 MB / 0.8709 GB, free: 97.4 MB / 442.8 MB Notification: Performance of sort global known variables: time 9.52e-07/3.817, allocations: 6.219 kB / 0.8709 GB, free: 97.4 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01236/3.83, allocations: 1.963 MB / 0.8728 GB, free: 97.21 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.05768/3.888, allocations: 18.49 MB / 0.8909 GB, free: 87.33 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.03491/3.923, allocations: 9.99 MB / 0.9006 GB, free: 78.76 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/3.923, allocations: 2.812 kB / 0.9006 GB, free: 78.76 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01744/3.94, allocations: 4.418 MB / 0.9049 GB, free: 74.85 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01111/3.951, allocations: 0.9777 MB / 0.9059 GB, free: 74.05 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0633/4.015, allocations: 18.22 MB / 0.9237 GB, free: 58.3 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01371/4.028, allocations: 5.712 MB / 0.9293 GB, free: 54.16 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.01324/4.042, allocations: 2.638 MB / 0.9318 GB, free: 52.62 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008507/4.05, allocations: 3.741 MB / 0.9355 GB, free: 49.13 MB / 442.8 MB Notification: Performance of SimCode: time 2.164e-06/4.05, allocations: 0 / 0.9355 GB, free: 49.13 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8295/4.88, allocations: 159.2 MB / 1.091 GB, free: 39.09 MB / 442.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002794/4.88, allocations: 195.8 kB / 1.091 GB, free: 38.86 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.015/13.9, allocations: 0 / 1.091 GB, free: 38.86 MB / 442.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat