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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.647/1.647, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.544e-05/2.561e-05, allocations: 0 / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2224, allocations: 38.79 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1024/0.3249, allocations: 68 MB / 335.6 MB, free: 5.332 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.3251, allocations: 63.97 kB / 335.7 MB, free: 5.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02046/0.3456, allocations: 4.782 MB / 340.4 MB, free: 476 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.163e-06/0.3457, allocations: 0 / 340.4 MB, free: 476 kB / 282.7 MB Notification: Performance of Transformations before backend: time 1.924e-05/0.3457, allocations: 4 kB / 340.4 MB, free: 472 kB / 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.001172/0.3469, allocations: 0.5375 MB / 341 MB, free: 15.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3469, allocations: 8.031 kB / 341 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.406e-05/0.347, allocations: 31.62 kB / 341 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/0.3475, allocations: 251.5 kB / 341.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.3475, allocations: 20.44 kB / 341.3 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.759e-05/0.3476, allocations: 19.91 kB / 341.3 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005986/0.3482, allocations: 264.4 kB / 341.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.3482, allocations: 3.938 kB / 341.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.3483, allocations: 8 kB / 341.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.834e-06/0.3483, allocations: 4 kB / 341.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005075/0.3488, allocations: 185.7 kB / 341.8 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002464/0.3513, allocations: 1.269 MB / 343 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.353, allocations: 338.4 kB / 343.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.3533, allocations: 108.8 kB / 343.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.3533, allocations: 0 / 343.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.3533, allocations: 34.56 kB / 343.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.206e-06/0.3534, allocations: 0 / 343.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.003085/0.3565, allocations: 0.5255 MB / 344 MB, free: 12.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.3565, allocations: 51.41 kB / 344.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003069/0.3568, allocations: 201.1 kB / 344.3 MB, free: 12.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.903e-05/0.3569, allocations: 29.7 kB / 344.3 MB, free: 12.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.3571, allocations: 222.4 kB / 344.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.842e-05/0.3572, allocations: 55.28 kB / 344.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.791e-05/0.3572, allocations: 0 / 344.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3574, allocations: 322.8 kB / 344.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.3576, allocations: 60 kB / 344.9 MB, free: 11.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.3578, allocations: 103.4 kB / 345 MB, free: 11.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.358, allocations: 63.97 kB / 345.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.3581, allocations: 0 / 345.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.003071/0.3611, allocations: 0.5432 MB / 345.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3612, allocations: 11.89 kB / 345.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.116e-06/0.3612, allocations: 4 kB / 345.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004364/0.3617, allocations: 136.8 kB / 345.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.3619, allocations: 39.97 kB / 345.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006378/0.3683, allocations: 2.181 MB / 348 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003994/0.3688, allocations: 47.84 kB / 348.1 MB, free: 8.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/0.3688, allocations: 8 kB / 348.1 MB, free: 8.402 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.0001381/0.369, allocations: 116.9 kB / 348.2 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.681e-05/0.3691, allocations: 19.91 kB / 348.2 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.813e-05/0.3692, allocations: 29.94 kB / 348.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.3692, allocations: 4 kB / 348.2 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.384e-06/0.3692, allocations: 0 / 348.2 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.07e-06/0.3692, allocations: 0 / 348.2 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000555/0.3698, allocations: 337.2 kB / 348.6 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.491e-06/0.3698, allocations: 0 / 348.6 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.37, allocations: 39.91 kB / 348.6 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003908/0.3705, allocations: 136.8 kB / 348.7 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.3705, allocations: 0 / 348.7 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006193/0.3767, allocations: 2.177 MB / 350.9 MB, free: 5.355 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.458e-06/0.3767, allocations: 0 / 350.9 MB, free: 5.355 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003306/0.38, allocations: 0.7185 MB / 351.6 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.3802, allocations: 112.9 kB / 351.7 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.831e-05/0.3803, allocations: 4 kB / 351.8 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/0.3807, allocations: 39.92 kB / 351.8 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.3808, allocations: 7.984 kB / 351.8 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.405e-05/0.3808, allocations: 16.05 kB / 351.8 MB, free: 4.422 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002229/0.3811, allocations: 161.4 kB / 352 MB, free: 4.262 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.73e-07/0.3811, allocations: 3.938 kB / 352 MB, free: 4.258 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006385/0.3817, allocations: 83.84 kB / 352.1 MB, free: 4.176 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.000184/0.3819, allocations: 103.2 kB / 352.2 MB, free: 4.066 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.3834, allocations: 394.5 kB / 352.5 MB, free: 3.668 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.728e-06/0.3835, allocations: 0 / 352.5 MB, free: 3.668 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.3847, allocations: 310.5 kB / 352.8 MB, free: 3.352 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.385, allocations: 32.42 kB / 352.9 MB, free: 3.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.3862, allocations: 401 kB / 353.3 MB, free: 2.902 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004602/0.3867, allocations: 0.7519 MB / 354 MB, free: 2.121 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.662e-05/0.3868, allocations: 15.44 kB / 354 MB, free: 2.105 MB / 298.7 MB Notification: Performance of SimCode: time 1.908e-06/0.3868, allocations: 0 / 354 MB, free: 2.105 MB / 298.7 MB Notification: Performance of Templates: time 0.1802/0.5671, allocations: 4.032 MB / 358.1 MB, free: 80.1 MB / 298.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