Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_UnitDeduction",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.049/3.049, allocations: 235.2 MB / 242.3 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.684e-05/2.704e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4226, allocations: 54.86 MB / 354.4 MB, free: 15.26 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2056/0.6282, allocations: 87.74 MB / 442.1 MB, free: 7.398 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.6286, allocations: 67.97 kB / 442.2 MB, free: 7.332 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07525/0.7038, allocations: 13.17 MB / 455.4 MB, free: 10.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.601e-06/0.7039, allocations: 0 / 455.4 MB, free: 10.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.732e-05/0.704, allocations: 15.94 kB / 455.4 MB, free: 10.11 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002851/0.7069, allocations: 0.8141 MB / 456.2 MB, free: 9.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.7069, allocations: 8.031 kB / 456.2 MB, free: 9.242 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002567/0.7072, allocations: 70.52 kB / 456.3 MB, free: 9.164 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003334/0.7076, allocations: 79.06 kB / 456.4 MB, free: 9.086 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.7091, allocations: 464.4 kB / 456.8 MB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.6e-05/0.7092, allocations: 25.27 kB / 456.8 MB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.7094, allocations: 39.91 kB / 456.9 MB, free: 8.523 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001053/0.7105, allocations: 270.6 kB / 457.1 MB, free: 8.262 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.7118, allocations: 384.1 kB / 457.5 MB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/0.7119, allocations: 0 / 457.5 MB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.978e-05/0.7119, allocations: 0 / 457.5 MB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.709e-05/0.712, allocations: 19.94 kB / 457.5 MB, free: 7.852 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006519/0.7185, allocations: 1.69 MB / 459.2 MB, free: 6.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.7197, allocations: 333.7 kB / 459.6 MB, free: 5.746 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003981/0.7201, allocations: 129.7 kB / 459.7 MB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.136e-05/0.7202, allocations: 11.94 kB / 459.7 MB, free: 5.602 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.7203, allocations: 34.56 kB / 459.7 MB, free: 5.559 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 6.763e-06/0.7203, allocations: 7.984 kB / 459.7 MB, free: 5.551 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.001161/0.7215, allocations: 318.1 kB / 460 MB, free: 5.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.004e-05/0.7216, allocations: 110.8 kB / 460.2 MB, free: 5.098 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007863/0.7224, allocations: 369.3 kB / 460.5 MB, free: 4.727 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.788e-05/0.7225, allocations: 25.7 kB / 460.5 MB, free: 4.695 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003952/0.7229, allocations: 312.6 kB / 460.8 MB, free: 4.387 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002479/0.7231, allocations: 141.9 kB / 461 MB, free: 4.246 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.7232, allocations: 0 / 461 MB, free: 4.246 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002459/0.7235, allocations: 370.7 kB / 461.3 MB, free: 3.875 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004479/0.7239, allocations: 125.1 kB / 461.5 MB, free: 3.754 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005935/0.7245, allocations: 252.1 kB / 461.7 MB, free: 3.461 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000531/0.7251, allocations: 147.9 kB / 461.9 MB, free: 3.316 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.7251, allocations: 0 / 461.9 MB, free: 3.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001476/0.7266, allocations: 444 kB / 462.3 MB, free: 2.875 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006902/0.7273, allocations: 1.395 MB / 463.7 MB, free: 1.371 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.7273, allocations: 4 kB / 463.7 MB, free: 1.367 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.334e-05/0.7274, allocations: 8 kB / 463.7 MB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.7287, allocations: 127.8 kB / 463.8 MB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.985e-05/0.7287, allocations: 7.938 kB / 463.8 MB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008462/0.7296, allocations: 51.66 kB / 463.9 MB, free: 1.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-05/0.7297, allocations: 16 kB / 463.9 MB, free: 1.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.7297, allocations: 5.094 kB / 463.9 MB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001192/0.7309, allocations: 343.5 kB / 464.2 MB, free: 0.8203 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.7309, allocations: 4 kB / 464.2 MB, free: 0.8164 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.731, allocations: 8 kB / 464.3 MB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.7321, allocations: 124.2 kB / 464.4 MB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.259e-05/0.7322, allocations: 15.88 kB / 464.4 MB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007515/0.7329, allocations: 47.52 kB / 464.4 MB, free: 0.625 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-05/0.733, allocations: 20 kB / 464.5 MB, free: 0.6055 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * 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.0002123/0.7332, allocations: 119.6 kB / 464.6 MB, free: 496 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.7335, allocations: 51.34 kB / 464.6 MB, free: 444 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002315/0.7337, allocations: 61.5 kB / 464.7 MB, free: 380 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.7337, allocations: 4 kB / 464.7 MB, free: 376 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.7338, allocations: 3.953 kB / 464.7 MB, free: 372 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.7338, allocations: 7.922 kB / 464.7 MB, free: 364 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4553/1.189, allocations: 475.1 kB / 465.2 MB, free: 96.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/1.189, allocations: 0 / 465.2 MB, free: 96.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/1.191, allocations: 88.2 kB / 465.2 MB, free: 96.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.446e-05/1.191, allocations: 5.125 kB / 465.3 MB, free: 96.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.138e-05/1.191, allocations: 6.469 kB / 465.3 MB, free: 96.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.265e-06/1.191, allocations: 2.719 kB / 465.3 MB, free: 96.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.191, allocations: 0.9062 kB / 465.3 MB, free: 96.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/1.193, allocations: 0.6539 MB / 465.9 MB, free: 96.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004129/1.194, allocations: 162.9 kB / 466.1 MB, free: 95.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/1.194, allocations: 5.594 kB / 466.1 MB, free: 95.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/1.195, allocations: 25.88 kB / 466.1 MB, free: 95.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/1.195, allocations: 36.38 kB / 466.1 MB, free: 95.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-05/1.195, allocations: 9.844 kB / 466.2 MB, free: 95.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007434/1.196, allocations: 281.4 kB / 466.4 MB, free: 95.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.61e-07/1.196, allocations: 0.5 kB / 466.4 MB, free: 95.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001646/1.198, allocations: 194.9 kB / 466.6 MB, free: 95.88 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.002131/1.2, allocations: 1.271 MB / 467.9 MB, free: 95.03 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001892/1.202, allocations: 0.5242 MB / 468.4 MB, free: 95.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/1.202, allocations: 0 / 468.4 MB, free: 95.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000509/1.202, allocations: 148 kB / 468.6 MB, free: 95.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/1.204, allocations: 135.3 kB / 468.7 MB, free: 95.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004323/1.208, allocations: 1.089 MB / 469.8 MB, free: 94.62 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006056/1.209, allocations: 0.9007 MB / 470.7 MB, free: 93.92 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001153/1.21, allocations: 100.4 kB / 470.8 MB, free: 93.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005801/1.211, allocations: 204.6 kB / 471 MB, free: 93.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.553e-06/1.211, allocations: 0 / 471 MB, free: 93.9 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1616/1.373, allocations: 10.94 MB / 481.9 MB, free: 92.02 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003362/1.373, allocations: 134 kB / 482 MB, free: 91.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.789/5.162, allocations: 0 / 482 MB, free: 91.82 MB / 394.7 MB "" Variables in the reference:time,Asec.y,PI.x,PID.D.x,PID.I.y,PID1.D.x,PID1.I.y,Vsec.y,Wsec.y,derivative.x,firstOrder.y,inertia.phi,inertia.w,integrator.y,limIntegrator.y,secondOrder.y,secondOrder.yd Variables in the result:Asec.initType,Asec.k,Asec.u,Asec.y,Asec.y_start,PI.T,PI.initType,PI.k,PI.u,PI.x,PI.x_start,PI.y,PI.y_start,PID.Add.k1,PID.Add.k2,PID.Add.k3,PID.Add.u1,PID.Add.u2,PID.Add.u3,PID.Add.y,PID.D.T,PID.D.initType,PID.D.k,PID.D.u,PID.D.x,PID.D.x_start,PID.D.y,PID.D.y_start,PID.D.zeroGain,PID.Gain.k,PID.Gain.u,PID.Gain.y,PID.I.initType,PID.I.k,PID.I.u,PID.I.y,PID.I.y_start,PID.Nd,PID.P.k,PID.P.u,PID.P.y,PID.Td,PID.Ti,PID.initType,PID.k,PID.u,PID.xd_start,PID.xi_start,PID.y,PID.y_start,PID1.D.T,PID1.D.initType,PID1.D.k,PID1.D.u,PID1.D.x,PID1.D.x_start,PID1.D.y,PID1.D.y_start,PID1.D.zeroGain,PID1.I.initType,PID1.I.k,PID1.I.u,PID1.I.y,PID1.I.y_start,PID1.Nd,PID1.Ni,PID1.P.k,PID1.P.u,PID1.P.y,PID1.Td,PID1.Ti,PID1.addD.k1,PID1.addD.k2,PID1.addD.u1,PID1.addD.u2,PID1.addD.y,PID1.addI.k1,PID1.addI.k2,PID1.addI.k3,PID1.addI.u1,PID1.addI.u2,PID1.addI.u3,PID1.addI.y,PID1.addP.k1,PID1.addP.k2,PID1.addP.u1,PID1.addP.u2,PID1.addP.y,PID1.addPID.k1,PID1.addPID.k2,PID1.addPID.k3,PID1.addPID.u1,PID1.addPID.u2,PID1.addPID.u3,PID1.addPID.y,PID1.addSat.k1,PID1.addSat.k2,PID1.addSat.u1,PID1.addSat.u2,PID1.addSat.y,PID1.controlError,PID1.controllerType,PID1.gainPID.k,PID1.gainPID.u,PID1.gainPID.y,PID1.gainTrack.k,PID1.gainTrack.u,PID1.gainTrack.y,PID1.initType,PID1.k,PID1.limiter.limitsAtInit,PID1.limiter.strict,PID1.limiter.u,PID1.limiter.uMax,PID1.limiter.uMin,PID1.limiter.y,PID1.limitsAtInit,PID1.strict,PID1.u_m,PID1.u_s,PID1.wd,PID1.with_D,PID1.with_I,PID1.wp,PID1.xd_start,PID1.xi_start,PID1.y,PID1.yMax,PID1.yMin,PID1.y_start,Vsec.initType,Vsec.k,Vsec.u,Vsec.y,Vsec.y_start,Wsec.initType,Wsec.k,Wsec.u,Wsec.y,Wsec.y_start,currentSensor.i,currentSensor.n.i,currentSensor.n.v,currentSensor.p.i,currentSensor.p.v,der(Asec.y),der(PI.x),der(PID.D.x),der(PID.I.y),der(PID1.D.x),der(PID1.I.y),der(Vsec.y),der(Wsec.y),der(derivative.x),der(firstOrder.y),der(inertia.phi),der(inertia.w),der(integrator.y),der(limIntegrator.y),der(secondOrder.y),der(secondOrder.yd),derivative.T,derivative.initType,derivative.k,derivative.u,derivative.x,derivative.x_start,derivative.y,derivative.y_start,derivative.zeroGain,firstOrder.T,firstOrder.initType,firstOrder.k,firstOrder.u,firstOrder.y,firstOrder.y_start,gain.k,gain.u,gain.y,ground.p.i,ground.p.v,inertia.J,inertia.a,inertia.flange_a.phi,inertia.flange_a.tau,inertia.flange_b.phi,inertia.flange_b.tau,inertia.phi,inertia.stateSelect,inertia.w,integrator.initType,integrator.k,integrator.u,integrator.y,integrator.y_start,limIntegrator.initType,limIntegrator.k,limIntegrator.limitsAtInit,limIntegrator.outMax,limIntegrator.outMin,limIntegrator.strict,limIntegrator.u,limIntegrator.y,limIntegrator.y_start,product.u1,product.u2,product.y,resistor.LossPower,resistor.R,resistor.R_actual,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,resistor.n.i,resistor.n.v,resistor.p.i,resistor.p.v,resistor.useHeatPort,resistor.v,secondOrder.D,secondOrder.initType,secondOrder.k,secondOrder.u,secondOrder.w,secondOrder.y,secondOrder.y_start,secondOrder.yd,secondOrder.yd_start,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,speedSensor.flange.phi,speedSensor.flange.tau,speedSensor.w,time,voltageSensor.n.i,voltageSensor.n.v,voltageSensor.p.i,voltageSensor.p.v,voltageSensor.v