Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.095/1.095, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.541e-05/3.553e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.177, allocations: 25.14 MB / 176.6 MB, free: 16 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06814/0.2452, allocations: 37.4 MB / 214 MB, free: 12.06 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.2455, allocations: 59.97 kB / 214.1 MB, free: 12 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07061/0.3162, allocations: 12.82 MB / 226.9 MB, free: 15.13 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3162, allocations: 0 / 226.9 MB, free: 15.13 MB / 202.7 MB Notification: Performance of Transformations before backend: time 3.743e-05/0.3163, allocations: 16 kB / 226.9 MB, free: 15.12 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.006084/0.3224, allocations: 1.122 MB / 228.1 MB, free: 13.94 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.451e-05/0.3225, allocations: 8.031 kB / 228.1 MB, free: 13.93 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000441/0.3229, allocations: 78.53 kB / 228.1 MB, free: 13.84 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004799/0.3234, allocations: 83.06 kB / 228.2 MB, free: 13.76 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/0.3256, allocations: 0.5768 MB / 228.8 MB, free: 13.14 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.94e-05/0.3257, allocations: 28.78 kB / 228.8 MB, free: 13.11 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003845/0.3261, allocations: 43.91 kB / 228.9 MB, free: 13.07 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005457/0.3316, allocations: 1.434 MB / 230.3 MB, free: 11.62 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.529e-05/0.3317, allocations: 7.938 kB / 230.3 MB, free: 11.61 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003361/0.332, allocations: 20 kB / 230.3 MB, free: 11.59 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.332, allocations: 8 kB / 230.3 MB, free: 11.59 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00784/0.3399, allocations: 2.145 MB / 232.5 MB, free: 9.441 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0159/0.3559, allocations: 3.098 MB / 235.6 MB, free: 6.262 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003808/0.3597, allocations: 1.013 MB / 236.6 MB, free: 5.23 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003036/0.3628, allocations: 0.8572 MB / 237.5 MB, free: 4.367 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001436/0.363, allocations: 12.22 kB / 237.5 MB, free: 4.355 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003882/0.3669, allocations: 1.208 MB / 238.7 MB, free: 3.105 MB / 202.7 MB Notification: Performance of pre-optimization done (n=44): time 5.35e-06/0.367, allocations: 0 / 238.7 MB, free: 3.105 MB / 202.7 MB Notification: Performance of matching and sorting (n=46): time 0.02151/0.3885, allocations: 5.816 MB / 244.5 MB, free: 13.15 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.3887, allocations: 136.5 kB / 244.6 MB, free: 12.99 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002684/0.3914, allocations: 0.7845 MB / 245.4 MB, free: 12.2 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003764/0.3918, allocations: 61.69 kB / 245.5 MB, free: 12.13 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003708/0.3922, allocations: 310.8 kB / 245.8 MB, free: 11.82 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004288/0.3926, allocations: 162 kB / 245.9 MB, free: 11.66 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.3929, allocations: 20 kB / 246 MB, free: 11.64 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.3931, allocations: 330.8 kB / 246.3 MB, free: 11.31 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003382/0.3965, allocations: 1.044 MB / 247.3 MB, free: 10.27 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002719/0.3992, allocations: 1.131 MB / 248.5 MB, free: 9.105 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.4017, allocations: 1.002 MB / 249.5 MB, free: 8.094 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.4017, allocations: 7.953 kB / 249.5 MB, free: 8.086 MB / 218.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.008925/0.4107, allocations: 3.27 MB / 252.7 MB, free: 4.785 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.335e-05/0.4108, allocations: 63.39 kB / 252.8 MB, free: 4.711 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.4108, allocations: 0 / 252.8 MB, free: 4.711 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1666/0.5775, allocations: 11.43 MB / 264.2 MB, free: 66.96 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.5786, allocations: 130.5 kB / 264.4 MB, free: 66.94 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01265/0.5912, allocations: 7.09 MB / 271.4 MB, free: 62.98 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002883/0.5942, allocations: 312.7 kB / 271.7 MB, free: 62.87 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/0.5945, allocations: 112.9 kB / 271.9 MB, free: 62.85 MB / 218.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003854/0.5949, allocations: 213.3 kB / 272.1 MB, free: 62.65 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002489/0.5951, allocations: 75.16 kB / 272.1 MB, free: 62.65 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002803/0.5954, allocations: 99.92 kB / 272.2 MB, free: 62.58 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.5955, allocations: 7.844 kB / 272.2 MB, free: 62.58 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.5955, allocations: 4.828 kB / 272.2 MB, free: 62.57 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.138e-06/0.5955, allocations: 0 / 272.2 MB, free: 62.57 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.6059, allocations: 4.488 MB / 276.7 MB, free: 58.57 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.606, allocations: 3.984 kB / 276.7 MB, free: 58.56 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000896/0.6069, allocations: 88.06 kB / 276.8 MB, free: 58.48 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01639/0.6233, allocations: 11.33 MB / 288.2 MB, free: 47.12 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002142/0.6236, allocations: 39.97 kB / 288.2 MB, free: 47.09 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01142/0.635, allocations: 6.806 MB / 295 MB, free: 40.03 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/0.6351, allocations: 10.34 kB / 295 MB, free: 40.02 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009059/0.6441, allocations: 4.282 MB / 299.3 MB, free: 35.7 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/0.6455, allocations: 402.1 kB / 299.7 MB, free: 35.29 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003116/0.6458, allocations: 24 kB / 299.7 MB, free: 35.26 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002859/0.6487, allocations: 327.6 kB / 300 MB, free: 34.94 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002671/0.6514, allocations: 0.651 MB / 300.7 MB, free: 34.29 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000338/0.6518, allocations: 104 kB / 300.8 MB, free: 34.19 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001095/0.6529, allocations: 0.6163 MB / 301.4 MB, free: 33.57 MB / 218.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6529, allocations: 0 / 301.4 MB, free: 33.57 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001231/0.6542, allocations: 213.2 kB / 301.6 MB, free: 33.37 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 11 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,$whenCondition2,stop2.mode,stop2.startBackward,stop2.startForward,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005021/0.6592, allocations: 3.652 MB / 305.3 MB, free: 29.66 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002631/0.6619, allocations: 1.735 MB / 307 MB, free: 27.89 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.6619, allocations: 4 kB / 307 MB, free: 27.88 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.6634, allocations: 0.9964 MB / 308 MB, free: 26.85 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007487/0.6642, allocations: 58.14 kB / 308 MB, free: 26.79 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008055/0.6723, allocations: 2.185 MB / 310.2 MB, free: 24.58 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.6728, allocations: 0.9263 MB / 311.2 MB, free: 23.62 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004745/0.6733, allocations: 211.3 kB / 311.4 MB, free: 23.42 MB / 218.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6733, allocations: 0 / 311.4 MB, free: 23.42 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.111/3.785, allocations: 16.35 MB / 327.7 MB, free: 7.074 MB / 218.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat