Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.5/2.5, allocations: 270 MB / 283.6 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.782e-05/5.806e-05, allocations: 4 kB / 348.5 MB, free: 2.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4801/0.4802, allocations: 61.86 MB / 410.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2394/0.7196, allocations: 110.7 MB / 0.5088 GB, free: 11.86 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003299/0.72, allocations: 79.94 kB / 0.5089 GB, free: 11.78 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.21/1.93, allocations: 205.4 MB / 0.7095 GB, free: 9.562 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.594e-06/1.93, allocations: 4 kB / 0.7095 GB, free: 9.559 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0009024/1.931, allocations: 223.9 kB / 0.7097 GB, free: 9.34 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3739 * Number of variables: 3739 Notification: Performance of Generate backend data structure: time 0.9187/2.85, allocations: 10.56 MB / 0.72 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 8.857e-05/2.85, allocations: 9.766 kB / 0.72 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0127/2.862, allocations: 1.862 MB / 0.7218 GB, free: 53.37 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1084/2.971, allocations: 12.43 MB / 0.734 GB, free: 52.64 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0513/3.022, allocations: 11.46 MB / 0.7452 GB, free: 52.12 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001489/3.024, allocations: 0.8209 MB / 0.746 GB, free: 52.09 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007541/3.031, allocations: 1.099 MB / 0.747 GB, free: 52.08 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09857/3.13, allocations: 25.58 MB / 0.772 GB, free: 46.89 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008246/3.131, allocations: 139.1 kB / 0.7722 GB, free: 46.88 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005305/3.136, allocations: 0.5083 MB / 0.7727 GB, free: 46.88 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005467/3.142, allocations: 2.35 MB / 0.775 GB, free: 46.86 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06897/3.211, allocations: 20.62 MB / 0.7951 GB, free: 46.82 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.201/3.412, allocations: 108.8 MB / 0.9013 GB, free: 9.812 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06088/3.473, allocations: 12.31 MB / 0.9133 GB, free: 0 / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01663/3.489, allocations: 6.986 MB / 0.9202 GB, free: 9.715 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004564/3.494, allocations: 2.329 MB / 0.9224 GB, free: 7.211 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001515/3.494, allocations: 88.73 kB / 0.9225 GB, free: 7.121 MB / 0.573 GB Notification: Performance of pre-optimization done (n=443): time 9.418e-06/3.494, allocations: 0 / 0.9225 GB, free: 7.121 MB / 0.573 GB Notification: Performance of matching and sorting (n=527): time 0.677/4.171, allocations: 49.15 MB / 0.9705 GB, free: 105.4 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/4.172, allocations: 313.3 kB / 0.9708 GB, free: 105 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0233/4.195, allocations: 8.548 MB / 0.9792 GB, free: 104.4 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001685/4.197, allocations: 103.1 kB / 0.9793 GB, free: 104.4 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.007682/4.204, allocations: 7.14 MB / 0.9862 GB, free: 101.1 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003439/4.208, allocations: 1.95 MB / 0.9881 GB, free: 99.99 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002381/4.21, allocations: 255.5 kB / 0.9884 GB, free: 99.99 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001456/4.212, allocations: 0.8498 MB / 0.9892 GB, free: 99.66 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01424/4.226, allocations: 5.489 MB / 0.9946 GB, free: 99.62 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02013/4.246, allocations: 12.45 MB / 1.007 GB, free: 90.67 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02003/4.266, allocations: 8.218 MB / 1.015 GB, free: 90.57 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003271/4.267, allocations: 68.81 kB / 1.015 GB, free: 90.57 MB / 0.573 GB Notification: Performance of matching and sorting (n=1662) (initialization): time 0.06026/4.327, allocations: 20.1 MB / 1.034 GB, free: 87.64 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002126/4.327, allocations: 113.4 kB / 1.035 GB, free: 87.64 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003947/4.328, allocations: 246.2 kB / 1.035 GB, free: 87.64 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/4.342, allocations: 3.24 MB / 1.038 GB, free: 87.05 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02139/4.363, allocations: 3.091 MB / 1.041 GB, free: 86.71 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04456/4.408, allocations: 22.51 MB / 1.063 GB, free: 74.68 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01684/4.425, allocations: 0.7632 MB / 1.064 GB, free: 74.15 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003616/4.428, allocations: 0.7348 MB / 1.064 GB, free: 73.45 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1122 * Number of states: 0 () * Number of discrete variables: 126 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (1542): * Single equations (assignments): 1535 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005745/4.434, allocations: 1.098 MB / 1.065 GB, free: 72.36 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003215/4.437, allocations: 0.8677 MB / 1.066 GB, free: 71.48 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03909/4.477, allocations: 12.27 MB / 1.078 GB, free: 61.59 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.479e-05/4.477, allocations: 56 kB / 1.078 GB, free: 61.53 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.169e-05/4.477, allocations: 23.02 kB / 1.078 GB, free: 61.52 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001406/4.477, allocations: 28.84 kB / 1.078 GB, free: 61.52 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09026/4.567, allocations: 27.16 MB / 1.105 GB, free: 39.76 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-05/4.567, allocations: 4 kB / 1.105 GB, free: 39.76 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0102/4.578, allocations: 0.9768 MB / 1.106 GB, free: 39 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01327/4.591, allocations: 2.818 MB / 1.109 GB, free: 37.03 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001651/4.593, allocations: 95.7 kB / 1.109 GB, free: 36.94 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04228/4.635, allocations: 21.03 MB / 1.129 GB, free: 18.14 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.338e-06/4.635, allocations: 7.938 kB / 1.129 GB, free: 18.13 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5145/5.149, allocations: 20.42 MB / 1.149 GB, free: 93.95 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004067/5.154, allocations: 0.9347 MB / 1.15 GB, free: 93.86 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004659/5.158, allocations: 98.28 kB / 1.15 GB, free: 93.86 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01108/5.169, allocations: 408 kB / 1.151 GB, free: 93.86 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002353/5.172, allocations: 330.9 kB / 1.151 GB, free: 93.86 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001684/5.174, allocations: 131.4 kB / 1.151 GB, free: 93.86 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01874/5.192, allocations: 6.103 MB / 1.157 GB, free: 93.57 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.453e-06/5.192, allocations: 0 / 1.157 GB, free: 93.57 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02118/5.214, allocations: 2.623 MB / 1.16 GB, free: 93.57 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (435): * Single equations (assignments): 428 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05712/5.271, allocations: 21.54 MB / 1.181 GB, free: 90.25 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03396/5.305, allocations: 13.51 MB / 1.194 GB, free: 89.69 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.508e-05/5.305, allocations: 0 / 1.194 GB, free: 89.69 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01853/5.323, allocations: 5.954 MB / 1.2 GB, free: 89.19 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01197/5.335, allocations: 1.169 MB / 1.201 GB, free: 89.16 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1016/5.437, allocations: 24.87 MB / 1.225 GB, free: 83.72 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02104/5.458, allocations: 7.582 MB / 1.232 GB, free: 81.5 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.02218/5.48, allocations: 4.228 MB / 1.237 GB, free: 81.34 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01749/5.498, allocations: 5.278 MB / 1.242 GB, free: 76.98 MB / 0.573 GB Notification: Performance of SimCode: time 2.786e-06/5.498, allocations: 4 kB / 1.242 GB, free: 76.97 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.928/6.426, allocations: 200.7 MB / 1.438 GB, free: 92.88 MB / 0.5887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002332/6.426, allocations: 160.9 kB / 1.438 GB, free: 92.66 MB / 0.5887 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/19.26, allocations: 4.703 kB / 1.438 GB, free: 92.65 MB / 0.5887 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat