Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.41/2.41, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.703e-05/3.699e-05, allocations: 4 kB / 284.4 MB, free: 8.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1215, allocations: 50.36 MB / 334.8 MB, free: 6.141 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4792/0.6008, allocations: 82.11 MB / 416.9 MB, free: 11.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.6012, allocations: 70.41 kB / 416.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03347/0.6347, allocations: 7.236 MB / 424.2 MB, free: 5.609 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6347, allocations: 7.938 kB / 424.2 MB, free: 5.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.062e-05/0.6348, allocations: 12 kB / 424.2 MB, free: 5.59 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.00133/0.6361, allocations: 0.5717 MB / 424.8 MB, free: 4.996 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.6362, allocations: 8.031 kB / 424.8 MB, free: 4.988 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.6363, allocations: 65.34 kB / 424.8 MB, free: 4.934 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.6364, allocations: 40.22 kB / 424.9 MB, free: 4.895 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008823/0.6373, allocations: 352.5 kB / 425.2 MB, free: 4.547 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.993e-05/0.6374, allocations: 21.12 kB / 425.2 MB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.474e-05/0.6374, allocations: 38.72 kB / 425.3 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.6389, allocations: 0.6473 MB / 425.9 MB, free: 3.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.639, allocations: 0 / 425.9 MB, free: 3.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.701e-05/0.639, allocations: 15.67 kB / 425.9 MB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.6391, allocations: 12 kB / 426 MB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004393/0.6395, allocations: 148 kB / 426.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.6407, allocations: 0.7649 MB / 426.9 MB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.6418, allocations: 0.5393 MB / 427.4 MB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004848/0.6423, allocations: 221.6 kB / 427.6 MB, free: 2.441 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008563/0.6432, allocations: 0.5931 MB / 428.2 MB, free: 1.723 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.6433, allocations: 45.97 kB / 428.3 MB, free: 1.672 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.316e-06/0.6433, allocations: 4 kB / 428.3 MB, free: 1.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0009108/0.6442, allocations: 323.7 kB / 428.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.6444, allocations: 180.7 kB / 428.8 MB, free: 1.215 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003348/0.6447, allocations: 224.8 kB / 429 MB, free: 1.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.629e-05/0.6448, allocations: 32.39 kB / 429 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.6449, allocations: 203.2 kB / 429.2 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.273e-05/0.645, allocations: 46.16 kB / 429.2 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.337e-05/0.645, allocations: 15.11 kB / 429.3 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.6452, allocations: 338.5 kB / 429.6 MB, free: 448 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.6454, allocations: 69.94 kB / 429.7 MB, free: 400 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004602/0.6458, allocations: 407.5 kB / 430.1 MB, free: 15.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003199/0.6462, allocations: 135.2 kB / 430.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/0.6462, allocations: 11.94 kB / 430.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009532/0.6472, allocations: 412 kB / 430.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.6472, allocations: 12 kB / 430.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.6472, allocations: 12 kB / 430.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.776e-05/0.6473, allocations: 16 kB / 430.6 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006646/0.648, allocations: 123.2 kB / 430.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.239e-05/0.648, allocations: 23.88 kB / 430.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004082/0.6484, allocations: 59.09 kB / 430.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.922e-05/0.6485, allocations: 31.56 kB / 430.9 MB, free: 15.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0002016/0.6487, allocations: 155.7 kB / 431 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007247/0.6494, allocations: 298.9 kB / 431.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007996/0.6503, allocations: 317.5 kB / 431.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.6503, allocations: 4 kB / 431.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.6503, allocations: 0 / 431.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.6503, allocations: 8 kB / 431.6 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005562/0.6509, allocations: 338.1 kB / 432 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.6509, allocations: 0 / 432 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007985/0.6517, allocations: 107.2 kB / 432.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.157e-05/0.6517, allocations: 4 kB / 432.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.6518, allocations: 7.562 kB / 432.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.614e-06/0.6518, allocations: 0 / 432.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.6518, allocations: 7.938 kB / 432.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.6531, allocations: 0.7012 MB / 432.8 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.6532, allocations: 123 kB / 432.9 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.548e-05/0.6533, allocations: 12 kB / 432.9 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.6538, allocations: 33.66 kB / 433 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.079e-05/0.6538, allocations: 7.25 kB / 433 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.338e-05/0.6539, allocations: 15.94 kB / 433 MB, free: 13.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002452/0.6541, allocations: 176.4 kB / 433.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6542, allocations: 0 / 433.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008008/0.655, allocations: 73.81 kB / 433.2 MB, free: 13.12 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001752/0.6567, allocations: 1.493 MB / 434.7 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007719/0.6575, allocations: 287.7 kB / 435 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.6576, allocations: 1.188 kB / 435 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.313e-05/0.6576, allocations: 19.62 kB / 435 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.6589, allocations: 261.5 kB / 435.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002552/0.6614, allocations: 0.6948 MB / 436 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004548/0.6619, allocations: 0.8161 MB / 436.8 MB, free: 9.809 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002159/0.6621, allocations: 117 kB / 436.9 MB, free: 9.762 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/0.6622, allocations: 0 / 436.9 MB, free: 9.762 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.569/3.231, allocations: 5.645 MB / 442.5 MB, free: 4.191 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat does not exist to compare? outputFormat=mat