Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.562/2.562, allocations: 270.1 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.079e-05/4.1e-05, allocations: 4 kB / 348.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1404, allocations: 61.9 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6033/0.7437, allocations: 119.5 MB / 0.5174 GB, free: 400 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000353/0.7441, allocations: 75.95 kB / 0.5175 GB, free: 324 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.142/1.886, allocations: 174.1 MB / 0.6876 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.355e-06/1.886, allocations: 0 / 0.6876 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005169/1.887, allocations: 146.4 kB / 0.6877 GB, free: 109.9 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03322/1.92, allocations: 7.688 MB / 0.6952 GB, free: 105 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/1.92, allocations: 9.688 kB / 0.6952 GB, free: 105 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008023/1.928, allocations: 1.62 MB / 0.6968 GB, free: 104 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05395/1.982, allocations: 6.946 MB / 0.7036 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03348/2.015, allocations: 9.259 MB / 0.7126 GB, free: 91.02 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007927/2.016, allocations: 0.5795 MB / 0.7132 GB, free: 90.49 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005021/2.021, allocations: 0.7598 MB / 0.7139 GB, free: 89.78 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06726/2.089, allocations: 20.47 MB / 0.7339 GB, free: 68.03 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005887/2.089, allocations: 91.12 kB / 0.734 GB, free: 67.94 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00452/2.094, allocations: 362.9 kB / 0.7343 GB, free: 67.64 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004614/2.098, allocations: 1.961 MB / 0.7363 GB, free: 65.68 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05678/2.155, allocations: 17.64 MB / 0.7535 GB, free: 48.04 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5747/2.73, allocations: 82.17 MB / 0.8337 GB, free: 65.91 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03297/2.763, allocations: 7.279 MB / 0.8408 GB, free: 64.67 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009926/2.773, allocations: 3.936 MB / 0.8447 GB, free: 64.61 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04993/2.823, allocations: 18.18 MB / 0.8624 GB, free: 60.17 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.98e-05/2.823, allocations: 67.09 kB / 0.8625 GB, free: 60.12 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=332): time 7.524e-06/2.823, allocations: 0 / 0.8625 GB, free: 60.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=413): time 0.1447/2.968, allocations: 25.88 MB / 0.8878 GB, free: 55.48 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/2.968, allocations: 195.5 kB / 0.888 GB, free: 55.29 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01473/2.983, allocations: 5.652 MB / 0.8935 GB, free: 53.27 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001053/2.984, allocations: 88.3 kB / 0.8936 GB, free: 53.19 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00513/2.989, allocations: 5.428 MB / 0.8989 GB, free: 49.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002485/2.992, allocations: 1.523 MB / 0.9004 GB, free: 47.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001899/2.993, allocations: 206.4 kB / 0.9006 GB, free: 47.74 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001101/2.995, allocations: 0.7561 MB / 0.9013 GB, free: 47.24 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01069/3.005, allocations: 4.027 MB / 0.9052 GB, free: 45.84 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01524/3.021, allocations: 9.798 MB / 0.9148 GB, free: 36.69 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01445/3.035, allocations: 6.242 MB / 0.9209 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002618/3.035, allocations: 57.56 kB / 0.9209 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.04978/3.085, allocations: 15.07 MB / 0.9357 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001507/3.085, allocations: 92 kB / 0.9358 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003165/3.086, allocations: 207.7 kB / 0.9359 GB, free: 29.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01386/3.1, allocations: 2.338 MB / 0.9382 GB, free: 27.31 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01601/3.116, allocations: 2.446 MB / 0.9406 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03012/3.146, allocations: 11.53 MB / 0.9519 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01376/3.16, allocations: 0.6901 MB / 0.9526 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002691/3.162, allocations: 0.5858 MB / 0.9531 GB, free: 14.04 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1272): * Single equations (assignments): 1265 * Array equations: 6 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004513/3.167, allocations: 0.8816 MB / 0.954 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002055/3.169, allocations: 0.5939 MB / 0.9546 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0312/3.2, allocations: 8.081 MB / 0.9625 GB, free: 6.004 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001234/3.201, allocations: 59.36 kB / 0.9625 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.41e-05/3.201, allocations: 8 kB / 0.9625 GB, free: 5.941 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.519e-05/3.201, allocations: 20.31 kB / 0.9625 GB, free: 5.938 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07044/3.271, allocations: 18.84 MB / 0.9809 GB, free: 6.738 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.019e-05/3.271, allocations: 12.22 kB / 0.9809 GB, free: 6.727 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006422/3.278, allocations: 0.6467 MB / 0.9816 GB, free: 6.199 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01471/3.292, allocations: 1.883 MB / 0.9834 GB, free: 4.918 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001097/3.294, allocations: 75.61 kB / 0.9835 GB, free: 4.848 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03051/3.324, allocations: 9.871 MB / 0.9931 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.761e-05/3.324, allocations: 19.94 kB / 0.9932 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0428/3.367, allocations: 14.16 MB / 1.007 GB, free: 13.6 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002561/3.37, allocations: 0.6377 MB / 1.008 GB, free: 12.93 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002959/3.373, allocations: 72 kB / 1.008 GB, free: 12.86 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008433/3.381, allocations: 267.8 kB / 1.008 GB, free: 12.61 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001671/3.383, allocations: 261.6 kB / 1.008 GB, free: 12.35 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008624/3.384, allocations: 116 kB / 1.008 GB, free: 12.24 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01201/3.396, allocations: 3.912 MB / 1.012 GB, free: 8.332 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.92e-07/3.396, allocations: 0 / 1.012 GB, free: 8.332 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01444/3.41, allocations: 1.937 MB / 1.014 GB, free: 6.414 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (324): * Single equations (assignments): 317 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06424/3.475, allocations: 17.11 MB / 1.031 GB, free: 4.852 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.4796/3.954, allocations: 9.31 MB / 1.04 GB, free: 173.1 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/3.954, allocations: 3.953 kB / 1.04 GB, free: 173.1 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009524/3.964, allocations: 3.226 MB / 1.043 GB, free: 172.9 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006849/3.971, allocations: 0.723 MB / 1.044 GB, free: 172.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06425/4.035, allocations: 17.15 MB / 1.06 GB, free: 169.7 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01601/4.051, allocations: 5.743 MB / 1.066 GB, free: 168.9 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01719/4.068, allocations: 3.331 MB / 1.069 GB, free: 168.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00999/4.079, allocations: 3.68 MB / 1.073 GB, free: 168.8 MB / 0.5886 GB Notification: Performance of SimCode: time 2.114e-06/4.079, allocations: 0 / 1.073 GB, free: 168.8 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3199/4.398, allocations: 141.6 MB / 1.211 GB, free: 70.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002485/4.399, allocations: 167.6 kB / 1.211 GB, free: 70.29 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.022/13.42, allocations: 3.938 kB / 1.211 GB, free: 70.28 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat