Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.403/2.403, allocations: 195 MB / 202.9 MB, free: 6.738 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.906e-05/2.919e-05, allocations: 2.156 kB / 249.8 MB, free: 5.277 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1184, allocations: 44.5 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5263/0.6448, allocations: 103.1 MB / 397.4 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/0.6452, allocations: 83.64 kB / 397.5 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.245/1.89, allocations: 178.6 MB / 0.5627 GB, free: 66.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.188e-06/1.89, allocations: 3.75 kB / 0.5627 GB, free: 66.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0009908/1.891, allocations: 188.6 kB / 0.5628 GB, free: 66.54 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.04559/1.936, allocations: 9.145 MB / 0.5718 GB, free: 62.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/1.937, allocations: 15.45 kB / 0.5718 GB, free: 62.31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1439/2.08, allocations: 16.65 MB / 0.588 GB, free: 48.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06246/2.143, allocations: 14.58 MB / 0.6023 GB, free: 34.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001004/2.144, allocations: 272 kB / 0.6025 GB, free: 33.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006964/2.151, allocations: 0.5267 MB / 0.603 GB, free: 33.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0518/2.203, allocations: 11.7 MB / 0.6145 GB, free: 21.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05595/2.259, allocations: 16.52 MB / 0.6306 GB, free: 3.824 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001124/2.26, allocations: 111 kB / 0.6307 GB, free: 3.715 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004835/2.265, allocations: 43.94 kB / 0.6308 GB, free: 3.672 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005692/2.271, allocations: 1.595 MB / 0.6323 GB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5857/2.857, allocations: 78.1 MB / 0.7086 GB, free: 32.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/2.869, allocations: 5.434 MB / 0.7139 GB, free: 31.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008808/2.878, allocations: 3.889 MB / 0.7177 GB, free: 30.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004726/2.883, allocations: 2.854 MB / 0.7205 GB, free: 28.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/2.883, allocations: 77.98 kB / 0.7206 GB, free: 28.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=314): time 8.326e-06/2.883, allocations: 0 / 0.7206 GB, free: 28.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=415): time 0.2219/3.105, allocations: 40.65 MB / 0.7603 GB, free: 15.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/3.105, allocations: 408.4 kB / 0.7606 GB, free: 15.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01757/3.123, allocations: 5.921 MB / 0.7664 GB, free: 10.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001227/3.124, allocations: 25.7 kB / 0.7665 GB, free: 10.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00656/3.131, allocations: 5.876 MB / 0.7722 GB, free: 4.941 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002605/3.133, allocations: 1.451 MB / 0.7736 GB, free: 3.625 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001731/3.135, allocations: 4 kB / 0.7736 GB, free: 3.621 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009606/3.136, allocations: 0.7054 MB / 0.7743 GB, free: 3.023 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01611/3.152, allocations: 4.211 MB / 0.7784 GB, free: 0 / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01966/3.172, allocations: 9.097 MB / 0.7873 GB, free: 5.129 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.019/3.191, allocations: 5.952 MB / 0.7931 GB, free: 228 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002508/3.191, allocations: 52 kB / 0.7932 GB, free: 176 kB / 426.7 MB Notification: Performance of matching and sorting (n=1244) (initialization): time 0.09297/3.284, allocations: 16.18 MB / 0.809 GB, free: 3.199 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002905/3.285, allocations: 85 kB / 0.809 GB, free: 3.117 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005248/3.285, allocations: 176 kB / 0.8092 GB, free: 2.945 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4066/3.692, allocations: 4.592 MB / 0.8137 GB, free: 94.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01589/3.708, allocations: 2.015 MB / 0.8157 GB, free: 94.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07067/3.778, allocations: 23.44 MB / 0.8386 GB, free: 93.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0134/3.792, allocations: 370.4 kB / 0.8389 GB, free: 93.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002729/3.795, allocations: 0.5248 MB / 0.8394 GB, free: 93.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 815 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1092): * Single equations (assignments): 1087 * Array equations: 4 * 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 {(3,77.8%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004835/3.8, allocations: 0.5764 MB / 0.84 GB, free: 92.89 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04982/3.849, allocations: 10.44 MB / 0.8502 GB, free: 91.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002847/3.852, allocations: 0.6828 MB / 0.8508 GB, free: 91.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0477/3.9, allocations: 10.51 MB / 0.8611 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/3.9, allocations: 38.62 kB / 0.8611 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.403e-05/3.9, allocations: 25.16 kB / 0.8612 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001146/3.9, allocations: 18.94 kB / 0.8612 GB, free: 87.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08653/3.987, allocations: 22.13 MB / 0.8828 GB, free: 79.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.692e-05/3.987, allocations: 9.906 kB / 0.8828 GB, free: 79.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005858/3.993, allocations: 0.5357 MB / 0.8833 GB, free: 79.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02874/4.022, allocations: 4.043 MB / 0.8873 GB, free: 78.47 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001132/4.023, allocations: 18.83 kB / 0.8873 GB, free: 78.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05989/4.083, allocations: 20.28 MB / 0.9071 GB, free: 67.28 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-05/4.083, allocations: 17.25 kB / 0.9071 GB, free: 67.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05493/4.138, allocations: 17.21 MB / 0.9239 GB, free: 52.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006036/4.144, allocations: 1.342 MB / 0.9252 GB, free: 50.89 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003512/4.147, allocations: 10.41 kB / 0.9252 GB, free: 50.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008421/4.156, allocations: 187.9 kB / 0.9254 GB, free: 50.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002016/4.158, allocations: 292.5 kB / 0.9257 GB, free: 50.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009483/4.159, allocations: 112.2 kB / 0.9258 GB, free: 50.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01262/4.172, allocations: 4.133 MB / 0.9298 GB, free: 46.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.52e-07/4.172, allocations: 4 kB / 0.9298 GB, free: 46.93 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01684/4.189, allocations: 1.931 MB / 0.9317 GB, free: 45.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (291): * Single equations (assignments): 287 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05901/4.248, allocations: 19.14 MB / 0.9504 GB, free: 27.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02677/4.274, allocations: 10.05 MB / 0.9602 GB, free: 17.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.789e-05/4.274, allocations: 7.938 kB / 0.9602 GB, free: 17.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01222/4.287, allocations: 4.239 MB / 0.9644 GB, free: 13.65 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01031/4.297, allocations: 0.9198 MB / 0.9653 GB, free: 12.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5197/4.817, allocations: 20.39 MB / 0.9852 GB, free: 94.39 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0194/4.836, allocations: 6.563 MB / 0.9916 GB, free: 93.47 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01777/4.854, allocations: 3.007 MB / 0.9945 GB, free: 93.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01125/4.865, allocations: 4.259 MB / 0.9987 GB, free: 93.39 MB / 442.7 MB Notification: Performance of SimCode: time 3.096e-06/4.866, allocations: 0 / 0.9987 GB, free: 93.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8316/5.697, allocations: 168.9 MB / 1.164 GB, free: 77.04 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000255/5.697, allocations: 158 kB / 1.164 GB, free: 76.85 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 11.15/16.85, allocations: 0 / 1.164 GB, free: 76.85 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat