Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.742/1.742, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.932e-05, allocations: 8 kB / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2788, allocations: 38.77 MB / 258.4 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1503/0.4292, allocations: 85.76 MB / 344.1 MB, free: 7.977 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/0.4295, allocations: 79.95 kB / 344.2 MB, free: 7.898 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8792/1.309, allocations: 161.8 MB / 0.4942 GB, free: 1.332 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.309, allocations: 0 / 0.4942 GB, free: 1.332 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001051/1.31, allocations: 164 kB / 0.4943 GB, free: 1.172 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.3232/1.633, allocations: 8.185 MB / 0.5023 GB, free: 37.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/1.633, allocations: 11.19 kB / 0.5023 GB, free: 37.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1553/1.788, allocations: 16.56 MB / 0.5185 GB, free: 36.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06049/1.849, allocations: 13.73 MB / 0.5319 GB, free: 35.42 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004689/1.85, allocations: 241.5 kB / 0.5322 GB, free: 35.42 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003675/1.853, allocations: 465.5 kB / 0.5326 GB, free: 35.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02479/1.878, allocations: 9.866 MB / 0.5422 GB, free: 35.37 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03689/1.915, allocations: 14.78 MB / 0.5567 GB, free: 31.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007023/1.916, allocations: 114 kB / 0.5568 GB, free: 31.78 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003173/1.919, allocations: 40.88 kB / 0.5568 GB, free: 31.78 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003632/1.923, allocations: 1.532 MB / 0.5583 GB, free: 31.76 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1189/2.042, allocations: 72.58 MB / 0.6292 GB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5294/2.571, allocations: 5.814 MB / 0.6349 GB, free: 65.46 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007425/2.578, allocations: 3.823 MB / 0.6386 GB, free: 65.41 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002055/2.581, allocations: 1.377 MB / 0.64 GB, free: 64.18 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.231e-05/2.581, allocations: 72.42 kB / 0.64 GB, free: 64.14 MB / 378.8 MB Notification: Performance of pre-optimization done (n=299): time 9.818e-06/2.581, allocations: 0 / 0.64 GB, free: 64.14 MB / 378.8 MB Notification: Performance of matching and sorting (n=371): time 0.1699/2.751, allocations: 35.78 MB / 0.675 GB, free: 59.86 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001555/2.751, allocations: 401.1 kB / 0.6753 GB, free: 59.42 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01413/2.765, allocations: 5.645 MB / 0.6809 GB, free: 58.83 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001005/2.766, allocations: 32.27 kB / 0.6809 GB, free: 58.8 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005571/2.772, allocations: 5.469 MB / 0.6862 GB, free: 56.01 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002069/2.774, allocations: 1.308 MB / 0.6875 GB, free: 55.21 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009168/2.775, allocations: 0 / 0.6875 GB, free: 55.21 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0005295/2.775, allocations: 0.6838 MB / 0.6882 GB, free: 54.89 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007127/2.782, allocations: 3.346 MB / 0.6914 GB, free: 54.86 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01089/2.793, allocations: 8.296 MB / 0.6995 GB, free: 48.02 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01125/2.805, allocations: 5.187 MB / 0.7046 GB, free: 46.36 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001639/2.805, allocations: 50.09 kB / 0.7047 GB, free: 46.36 MB / 378.8 MB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.04369/2.849, allocations: 13.8 MB / 0.7181 GB, free: 42.01 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/2.849, allocations: 81.41 kB / 0.7182 GB, free: 41.93 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002173/2.849, allocations: 176 kB / 0.7184 GB, free: 41.76 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01811/2.867, allocations: 3.697 MB / 0.722 GB, free: 39.05 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01172/2.879, allocations: 1.906 MB / 0.7238 GB, free: 37.38 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04553/2.924, allocations: 22.23 MB / 0.7456 GB, free: 17.91 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01104/2.935, allocations: 330.1 kB / 0.7459 GB, free: 17.65 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002395/2.938, allocations: 0.5058 MB / 0.7464 GB, free: 17.16 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 69 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.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 (1030): * Single equations (assignments): 1024 * 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,64.1%) 98,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002532/2.94, allocations: 0.5596 MB / 0.7469 GB, free: 16.6 MB / 378.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02837/2.969, allocations: 8.504 MB / 0.7552 GB, free: 9.633 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002447/2.971, allocations: 0.6518 MB / 0.7558 GB, free: 8.973 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02708/2.998, allocations: 8.502 MB / 0.7642 GB, free: 2.258 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.474e-05/2.999, allocations: 40.55 kB / 0.7642 GB, free: 2.219 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.308e-05/2.999, allocations: 16 kB / 0.7642 GB, free: 2.203 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.998e-05/2.999, allocations: 23.64 kB / 0.7642 GB, free: 2.199 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.345/3.344, allocations: 18.17 MB / 0.782 GB, free: 68.5 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-05/3.344, allocations: 14.78 kB / 0.782 GB, free: 68.5 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003984/3.348, allocations: 450.6 kB / 0.7824 GB, free: 68.5 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02101/3.369, allocations: 3.416 MB / 0.7857 GB, free: 68.45 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001029/3.37, allocations: 11.34 kB / 0.7858 GB, free: 68.45 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0487/3.419, allocations: 21.53 MB / 0.8068 GB, free: 64.58 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.712e-05/3.419, allocations: 12.78 kB / 0.8068 GB, free: 64.58 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03858/3.457, allocations: 14.6 MB / 0.8211 GB, free: 61.91 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005288/3.463, allocations: 1.189 MB / 0.8222 GB, free: 61.75 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003408/3.466, allocations: 14.2 kB / 0.8222 GB, free: 61.75 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006822/3.473, allocations: 159 kB / 0.8224 GB, free: 61.75 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001761/3.475, allocations: 275.5 kB / 0.8226 GB, free: 61.7 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008514/3.476, allocations: 101.7 kB / 0.8227 GB, free: 61.68 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.01095/3.487, allocations: 3.936 MB / 0.8266 GB, free: 60.29 MB / 394.8 MB Notification: Performance of sort global known variables: time 8.22e-07/3.487, allocations: 2.281 kB / 0.8266 GB, free: 60.29 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01382/3.501, allocations: 1.745 MB / 0.8283 GB, free: 60.29 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (248): * Single equations (assignments): 242 * 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,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.03962/3.54, allocations: 16.63 MB / 0.8445 GB, free: 51.93 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02216/3.563, allocations: 8.963 MB / 0.8533 GB, free: 48.86 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.751e-05/3.563, allocations: 3.906 kB / 0.8533 GB, free: 48.86 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01083/3.573, allocations: 3.935 MB / 0.8571 GB, free: 47.16 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008666/3.582, allocations: 0.8743 MB / 0.858 GB, free: 46.79 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07046/3.653, allocations: 17.53 MB / 0.8751 GB, free: 31.66 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02062/3.673, allocations: 5.941 MB / 0.8809 GB, free: 27.37 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.01868/3.692, allocations: 2.85 MB / 0.8837 GB, free: 25.73 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009228/3.701, allocations: 3.909 MB / 0.8875 GB, free: 22.09 MB / 394.8 MB Notification: Performance of SimCode: time 1.613e-06/3.701, allocations: 2.812 kB / 0.8875 GB, free: 22.09 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6672/4.369, allocations: 151.8 MB / 1.036 GB, free: 13.27 MB / 410.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003637/4.369, allocations: 140.4 kB / 1.036 GB, free: 13.08 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.631/13, allocations: 0 / 1.036 GB, free: 13.08 MB / 410.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat