Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.214/2.214, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.094e-05/5.099e-05, allocations: 4 kB / 284.4 MB, free: 8.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1409, allocations: 50.36 MB / 334.8 MB, free: 6.145 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.476/0.617, allocations: 82.35 MB / 417.1 MB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.6174, allocations: 73.22 kB / 417.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03478/0.6522, allocations: 7.03 MB / 424.2 MB, free: 5.621 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6522, allocations: 0 / 424.2 MB, free: 5.621 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.918e-05/0.6523, allocations: 8 kB / 424.2 MB, free: 5.613 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00167/0.654, allocations: 0.5804 MB / 424.8 MB, free: 5.008 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.654, allocations: 11.97 kB / 424.8 MB, free: 4.996 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000124/0.6542, allocations: 70.97 kB / 424.9 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.6543, allocations: 35.62 kB / 424.9 MB, free: 4.902 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005214/0.6548, allocations: 269.7 kB / 425.2 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003185/0.6551, allocations: 147.4 kB / 425.3 MB, free: 4.469 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.93e-05/0.6552, allocations: 33.78 kB / 425.4 MB, free: 4.445 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.6565, allocations: 0.4998 MB / 425.9 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.6566, allocations: 0 / 425.9 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.995e-05/0.6567, allocations: 14.12 kB / 425.9 MB, free: 4.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.6567, allocations: 8 kB / 425.9 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.6578, allocations: 409.6 kB / 426.3 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00247/0.6603, allocations: 1.018 MB / 427.3 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.6619, allocations: 415.6 kB / 427.7 MB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005278/0.6625, allocations: 209.8 kB / 427.9 MB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.558e-05/0.6626, allocations: 11.56 kB / 427.9 MB, free: 2.363 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.6626, allocations: 38 kB / 428 MB, free: 2.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.566e-06/0.6627, allocations: 0 / 428 MB, free: 2.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01483/0.6775, allocations: 2.076 MB / 430 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.6777, allocations: 155.8 kB / 430.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.678, allocations: 184.5 kB / 430.4 MB, free: 492 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001398/0.6782, allocations: 40.39 kB / 430.4 MB, free: 452 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.6783, allocations: 201.8 kB / 430.6 MB, free: 260 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002856/0.6786, allocations: 194.3 kB / 430.8 MB, free: 92 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.6788, allocations: 14.62 kB / 430.8 MB, free: 88 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.6789, allocations: 335.9 kB / 431.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.6802, allocations: 477.9 kB / 431.6 MB, free: 15.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.6816, allocations: 0.641 MB / 432.2 MB, free: 15.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.6829, allocations: 439.7 kB / 432.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.6829, allocations: 0 / 432.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003032/0.6859, allocations: 1.079 MB / 433.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.686, allocations: 8 kB / 433.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.686, allocations: 4 kB / 433.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.729e-05/0.6861, allocations: 12.09 kB / 433.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002695/0.6888, allocations: 235 kB / 434 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.921e-05/0.6888, allocations: 15.94 kB / 434 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/0.6907, allocations: 121.5 kB / 434.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/0.6909, allocations: 31.86 kB / 434.2 MB, free: 13.78 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003574/0.6913, allocations: 156.8 kB / 434.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000512/0.6918, allocations: 146.1 kB / 434.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002121/0.692, allocations: 64.22 kB / 434.5 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.6921, allocations: 12 kB / 434.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/0.6921, allocations: 3.984 kB / 434.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.6921, allocations: 3.953 kB / 434.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006564/0.6987, allocations: 1.992 MB / 436.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/0.6988, allocations: 12 kB / 436.6 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/0.7004, allocations: 202.6 kB / 436.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.46e-05/0.7005, allocations: 16 kB / 436.8 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.699e-05/0.7006, allocations: 26.56 kB / 436.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.69e-05/0.7006, allocations: 19.92 kB / 436.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.837e-05/0.7006, allocations: 15.94 kB / 436.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003021/0.7037, allocations: 1.751 MB / 438.6 MB, free: 9.594 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003839/0.7041, allocations: 172.2 kB / 438.7 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.7042, allocations: 33.36 kB / 438.8 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.7054, allocations: 94.92 kB / 438.9 MB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003435/0.7058, allocations: 105.2 kB / 439 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.482e-05/0.7059, allocations: 35.61 kB / 439 MB, free: 9.203 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002272/0.7061, allocations: 150 kB / 439.2 MB, free: 9.078 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7061, allocations: 3.938 kB / 439.2 MB, free: 9.074 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001532/0.7077, allocations: 121 kB / 439.3 MB, free: 8.973 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004525/0.7122, allocations: 5.362 MB / 444.6 MB, free: 3.621 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002646/0.7149, allocations: 0.8469 MB / 445.5 MB, free: 2.773 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.334e-05/0.715, allocations: 0 / 445.5 MB, free: 2.773 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008893/0.7159, allocations: 227 kB / 445.7 MB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.717, allocations: 120.6 kB / 445.8 MB, free: 2.438 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004074/0.7211, allocations: 1.088 MB / 446.9 MB, free: 1.172 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005245/0.7216, allocations: 0.8207 MB / 447.7 MB, free: 332 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007148/0.7224, allocations: 119.4 kB / 447.9 MB, free: 212 kB / 362.7 MB Notification: Performance of SimCode: time 1.432e-06/0.7224, allocations: 0 / 447.9 MB, free: 212 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.798/3.52, allocations: 8.194 MB / 456 MB, free: 8 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat