Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.946e-05/2.953e-05, allocations: 8 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2472, allocations: 44.49 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1129/0.3601, allocations: 72.45 MB / 366.6 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.3604, allocations: 71.89 kB / 366.6 MB, free: 9.473 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01951/0.3799, allocations: 4.59 MB / 371.2 MB, free: 4.867 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.773e-06/0.3799, allocations: 0 / 371.2 MB, free: 4.867 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.597e-05/0.38, allocations: 12 kB / 371.2 MB, free: 4.855 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001111/0.3811, allocations: 0.5301 MB / 371.8 MB, free: 4.281 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.3812, allocations: 11.97 kB / 371.8 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.923e-05/0.3813, allocations: 35.58 kB / 371.8 MB, free: 4.234 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/0.3817, allocations: 255.5 kB / 372.1 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.3817, allocations: 8 kB / 372.1 MB, free: 3.934 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.3818, allocations: 12 kB / 372.1 MB, free: 3.922 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004795/0.3823, allocations: 164.8 kB / 372.2 MB, free: 3.762 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005309/0.3828, allocations: 235.5 kB / 372.5 MB, free: 3.508 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3828, allocations: 0 / 372.5 MB, free: 3.508 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.3829, allocations: 0 / 372.5 MB, free: 3.508 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.3829, allocations: 12 kB / 372.5 MB, free: 3.496 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.3853, allocations: 1.208 MB / 373.7 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.3869, allocations: 334.5 kB / 374 MB, free: 1.875 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.3872, allocations: 100.8 kB / 374.1 MB, free: 1.773 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.3872, allocations: 4 kB / 374.1 MB, free: 1.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.3873, allocations: 34.56 kB / 374.1 MB, free: 1.727 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 3.266e-06/0.3873, allocations: 0 / 374.1 MB, free: 1.727 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.002949/0.3903, allocations: 0.5135 MB / 374.7 MB, free: 1.203 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.3903, allocations: 55.41 kB / 374.7 MB, free: 1.137 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.3906, allocations: 178.8 kB / 374.9 MB, free: 0.957 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.3906, allocations: 25.7 kB / 374.9 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.3908, allocations: 226.3 kB / 375.1 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.673e-05/0.3909, allocations: 55.23 kB / 375.2 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.721e-05/0.3909, allocations: 0 / 375.2 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3911, allocations: 318.8 kB / 375.5 MB, free: 332 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.3913, allocations: 56 kB / 375.6 MB, free: 276 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.3915, allocations: 91.42 kB / 375.6 MB, free: 172 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.3917, allocations: 69.91 kB / 375.7 MB, free: 104 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.3917, allocations: 0 / 375.7 MB, free: 104 kB / 314.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.002992/0.3947, allocations: 0.5332 MB / 376.2 MB, free: 15.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3948, allocations: 4 kB / 376.3 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.63e-06/0.3948, allocations: 4.062 kB / 376.3 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004524/0.3953, allocations: 144.7 kB / 376.4 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.3955, allocations: 35.97 kB / 376.4 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005831/0.4014, allocations: 2.094 MB / 378.5 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003818/0.4018, allocations: 35.86 kB / 378.6 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.4019, allocations: 16.08 kB / 378.6 MB, free: 13.11 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: zDiode.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001896/0.4021, allocations: 108.7 kB / 378.7 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.496e-05/0.4021, allocations: 19.81 kB / 378.7 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.094e-05/0.4022, allocations: 25.89 kB / 378.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.826e-06/0.4022, allocations: 7.875 kB / 378.7 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.962e-06/0.4023, allocations: 0 / 378.7 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.87e-06/0.4023, allocations: 0 / 378.7 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004795/0.4028, allocations: 293.8 kB / 379 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.308e-06/0.4028, allocations: 4 kB / 379 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.403, allocations: 31.98 kB / 379.1 MB, free: 12.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003992/0.4034, allocations: 132.8 kB / 379.2 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.4035, allocations: 3.984 kB / 379.2 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006009/0.4095, allocations: 2.13 MB / 381.3 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.4095, allocations: 4.031 kB / 381.3 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003228/0.4128, allocations: 0.7001 MB / 382 MB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.4129, allocations: 96.89 kB / 382.1 MB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.423e-05/0.413, allocations: 3.938 kB / 382.1 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003863/0.4134, allocations: 40.03 kB / 382.2 MB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.4134, allocations: 11.94 kB / 382.2 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.4135, allocations: 11.98 kB / 382.2 MB, free: 9.305 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001805/0.4137, allocations: 140.7 kB / 382.3 MB, free: 9.168 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.4137, allocations: 0 / 382.3 MB, free: 9.168 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006514/0.4144, allocations: 79.75 kB / 382.4 MB, free: 9.09 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001868/0.4146, allocations: 111.2 kB / 382.5 MB, free: 8.969 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.4159, allocations: 358.3 kB / 382.9 MB, free: 8.609 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.622e-06/0.4159, allocations: 0 / 382.9 MB, free: 8.609 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.4171, allocations: 305.7 kB / 383.2 MB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.4174, allocations: 16.66 kB / 383.2 MB, free: 8.285 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.4186, allocations: 387.1 kB / 383.6 MB, free: 7.879 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004636/0.4191, allocations: 0.7553 MB / 384.3 MB, free: 7.094 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.496e-05/0.4192, allocations: 15.44 kB / 384.3 MB, free: 7.078 MB / 330.7 MB Notification: Performance of SimCode: time 1.743e-06/0.4192, allocations: 0 / 384.3 MB, free: 7.078 MB / 330.7 MB Notification: Performance of Templates: time 0.007954/0.4272, allocations: 3.893 MB / 388.2 MB, free: 3.184 MB / 330.7 MB "" Variables in the reference:time,CL.v Variables in the result:CL.C,der(CL.v),CL.i,CL.n.i,CL.n.v,CL.p.i,CL.p.v,CL.v,RL.LossPower,RL.R,RL.R_actual,RL.T,RL.T_heatPort,RL.T_ref,RL.alpha,RL.i,RL.n.i,RL.n.v,RL.p.i,RL.p.v,RL.useHeatPort,RL.v,Rv.LossPower,Rv.R,Rv.R_actual,Rv.T,Rv.T_heatPort,Rv.T_ref,Rv.alpha,Rv.i,Rv.n.i,Rv.n.v,Rv.p.i,Rv.p.v,Rv.useHeatPort,Rv.v,ground.p.i,ground.p.v,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,time,zDiode.Bv,zDiode.Ibv,zDiode.Ids,zDiode.LossPower,zDiode.Maxexp,zDiode.Nbv,zDiode.R,zDiode.T,zDiode.T_heatPort,zDiode.Vt,zDiode.i,zDiode.maxexp,zDiode.n.i,zDiode.n.v,zDiode.p.i,zDiode.p.v,zDiode.useHeatPort,zDiode.v,zDiode1.Bv,zDiode1.Ibv,zDiode1.Ids,zDiode1.LossPower,zDiode1.Maxexp,zDiode1.Nbv,zDiode1.R,zDiode1.T,zDiode1.T_heatPort,zDiode1.Vt,zDiode1.i,zDiode1.maxexp,zDiode1.n.i,zDiode1.n.v,zDiode1.p.i,zDiode1.p.v,zDiode1.useHeatPort,zDiode1.v