Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.603/2.603, allocations: 270 MB / 283.6 MB, free: 1.871 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.106e-05/4.122e-05, allocations: 3.984 kB / 348.5 MB, free: 2.637 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4305/0.4306, allocations: 61.86 MB / 410.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2184/0.6491, allocations: 117.3 MB / 0.5153 GB, free: 5.121 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003443/0.6495, allocations: 83.94 kB / 0.5154 GB, free: 5.039 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9769/1.626, allocations: 144.9 MB / 0.6569 GB, free: 15.93 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.626, allocations: 0 / 0.6569 GB, free: 15.93 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000536/1.627, allocations: 128 kB / 0.657 GB, free: 15.8 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.03032/1.657, allocations: 6.634 MB / 0.6635 GB, free: 9.098 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.225e-05/1.657, allocations: 12.02 kB / 0.6635 GB, free: 9.086 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006354/1.664, allocations: 1.28 MB / 0.6647 GB, free: 7.793 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07177/1.736, allocations: 9.324 MB / 0.6738 GB, free: 14.45 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03602/1.772, allocations: 8.666 MB / 0.6823 GB, free: 5.695 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008131/1.773, allocations: 484.7 kB / 0.6827 GB, free: 5.219 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00379/1.776, allocations: 0.6403 MB / 0.6834 GB, free: 4.578 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05606/1.832, allocations: 15.48 MB / 0.6985 GB, free: 3.902 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005632/1.833, allocations: 79.31 kB / 0.6986 GB, free: 3.824 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003121/1.836, allocations: 299.8 kB / 0.6988 GB, free: 3.531 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003677/1.84, allocations: 1.385 MB / 0.7002 GB, free: 2.141 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04666/1.887, allocations: 12.5 MB / 0.7124 GB, free: 5.625 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5398/2.427, allocations: 64.4 MB / 0.7753 GB, free: 58.28 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02906/2.456, allocations: 6.21 MB / 0.7814 GB, free: 57.6 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006273/2.462, allocations: 3.114 MB / 0.7844 GB, free: 57.56 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02543/2.487, allocations: 11.15 MB / 0.7953 GB, free: 54.33 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.403e-05/2.488, allocations: 63.72 kB / 0.7953 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 6.362e-06/2.488, allocations: 0 / 0.7953 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=337): time 0.1726/2.66, allocations: 29.49 MB / 0.8241 GB, free: 46.43 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/2.66, allocations: 235.7 kB / 0.8244 GB, free: 46.17 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01325/2.674, allocations: 4.916 MB / 0.8292 GB, free: 44.49 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009498/2.675, allocations: 76.3 kB / 0.8292 GB, free: 44.42 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004475/2.679, allocations: 4.47 MB / 0.8336 GB, free: 41.24 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002083/2.681, allocations: 1.233 MB / 0.8348 GB, free: 40.32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001519/2.683, allocations: 170.2 kB / 0.835 GB, free: 40.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0009273/2.684, allocations: 0.647 MB / 0.8356 GB, free: 39.75 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009032/2.693, allocations: 3.531 MB / 0.8391 GB, free: 38.41 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01209/2.705, allocations: 8.026 MB / 0.8469 GB, free: 29.37 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/2.717, allocations: 5.284 MB / 0.8521 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001648/2.717, allocations: 44 kB / 0.8521 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.04907/2.766, allocations: 14.16 MB / 0.8659 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000135/2.766, allocations: 74.03 kB / 0.866 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002677/2.767, allocations: 160 kB / 0.8661 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0213/2.788, allocations: 3.562 MB / 0.8696 GB, free: 10.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01154/2.8, allocations: 1.798 MB / 0.8714 GB, free: 9.266 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05138/2.851, allocations: 18.24 MB / 0.8892 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01083/2.862, allocations: 488.6 kB / 0.8897 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002269/2.864, allocations: 467.4 kB / 0.8901 GB, free: 9.816 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (972): * Single equations (assignments): 968 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003549/2.868, allocations: 0.7241 MB / 0.8908 GB, free: 9.094 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001861/2.87, allocations: 0.5283 MB / 0.8913 GB, free: 8.559 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03705/2.907, allocations: 8.802 MB / 0.8999 GB, free: 1.629 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.014e-05/2.907, allocations: 36 kB / 0.9 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.86e-05/2.907, allocations: 16 kB / 0.9 GB, free: 1.578 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.233e-05/2.907, allocations: 19.89 kB / 0.9 GB, free: 1.559 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5008/3.408, allocations: 18.57 MB / 0.9181 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.896e-05/3.408, allocations: 6.094 kB / 0.9181 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004982/3.413, allocations: 498.8 kB / 0.9186 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02051/3.434, allocations: 3.098 MB / 0.9216 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009322/3.435, allocations: 64.56 kB / 0.9217 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04093/3.476, allocations: 15.59 MB / 0.9369 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.199e-05/3.476, allocations: 7.25 kB / 0.9369 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04189/3.518, allocations: 14.04 MB / 0.9506 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001856/3.519, allocations: 0.5562 MB / 0.9512 GB, free: 114.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002293/3.522, allocations: 58.41 kB / 0.9512 GB, free: 114.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006061/3.528, allocations: 205.8 kB / 0.9514 GB, free: 114.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001459/3.529, allocations: 221.4 kB / 0.9516 GB, free: 114.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005821/3.53, allocations: 93.66 kB / 0.9517 GB, free: 114.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.009145/3.539, allocations: 3.463 MB / 0.9551 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.71e-07/3.539, allocations: 2.25 kB / 0.9551 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0117/3.551, allocations: 1.678 MB / 0.9568 GB, free: 114.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 249 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04489/3.596, allocations: 15.96 MB / 0.9723 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02023/3.616, allocations: 8.531 MB / 0.9807 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.55e-05/3.616, allocations: 3.094 kB / 0.9807 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008593/3.625, allocations: 3.382 MB / 0.984 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006707/3.632, allocations: 0.6938 MB / 0.9846 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05048/3.682, allocations: 15.02 MB / 0.9993 GB, free: 98.27 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01212/3.694, allocations: 4.96 MB / 1.004 GB, free: 96.61 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01329/3.708, allocations: 2.591 MB / 1.007 GB, free: 96.21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007702/3.715, allocations: 3.052 MB / 1.01 GB, free: 93.37 MB / 0.5417 GB Notification: Performance of SimCode: time 2.054e-06/3.716, allocations: 0 / 1.01 GB, free: 93.37 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6915/4.407, allocations: 131.4 MB / 1.138 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002645/4.407, allocations: 173.3 kB / 1.138 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.869/12.28, allocations: 2.438 kB / 1.138 GB, free: 113.6 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat