Notification: Performance of loadModel(ModelicaTest): time 1.769/1.769, allocations: 234.6 MB / 240.6 MB, free: 7.77 MB / 200.6 MB Notification: Performance of FrontEnd - loaded program: time 0.2916/2.06, allocations: 56.68 MB / 297.2 MB, free: 8.488 MB / 248.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07026/2.131, allocations: 54.72 MB / 352 MB, free: 10.76 MB / 296.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08966/2.22, allocations: 79.91 MB / 431.9 MB, free: 10.74 MB / 376.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001764/2.221, allocations: 60.09 kB / 431.9 MB, free: 10.68 MB / 376.6 MB Notification: Performance of Generate backend data structure: time 0.00598/2.227, allocations: 1.521 MB / 433.5 MB, free: 9.109 MB / 376.6 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/2.227, allocations: 12 kB / 433.5 MB, free: 9.098 MB / 376.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.526e-05/2.227, allocations: 7.906 kB / 433.5 MB, free: 9.09 MB / 376.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.24e-05/2.227, allocations: 175 kB / 433.6 MB, free: 8.879 MB / 376.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/2.227, allocations: 8 kB / 433.7 MB, free: 8.871 MB / 376.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/2.227, allocations: 7.984 kB / 433.7 MB, free: 8.863 MB / 376.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001107/2.228, allocations: 32 kB / 433.7 MB, free: 8.832 MB / 376.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/2.228, allocations: 65.67 kB / 433.8 MB, free: 8.762 MB / 376.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/2.228, allocations: 4 kB / 433.8 MB, free: 8.758 MB / 376.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/2.228, allocations: 3.984 kB / 433.8 MB, free: 8.754 MB / 376.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.077e-06/2.228, allocations: 0 / 433.8 MB, free: 8.754 MB / 376.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004702/2.228, allocations: 293.3 kB / 434.1 MB, free: 8.43 MB / 376.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001504/2.229, allocations: 70.5 kB / 434.1 MB, free: 8.352 MB / 376.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.941e-05/2.229, allocations: 36.86 kB / 434.2 MB, free: 8.312 MB / 376.6 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/2.229, allocations: 11.97 kB / 434.2 MB, free: 8.301 MB / 376.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001394/2.229, allocations: 91.28 kB / 434.3 MB, free: 8.199 MB / 376.6 MB Notification: Performance of pre-optimization done (n=14): time 3.003e-06/2.229, allocations: 0 / 434.3 MB, free: 8.199 MB / 376.6 MB Notification: Performance of matching and sorting (n=14): time 0.0004349/2.23, allocations: 105.7 kB / 434.4 MB, free: 8.09 MB / 376.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/2.23, allocations: 59.34 kB / 434.4 MB, free: 8.02 MB / 376.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.005e-05/2.23, allocations: 109.2 kB / 434.5 MB, free: 7.902 MB / 376.6 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/2.23, allocations: 29.7 kB / 434.6 MB, free: 7.867 MB / 376.6 MB Notification: Performance of collectInitialEqns (initialization): time 2.437e-05/2.23, allocations: 158.8 kB / 434.7 MB, free: 7.707 MB / 376.6 MB Notification: Performance of collectInitialBindings (initialization): time 3.799e-05/2.23, allocations: 31.77 kB / 434.7 MB, free: 7.676 MB / 376.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.917e-06/2.23, allocations: 0 / 434.7 MB, free: 7.676 MB / 376.6 MB Notification: Performance of setup shared object (initialization): time 4.582e-05/2.23, allocations: 330.7 kB / 435.1 MB, free: 7.344 MB / 376.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.005e-05/2.23, allocations: 24.38 kB / 435.1 MB, free: 7.32 MB / 376.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.058e-05/2.231, allocations: 65.72 kB / 435.2 MB, free: 7.238 MB / 376.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.051e-05/2.231, allocations: 39.91 kB / 435.2 MB, free: 7.199 MB / 376.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.238e-06/2.231, allocations: 4 kB / 435.2 MB, free: 7.195 MB / 376.6 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002532/2.231, allocations: 121.5 kB / 435.3 MB, free: 7.07 MB / 376.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/2.231, allocations: 8 kB / 435.3 MB, free: 7.062 MB / 376.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/2.231, allocations: 4.156 kB / 435.3 MB, free: 7.059 MB / 376.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/2.231, allocations: 4 kB / 435.3 MB, free: 7.055 MB / 376.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/2.231, allocations: 28.3 kB / 435.4 MB, free: 7.027 MB / 376.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/2.232, allocations: 4 kB / 435.4 MB, free: 7.023 MB / 376.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/2.232, allocations: 4 kB / 435.4 MB, free: 7.02 MB / 376.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/2.232, allocations: 4 kB / 435.4 MB, free: 7.016 MB / 376.6 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/2.232, allocations: 10.42 kB / 435.4 MB, free: 7.008 MB / 376.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.71e-05/2.232, allocations: 23.83 kB / 435.4 MB, free: 6.984 MB / 376.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.806e-05/2.232, allocations: 8.438 kB / 435.4 MB, free: 6.973 MB / 376.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.168e-06/2.232, allocations: 4 kB / 435.4 MB, free: 6.969 MB / 376.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/2.232, allocations: 0 / 435.4 MB, free: 6.969 MB / 376.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.238e-06/2.232, allocations: 0 / 435.4 MB, free: 6.969 MB / 376.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004186/2.233, allocations: 362.9 kB / 435.8 MB, free: 6.57 MB / 376.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.283e-06/2.233, allocations: 4 kB / 435.8 MB, free: 6.566 MB / 376.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.793e-05/2.233, allocations: 11.98 kB / 435.8 MB, free: 6.555 MB / 376.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.378e-06/2.233, allocations: 7.906 kB / 435.8 MB, free: 6.547 MB / 376.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/2.233, allocations: 0 / 435.8 MB, free: 6.547 MB / 376.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/2.233, allocations: 4 kB / 435.8 MB, free: 6.543 MB / 376.6 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.562e-06/2.233, allocations: 4 kB / 435.8 MB, free: 6.539 MB / 376.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000229/2.233, allocations: 211.6 kB / 436 MB, free: 6.316 MB / 376.6 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004434/2.234, allocations: 0.578 MB / 436.6 MB, free: 5.719 MB / 376.6 MB Notification: Performance of postOpt removeConstants (simulation): time 2.626e-05/2.234, allocations: 88.95 kB / 436.7 MB, free: 5.613 MB / 376.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/2.234, allocations: 0 / 436.7 MB, free: 5.613 MB / 376.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/2.234, allocations: 11.98 kB / 436.7 MB, free: 5.602 MB / 376.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/2.234, allocations: 11.98 kB / 436.7 MB, free: 5.59 MB / 376.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/2.234, allocations: 4 kB / 436.7 MB, free: 5.586 MB / 376.6 MB Notification: Performance of sort global known variables: time 3.792e-05/2.235, allocations: 95.27 kB / 436.8 MB, free: 5.492 MB / 376.6 MB Notification: Performance of remove unused functions: time 0.00124/2.236, allocations: 16 kB / 436.8 MB, free: 5.477 MB / 376.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 6.195e-05/2.236, allocations: 69.55 kB / 436.9 MB, free: 5.402 MB / 376.6 MB Notification: Performance of simCode: created initialization part: time 0.0002243/2.236, allocations: 83.94 kB / 437 MB, free: 5.32 MB / 376.6 MB Notification: Performance of simCode: created event and clocks part: time 2.863e-06/2.236, allocations: 0 / 437 MB, free: 5.32 MB / 376.6 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/2.236, allocations: 47.92 kB / 437 MB, free: 5.273 MB / 376.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/2.237, allocations: 16.22 kB / 437 MB, free: 5.258 MB / 376.6 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/2.237, allocations: 145.4 kB / 437.2 MB, free: 5.086 MB / 376.6 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/2.237, allocations: 0.7191 MB / 437.9 MB, free: 4.34 MB / 376.6 MB Notification: Performance of SimCode: time 1.746e-06/2.238, allocations: 0 / 437.9 MB, free: 4.34 MB / 376.6 MB Notification: Performance of translateModelFMU complete: time 0.004065/2.242, allocations: 1.562 MB / 439.4 MB, free: 2.781 MB / 376.6 MB Notification: Performance of buildModelFMU: Generate C++ for platform dynamic: time 1.887/4.129, allocations: 9.734 kB / 439.5 MB, free: 2.773 MB / 376.6 MB "Warning: Resultfile and Reference have different end time points! Reffile[5041]=2.000000 File[23]=1.000000 Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable firstOrderHold.c in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable firstOrderHold.c from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable firstOrderHold.firstTrigger in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable firstOrderHold.firstTrigger from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable firstOrderHold.pre_uSample in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable firstOrderHold.pre_uSample from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable firstOrderHold.samplePeriod in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable firstOrderHold.samplePeriod from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable firstOrderHold.sampleTrigger in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable firstOrderHold.sampleTrigger from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable firstOrderHold.startTime in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable firstOrderHold.startTime from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable firstOrderHold.tSample in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable firstOrderHold.tSample from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable firstOrderHold.uSample in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable firstOrderHold.uSample from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable firstOrderHold.y in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable firstOrderHold.y from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable period in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable period from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable sine.amplitude in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable sine.amplitude from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable sine.freqHz in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable sine.freqHz from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable sine.offset in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable sine.offset from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable sine.phase in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable sine.phase from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable sine.startTime in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable sine.startTime from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable zeroOrderHold.firstTrigger in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable zeroOrderHold.firstTrigger from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable zeroOrderHold.samplePeriod in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable zeroOrderHold.samplePeriod from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable zeroOrderHold.sampleTrigger in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable zeroOrderHold.sampleTrigger from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable zeroOrderHold.startTime in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable zeroOrderHold.startTime from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable zeroOrderHold.u in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable zeroOrderHold.u from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable zeroOrderHold.y in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable zeroOrderHold.y from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable zeroOrderHold.ySample in file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable zeroOrderHold.ySample from file ModelicaTest_3.2.2_fmi-cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! " Variables in the reference:Time,_derdummy,_dummy,firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.samplePeriod,firstOrderHold.sampleTrigger,firstOrderHold.startTime,firstOrderHold.tSample,firstOrderHold.u,firstOrderHold.uSample,firstOrderHold.y,period,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,zeroOrderHold.firstTrigger,zeroOrderHold.samplePeriod,zeroOrderHold.sampleTrigger,zeroOrderHold.startTime,zeroOrderHold.u,zeroOrderHold.y,zeroOrderHold.ySample Variables in the result:fmu.firstOrderHold.c,fmu.firstOrderHold.pre_uSample,fmu.firstOrderHold.samplePeriod,fmu.firstOrderHold.startTime,fmu.firstOrderHold.tSample,fmu.firstOrderHold.u,fmu.firstOrderHold.uSample,fmu.firstOrderHold.y,fmu.period,fmu.sine.amplitude,fmu.sine.freqHz,fmu.sine.offset,fmu.sine.phase,fmu.sine.startTime,fmu.sine.y,fmu.zeroOrderHold.samplePeriod,fmu.zeroOrderHold.startTime,fmu.zeroOrderHold.u,fmu.zeroOrderHold.y,fmu.zeroOrderHold.ySample,time