Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) 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.727/1.727, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.574e-05/2.591e-05, allocations: 7.938 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07381/0.07386, allocations: 38.76 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2893/0.3632, allocations: 67.35 MB / 328.6 MB, free: 4.977 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.3635, allocations: 69.84 kB / 328.7 MB, free: 4.941 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02036/0.3839, allocations: 4.732 MB / 333.4 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3839, allocations: 0 / 333.4 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.011e-05/0.384, allocations: 4 kB / 333.4 MB, free: 0.9023 MB / 266.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.001152/0.3851, allocations: 0.5314 MB / 334 MB, free: 348 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.3852, allocations: 8.031 kB / 334 MB, free: 340 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.3853, allocations: 31.62 kB / 334 MB, free: 308 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.3857, allocations: 250.7 kB / 334.2 MB, free: 36 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.3858, allocations: 12 kB / 334.3 MB, free: 24 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.776e-05/0.3858, allocations: 15.91 kB / 334.3 MB, free: 8 kB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004971/0.3864, allocations: 168.3 kB / 334.4 MB, free: 15.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005155/0.3869, allocations: 234.2 kB / 334.7 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.3869, allocations: 0 / 334.7 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.721e-05/0.387, allocations: 0 / 334.7 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.387, allocations: 8 kB / 334.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004121/0.3911, allocations: 1.204 MB / 335.9 MB, free: 14.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003344/0.3945, allocations: 342.7 kB / 336.2 MB, free: 14.31 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004982/0.3951, allocations: 102.8 kB / 336.3 MB, free: 14.24 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.52e-05/0.3951, allocations: 4 kB / 336.3 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.324e-05/0.3952, allocations: 38.23 kB / 336.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 5.586e-06/0.3953, allocations: 0 / 336.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.006321/0.4016, allocations: 0.5122 MB / 336.9 MB, free: 13.72 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.31e-05/0.4017, allocations: 51.41 kB / 336.9 MB, free: 13.66 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005335/0.4023, allocations: 181.9 kB / 337.1 MB, free: 13.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.247e-05/0.4024, allocations: 25.7 kB / 337.1 MB, free: 13.47 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002844/0.4027, allocations: 230.2 kB / 337.3 MB, free: 13.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.4029, allocations: 51.11 kB / 337.4 MB, free: 13.22 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.723e-05/0.4029, allocations: 0 / 337.4 MB, free: 13.22 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002849/0.4032, allocations: 326.7 kB / 337.7 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00038/0.4036, allocations: 58.42 kB / 337.8 MB, free: 12.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004274/0.4041, allocations: 88.23 kB / 337.9 MB, free: 12.79 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/0.4045, allocations: 63.52 kB / 337.9 MB, free: 12.76 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.149e-06/0.4046, allocations: 0 / 337.9 MB, free: 12.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.006391/0.411, allocations: 0.5286 MB / 338.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.703e-05/0.4111, allocations: 4 kB / 338.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.4111, allocations: 7.984 kB / 338.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008967/0.4121, allocations: 135.6 kB / 338.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005635/0.4127, allocations: 51.67 kB / 338.6 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01232/0.425, allocations: 2.096 MB / 340.7 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008093/0.4259, allocations: 39.81 kB / 340.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-05/0.426, allocations: 7.875 kB / 340.8 MB, free: 10.09 MB / 282.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.0003533/0.4264, allocations: 113 kB / 340.9 MB, free: 9.973 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.4266, allocations: 19.77 kB / 340.9 MB, free: 9.953 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001236/0.4267, allocations: 19.16 kB / 340.9 MB, free: 9.945 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.4268, allocations: 7.938 kB / 340.9 MB, free: 9.938 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.217e-06/0.4268, allocations: 0 / 340.9 MB, free: 9.938 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.4268, allocations: 3.984 kB / 340.9 MB, free: 9.934 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009897/0.4278, allocations: 284.5 kB / 341.2 MB, free: 9.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.83e-06/0.4279, allocations: 0 / 341.2 MB, free: 9.664 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004737/0.4284, allocations: 35.97 kB / 341.3 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008024/0.4292, allocations: 137.4 kB / 341.4 MB, free: 9.523 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-05/0.4293, allocations: 3.953 kB / 341.4 MB, free: 9.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/0.4418, allocations: 2.128 MB / 343.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.427e-06/0.4419, allocations: 4.094 kB / 343.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006849/0.4488, allocations: 0.6891 MB / 344.2 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003962/0.4493, allocations: 122.8 kB / 344.3 MB, free: 6.754 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.4494, allocations: 7.875 kB / 344.3 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008497/0.4503, allocations: 40.03 kB / 344.4 MB, free: 6.707 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.4504, allocations: 14.48 kB / 344.4 MB, free: 6.695 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.419e-05/0.4505, allocations: 4 kB / 344.4 MB, free: 6.691 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003846/0.4509, allocations: 144.4 kB / 344.5 MB, free: 6.574 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.353e-06/0.4509, allocations: 0 / 344.5 MB, free: 6.574 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001568/0.4525, allocations: 79.75 kB / 344.6 MB, free: 6.496 MB / 282.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.0003379/0.4529, allocations: 103.2 kB / 344.7 MB, free: 6.383 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002791/0.4557, allocations: 359.3 kB / 345.1 MB, free: 6.078 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.951e-06/0.4558, allocations: 0 / 345.1 MB, free: 6.078 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002417/0.4582, allocations: 302.5 kB / 345.4 MB, free: 5.801 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007619/0.459, allocations: 27.05 kB / 345.4 MB, free: 5.777 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.4614, allocations: 384.2 kB / 345.8 MB, free: 5.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008271/0.4622, allocations: 0.7514 MB / 346.5 MB, free: 4.633 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.4624, allocations: 18.94 kB / 346.5 MB, free: 4.621 MB / 282.7 MB Notification: Performance of SimCode: time 2.655e-06/0.4624, allocations: 0 / 346.5 MB, free: 4.621 MB / 282.7 MB Notification: Performance of Templates: time 0.01261/0.4751, allocations: 3.895 MB / 350.4 MB, free: 0.75 MB / 282.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.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