Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.751/1.751, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.221e-05/2.257e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2559, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1691/0.4251, allocations: 97.41 MB / 355.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/0.4254, allocations: 91.94 kB / 355.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.123/1.548, allocations: 178.7 MB / 0.522 GB, free: 28.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.548, allocations: 0 / 0.522 GB, free: 28.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0008106/1.549, allocations: 188.7 kB / 0.5222 GB, free: 28.48 MB / 330.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.03779/1.587, allocations: 9.147 MB / 0.5311 GB, free: 25.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/1.587, allocations: 9 kB / 0.5311 GB, free: 25.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1175/1.704, allocations: 16.65 MB / 0.5474 GB, free: 24.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04777/1.752, allocations: 14.59 MB / 0.5616 GB, free: 21.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004856/1.753, allocations: 276 kB / 0.5619 GB, free: 21.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00425/1.757, allocations: 0.5147 MB / 0.5624 GB, free: 21.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02973/1.787, allocations: 11.71 MB / 0.5738 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04609/1.833, allocations: 16.52 MB / 0.59 GB, free: 9.754 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007628/1.834, allocations: 114.5 kB / 0.5901 GB, free: 9.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003715/1.837, allocations: 40 kB / 0.5901 GB, free: 9.641 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004293/1.842, allocations: 1.601 MB / 0.5917 GB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4136/2.255, allocations: 78.1 MB / 0.6679 GB, free: 26.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01063/2.266, allocations: 5.434 MB / 0.6732 GB, free: 26.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007421/2.274, allocations: 3.876 MB / 0.677 GB, free: 26.17 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003992/2.278, allocations: 2.86 MB / 0.6798 GB, free: 23.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001008/2.278, allocations: 71.77 kB / 0.6799 GB, free: 23.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=314): time 7.074e-06/2.278, allocations: 0 / 0.6799 GB, free: 23.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=415): time 0.1706/2.448, allocations: 40.66 MB / 0.7196 GB, free: 13.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/2.449, allocations: 407.5 kB / 0.72 GB, free: 13.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01638/2.465, allocations: 5.929 MB / 0.7258 GB, free: 9.664 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001226/2.466, allocations: 25.7 kB / 0.7258 GB, free: 9.633 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006764/2.473, allocations: 5.549 MB / 0.7312 GB, free: 4.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002906/2.476, allocations: 1.451 MB / 0.7326 GB, free: 3.586 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001453/2.477, allocations: 0 / 0.7326 GB, free: 3.586 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0009792/2.478, allocations: 0.7128 MB / 0.7333 GB, free: 2.977 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01524/2.494, allocations: 4.237 MB / 0.7375 GB, free: 0 / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01599/2.51, allocations: 9.095 MB / 0.7464 GB, free: 5.129 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01515/2.525, allocations: 5.963 MB / 0.7522 GB, free: 364 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002842/2.525, allocations: 52 kB / 0.7522 GB, free: 312 kB / 394.7 MB Notification: Performance of matching and sorting (n=1244) (initialization): time 0.05948/2.585, allocations: 15.8 MB / 0.7677 GB, free: 3.805 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001665/2.585, allocations: 80 kB / 0.7677 GB, free: 3.727 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000317/2.585, allocations: 180 kB / 0.7679 GB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02619/2.612, allocations: 4.554 MB / 0.7723 GB, free: 256 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3546/2.966, allocations: 2.015 MB / 0.7743 GB, free: 91.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09117/3.057, allocations: 23.44 MB / 0.7972 GB, free: 90.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01831/3.076, allocations: 371.8 kB / 0.7976 GB, free: 90.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00328/3.079, allocations: 0.5227 MB / 0.7981 GB, free: 90.48 MB / 410.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.004571/3.084, allocations: 0.5789 MB / 0.7986 GB, free: 90.37 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05431/3.138, allocations: 10.44 MB / 0.8088 GB, free: 89.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002765/3.141, allocations: 0.683 MB / 0.8095 GB, free: 89.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03842/3.179, allocations: 10.5 MB / 0.8198 GB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001021/3.179, allocations: 40 kB / 0.8198 GB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.601e-05/3.18, allocations: 22.88 kB / 0.8198 GB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001031/3.18, allocations: 21.81 kB / 0.8198 GB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08967/3.269, allocations: 22.14 MB / 0.8415 GB, free: 77.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.718e-05/3.269, allocations: 6.594 kB / 0.8415 GB, free: 77.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006533/3.276, allocations: 0.5373 MB / 0.842 GB, free: 77.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02829/3.304, allocations: 4.047 MB / 0.8459 GB, free: 76.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000951/3.305, allocations: 11.66 kB / 0.846 GB, free: 76.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05856/3.364, allocations: 20.28 MB / 0.8658 GB, free: 62.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.399e-05/3.364, allocations: 18.33 kB / 0.8658 GB, free: 62.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06628/3.43, allocations: 17.2 MB / 0.8826 GB, free: 47.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007661/3.438, allocations: 1.344 MB / 0.8839 GB, free: 46.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003675/3.442, allocations: 15.27 kB / 0.8839 GB, free: 46.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0105/3.452, allocations: 185.4 kB / 0.8841 GB, free: 46.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002384/3.455, allocations: 287.4 kB / 0.8844 GB, free: 46.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000977/3.456, allocations: 120.7 kB / 0.8845 GB, free: 46.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01547/3.471, allocations: 4.136 MB / 0.8885 GB, free: 42.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.894e-06/3.471, allocations: 0 / 0.8885 GB, free: 42.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.02144/3.493, allocations: 1.937 MB / 0.8904 GB, free: 40.57 MB / 410.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.07052/3.563, allocations: 19.15 MB / 0.9091 GB, free: 23.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.314/3.877, allocations: 10.07 MB / 0.9189 GB, free: 94.37 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/3.878, allocations: 3.594 kB / 0.9189 GB, free: 94.37 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01002/3.888, allocations: 4.24 MB / 0.9231 GB, free: 94.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008647/3.896, allocations: 0.913 MB / 0.924 GB, free: 94.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0824/3.979, allocations: 21.47 MB / 0.9449 GB, free: 90.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01738/3.996, allocations: 6.573 MB / 0.9514 GB, free: 89.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01095/4.007, allocations: 4.319 MB / 0.9556 GB, free: 89.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/4.007, allocations: 0 / 0.9556 GB, free: 89.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.315/10.32, allocations: 205.8 MB / 1.157 GB, free: 30.05 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat