Notification: Performance of loadModel(Modelica_Synchronous): time 1.729/1.729, allocations: 207.2 MB / 213.5 MB, free: 8.855 MB / 184.6 MB Notification: Performance of FrontEnd - loaded program: time 0.1939/1.923, allocations: 49.11 MB / 262.6 MB, free: 7.539 MB / 216.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06382/1.987, allocations: 47.16 MB / 309.8 MB, free: 8.285 MB / 264.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2259/2.213, allocations: 74.65 MB / 384.4 MB, free: 15.21 MB / 312.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/2.213, allocations: 73.14 kB / 384.5 MB, free: 15.17 MB / 312.6 MB Notification: Performance of Generate backend data structure: time 0.009509/2.223, allocations: 2.345 MB / 386.9 MB, free: 13.15 MB / 312.6 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/2.223, allocations: 8 kB / 386.9 MB, free: 13.14 MB / 312.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.043e-05/2.223, allocations: 15.81 kB / 386.9 MB, free: 13.13 MB / 312.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/2.223, allocations: 205.6 kB / 387.1 MB, free: 12.89 MB / 312.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/2.223, allocations: 4 kB / 387.1 MB, free: 12.89 MB / 312.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/2.223, allocations: 14.06 kB / 387.1 MB, free: 12.88 MB / 312.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001863/2.224, allocations: 58.44 kB / 387.2 MB, free: 12.84 MB / 312.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/2.224, allocations: 205.9 kB / 387.4 MB, free: 12.65 MB / 312.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/2.224, allocations: 4 kB / 387.4 MB, free: 12.65 MB / 312.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/2.224, allocations: 3.984 kB / 387.4 MB, free: 12.64 MB / 312.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.731e-06/2.224, allocations: 8 kB / 387.4 MB, free: 12.64 MB / 312.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007738/2.225, allocations: 0.5593 MB / 387.9 MB, free: 12.05 MB / 312.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000285/2.225, allocations: 117 kB / 388 MB, free: 11.94 MB / 312.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/2.226, allocations: 58.95 kB / 388.1 MB, free: 11.88 MB / 312.6 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/2.226, allocations: 0 / 388.1 MB, free: 11.88 MB / 312.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/2.226, allocations: 46.08 kB / 388.1 MB, free: 11.83 MB / 312.6 MB Notification: Performance of pre-optimization done (n=15): time 2.863e-06/2.226, allocations: 0 / 388.1 MB, free: 11.83 MB / 312.6 MB Notification: Performance of matching and sorting (n=15): time 0.0003417/2.226, allocations: 110.6 kB / 388.3 MB, free: 11.73 MB / 312.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/2.226, allocations: 110.8 kB / 388.4 MB, free: 11.6 MB / 312.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.758e-05/2.226, allocations: 115.5 kB / 388.5 MB, free: 11.48 MB / 312.6 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/2.227, allocations: 25.7 kB / 388.5 MB, free: 11.45 MB / 312.6 MB Notification: Performance of collectInitialEqns (initialization): time 3.96e-05/2.227, allocations: 177.9 kB / 388.7 MB, free: 11.28 MB / 312.6 MB Notification: Performance of collectInitialBindings (initialization): time 2.675e-05/2.227, allocations: 30.8 kB / 388.7 MB, free: 11.26 MB / 312.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.892e-06/2.227, allocations: 0 / 388.7 MB, free: 11.26 MB / 312.6 MB Notification: Performance of setup shared object (initialization): time 5.322e-05/2.227, allocations: 326.4 kB / 389 MB, free: 10.93 MB / 312.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.867e-05/2.227, allocations: 20.88 kB / 389 MB, free: 10.92 MB / 312.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/2.227, allocations: 119.2 kB / 389.2 MB, free: 10.77 MB / 312.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.402e-05/2.227, allocations: 42.7 kB / 389.2 MB, free: 10.73 MB / 312.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.61e-06/2.227, allocations: 0 / 389.2 MB, free: 10.73 MB / 312.6 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002919/2.228, allocations: 144.2 kB / 389.3 MB, free: 10.6 MB / 312.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/2.228, allocations: 4 kB / 389.3 MB, free: 10.6 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001819/2.228, allocations: 4 kB / 389.3 MB, free: 10.59 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/2.228, allocations: 4 kB / 389.4 MB, free: 10.59 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/2.228, allocations: 48.36 kB / 389.4 MB, free: 10.54 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/2.228, allocations: 15.92 kB / 389.4 MB, free: 10.53 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/2.229, allocations: 19.84 kB / 389.4 MB, free: 10.51 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/2.229, allocations: 15.31 kB / 389.4 MB, free: 10.5 MB / 312.6 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/2.229, allocations: 0 / 389.4 MB, free: 10.5 MB / 312.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002023/2.229, allocations: 80.06 kB / 389.5 MB, free: 10.42 MB / 312.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.778e-05/2.229, allocations: 18.98 kB / 389.5 MB, free: 10.41 MB / 312.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.984e-06/2.229, allocations: 8 kB / 389.6 MB, free: 10.4 MB / 312.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.006e-06/2.229, allocations: 3.938 kB / 389.6 MB, free: 10.4 MB / 312.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.867e-06/2.229, allocations: 0 / 389.6 MB, free: 10.4 MB / 312.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/2.23, allocations: 176.2 kB / 389.7 MB, free: 10.2 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/2.23, allocations: 4 kB / 389.7 MB, free: 10.2 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002819/2.23, allocations: 35.86 kB / 389.8 MB, free: 10.16 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.333e-06/2.23, allocations: 4 kB / 389.8 MB, free: 10.16 MB / 312.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/2.23, allocations: 4.188 kB / 389.8 MB, free: 10.16 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.562e-06/2.23, allocations: 0 / 389.8 MB, free: 10.16 MB / 312.6 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/2.23, allocations: 7.938 kB / 389.8 MB, free: 10.15 MB / 312.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003703/2.231, allocations: 358.8 kB / 390.1 MB, free: 9.805 MB / 312.6 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004679/2.231, allocations: 0.7563 MB / 390.9 MB, free: 9.07 MB / 312.6 MB Notification: Performance of postOpt removeConstants (simulation): time 3.709e-05/2.232, allocations: 85.02 kB / 391 MB, free: 8.969 MB / 312.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/2.232, allocations: 64 / 391 MB, free: 8.969 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/2.232, allocations: 15.98 kB / 391 MB, free: 8.953 MB / 312.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.904e-05/2.232, allocations: 11.84 kB / 391 MB, free: 8.941 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/2.232, allocations: 4 kB / 391 MB, free: 8.938 MB / 312.6 MB Notification: Performance of sort global known variables: time 5.971e-05/2.232, allocations: 103.7 kB / 391.1 MB, free: 8.844 MB / 312.6 MB Notification: Performance of remove unused functions: time 0.001367/2.234, allocations: 23.94 kB / 391.1 MB, free: 8.82 MB / 312.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 8.933e-05/2.234, allocations: 73.55 kB / 391.2 MB, free: 8.742 MB / 312.6 MB Notification: Performance of simCode: created initialization part: time 0.0002356/2.234, allocations: 82.61 kB / 391.3 MB, free: 8.68 MB / 312.6 MB Notification: Performance of simCode: created event and clocks part: time 3.632e-06/2.234, allocations: 0 / 391.3 MB, free: 8.68 MB / 312.6 MB Notification: Performance of simCode: created simulation system equations: time 4.812e-05/2.234, allocations: 19.19 kB / 391.3 MB, free: 8.664 MB / 312.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004898/2.235, allocations: 47.86 kB / 391.3 MB, free: 8.629 MB / 312.6 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008416/2.236, allocations: 302 kB / 391.6 MB, free: 8.312 MB / 312.6 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/2.236, allocations: 0.7425 MB / 392.4 MB, free: 7.551 MB / 312.6 MB Notification: Performance of SimCode: time 2.026e-06/2.236, allocations: 0 / 392.4 MB, free: 7.551 MB / 312.6 MB Notification: Performance of translateModelFMU complete: time 0.005014/2.241, allocations: 2.076 MB / 394.5 MB, free: 5.496 MB / 312.6 MB Notification: Performance of buildModelFMU: Generate C++ for platform dynamic: time 2.032/4.273, allocations: 9.625 kB / 394.5 MB, free: 5.488 MB / 312.6 MB "Warning: Resultfile and Reference have different end time points! Reffile[551]=3.000000 File[23]=1.000000 Error: Could not read variable PI.y in file Modelica_Synchronous_fmi-cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat. Warning: Get data of variable PI.y from file Modelica_Synchronous_fmi-cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat failed! Error: Could not read variable speed.w in file Modelica_Synchronous_fmi-cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat. Warning: Get data of variable speed.w from file Modelica_Synchronous_fmi-cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat failed! " Variables in the reference:PI.y,Time,speed.w Variables in the result:fmu.PI.T,fmu.PI.Ts,fmu.PI.k,fmu.PI.u,fmu.PI.x,fmu.PI.y,der(fmu.load.phi),der(fmu.load.w),fmu.feedback.u1,fmu.feedback.u2,fmu.feedback.y,fmu.hold1.u,fmu.hold1.y,fmu.hold1.y_start,fmu.load.J,fmu.load.a,fmu.load.flange_a.phi,fmu.load.flange_a.tau,fmu.load.flange_b.phi,fmu.load.flange_b.tau,fmu.load.phi,fmu.load.w,fmu.periodicClock.period,fmu.previous(PI.x),fmu.ramp.duration,fmu.ramp.height,fmu.ramp.offset,fmu.ramp.startTime,fmu.ramp.y,fmu.sample1.u,fmu.sample1.y,fmu.sample2.u,fmu.sample2.y,fmu.speed.flange.phi,fmu.speed.flange.tau,fmu.speed.w,fmu.torque.flange.phi,fmu.torque.flange.tau,fmu.torque.phi_support,fmu.torque.tau,time