Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadModel(Modelica): time 1.631/1.631, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.037e-05/4.049e-05, allocations: 0 / 225 MB, free: 2.793 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2131, allocations: 38.77 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.317, allocations: 68 MB / 331.8 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.3172, allocations: 63.97 kB / 331.8 MB, free: 5.715 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02051/0.3377, allocations: 4.723 MB / 336.5 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.097e-06/0.3378, allocations: 4 kB / 336.5 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.981e-05/0.3378, allocations: 4 kB / 336.5 MB, free: 0.9648 MB / 282.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.001127/0.339, allocations: 0.5336 MB / 337.1 MB, free: 396 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.339, allocations: 8.031 kB / 337.1 MB, free: 388 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.484e-05/0.3391, allocations: 35.56 kB / 337.1 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004009/0.3395, allocations: 251.6 kB / 337.4 MB, free: 56 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.3396, allocations: 12.44 kB / 337.4 MB, free: 44 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.3397, allocations: 24 kB / 337.4 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006372/0.3403, allocations: 263.5 kB / 337.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.3403, allocations: 0 / 337.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.3404, allocations: 8 kB / 337.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.272e-06/0.3404, allocations: 8 kB / 337.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00052/0.341, allocations: 180.8 kB / 337.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002505/0.3435, allocations: 1.257 MB / 339.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.3451, allocations: 338.4 kB / 339.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.3454, allocations: 108.8 kB / 339.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.3455, allocations: 3.938 kB / 339.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.3455, allocations: 34.56 kB / 339.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 3.147e-06/0.3455, allocations: 0 / 339.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.003049/0.3486, allocations: 0.5255 MB / 340.1 MB, free: 13.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.3487, allocations: 55.41 kB / 340.2 MB, free: 13.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/0.349, allocations: 201.1 kB / 340.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.3491, allocations: 33.7 kB / 340.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.3493, allocations: 222.4 kB / 340.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.175e-05/0.3494, allocations: 47.3 kB / 340.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.151e-05/0.3494, allocations: 4 kB / 340.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3496, allocations: 318.8 kB / 341 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.3498, allocations: 63.98 kB / 341 MB, free: 12.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.35, allocations: 92.28 kB / 341.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.3503, allocations: 71.97 kB / 341.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.26e-06/0.3503, allocations: 0 / 341.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.003009/0.3533, allocations: 0.5429 MB / 341.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.3534, allocations: 8 kB / 341.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.3534, allocations: 3.953 kB / 341.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004543/0.3538, allocations: 136.8 kB / 341.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00026/0.3541, allocations: 39.92 kB / 341.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006418/0.3606, allocations: 2.185 MB / 344.1 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004015/0.361, allocations: 55.86 kB / 344.2 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.361, allocations: 7.984 kB / 344.2 MB, free: 8.914 MB / 298.7 MB 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.0001439/0.3612, allocations: 116.9 kB / 344.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-05/0.3613, allocations: 19.81 kB / 344.3 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.868e-05/0.3614, allocations: 25.95 kB / 344.3 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.903e-06/0.3614, allocations: 4 kB / 344.3 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.3614, allocations: 0 / 344.3 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.294e-06/0.3614, allocations: 0 / 344.3 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005567/0.362, allocations: 333.2 kB / 344.7 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.756e-06/0.362, allocations: 0 / 344.7 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.3622, allocations: 39.86 kB / 344.7 MB, free: 8.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000393/0.3627, allocations: 136.8 kB / 344.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.3627, allocations: 7.984 kB / 344.8 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006177/0.3689, allocations: 2.17 MB / 347 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.89e-06/0.3689, allocations: 0 / 347 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003249/0.3722, allocations: 0.7133 MB / 347.7 MB, free: 5.145 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.3724, allocations: 116.9 kB / 347.8 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.189e-05/0.3725, allocations: 8 kB / 347.8 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003841/0.3729, allocations: 39.92 kB / 347.9 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.118e-05/0.373, allocations: 11.98 kB / 347.9 MB, free: 4.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/0.373, allocations: 0 / 347.9 MB, free: 4.953 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000227/0.3732, allocations: 169.4 kB / 348.1 MB, free: 4.789 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.44e-07/0.3733, allocations: 4 kB / 348.1 MB, free: 4.785 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006443/0.3739, allocations: 83.84 kB / 348.1 MB, free: 4.703 MB / 298.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.0001904/0.3741, allocations: 107.2 kB / 348.3 MB, free: 4.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.3756, allocations: 385.6 kB / 348.6 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.704e-06/0.3756, allocations: 0 / 348.6 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.3768, allocations: 301.7 kB / 348.9 MB, free: 3.898 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.3772, allocations: 33.95 kB / 349 MB, free: 3.863 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.3784, allocations: 408.8 kB / 349.4 MB, free: 3.438 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.3789, allocations: 0.748 MB / 350.1 MB, free: 2.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.464e-05/0.379, allocations: 19.44 kB / 350.1 MB, free: 2.645 MB / 298.7 MB Notification: Performance of SimCode: time 1.758e-06/0.379, allocations: 4 kB / 350.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of Templates: time 0.008304/0.3873, allocations: 4.012 MB / 354.1 MB, free: 14.62 MB / 314.7 MB "Error: Could not read variable sineVoltage.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat. Warning: Get data of variable sineVoltage.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat failed! " 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.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.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.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.v