Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadModel(Modelica): time 1.747/1.747, allocations: 194.9 MB / 211.7 MB, free: 2.969 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003563/0.0003564, allocations: 11.98 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07837/0.07875, allocations: 44.5 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3658/0.4446, allocations: 73.21 MB / 381.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.4448, allocations: 74.36 kB / 381.7 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02724/0.4721, allocations: 4.694 MB / 386.4 MB, free: 18.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.671e-06/0.4721, allocations: 4 kB / 386.4 MB, free: 18.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.717e-05/0.4722, allocations: 8.531 kB / 386.4 MB, free: 18.1 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.001705/0.4739, allocations: 0.5631 MB / 387 MB, free: 17.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.474, allocations: 9.688 kB / 387 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.4741, allocations: 29.98 kB / 387 MB, free: 17.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004836/0.4746, allocations: 252.8 kB / 387.3 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.4747, allocations: 16.91 kB / 387.3 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.372e-05/0.4748, allocations: 17.03 kB / 387.3 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.4762, allocations: 328.5 kB / 387.6 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.4763, allocations: 1.469 kB / 387.6 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.353e-05/0.4764, allocations: 8.625 kB / 387.6 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.4764, allocations: 6.406 kB / 387.6 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001829/0.4783, allocations: 286.8 kB / 387.9 MB, free: 17.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003387/0.4817, allocations: 1.267 MB / 389.2 MB, free: 16.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003847/0.4856, allocations: 488.1 kB / 389.7 MB, free: 16.51 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.759e-05/0.4856, allocations: 1.906 kB / 389.7 MB, free: 16.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.4857, allocations: 41.28 kB / 389.7 MB, free: 16.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 4.869e-06/0.4857, allocations: 0 / 389.7 MB, free: 16.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.009532/0.4953, allocations: 1.151 MB / 390.9 MB, free: 16.28 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.4953, allocations: 55.28 kB / 390.9 MB, free: 16.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.4957, allocations: 201.4 kB / 391.1 MB, free: 16.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.666e-05/0.4958, allocations: 29.58 kB / 391.1 MB, free: 16.08 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.4959, allocations: 225.2 kB / 391.4 MB, free: 15.9 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.311e-05/0.496, allocations: 49.52 kB / 391.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.471e-05/0.4961, allocations: 3.562 kB / 391.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.344e-05/0.4961, allocations: 318.9 kB / 391.7 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007006/0.4969, allocations: 117.6 kB / 391.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007106/0.4976, allocations: 145.6 kB / 392 MB, free: 15.51 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007144/0.4983, allocations: 122.6 kB / 392.1 MB, free: 15.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.372e-06/0.4984, allocations: 0 / 392.1 MB, free: 15.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00572/0.5041, allocations: 0.7027 MB / 392.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.5042, allocations: 3.906 kB / 392.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.395e-06/0.5042, allocations: 0 / 392.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.5055, allocations: 234.4 kB / 393 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.5059, allocations: 40.62 kB / 393.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01424/0.5202, allocations: 2.684 MB / 395.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006582/0.5209, allocations: 48.72 kB / 395.8 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.274e-05/0.521, allocations: 7.188 kB / 395.8 MB, free: 14 MB / 314.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 () * Number of clocked 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.0002553/0.5213, allocations: 139.3 kB / 396 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.5214, allocations: 23.38 kB / 396 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.956e-05/0.5215, allocations: 27.42 kB / 396 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.343e-06/0.5216, allocations: 0 / 396 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.677e-06/0.5216, allocations: 0 / 396 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.5216, allocations: 0 / 396 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007083/0.5223, allocations: 328.1 kB / 396.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.586e-06/0.5224, allocations: 0 / 396.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003551/0.5227, allocations: 32.7 kB / 396.4 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001378/0.5241, allocations: 236.6 kB / 396.6 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.532e-05/0.5242, allocations: 10.97 kB / 396.6 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/0.5365, allocations: 2.68 MB / 399.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.838e-06/0.5366, allocations: 3.938 kB / 399.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004116/0.5407, allocations: 0.9165 MB / 400.2 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.5408, allocations: 103.4 kB / 400.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.444e-05/0.5409, allocations: 4 kB / 400.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000412/0.5413, allocations: 41.45 kB / 400.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.5414, allocations: 9.641 kB / 400.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.5414, allocations: 6.438 kB / 400.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001791/0.5416, allocations: 161.6 kB / 400.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.5416, allocations: 0 / 400.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006299/0.5423, allocations: 92.31 kB / 400.6 MB, free: 11.85 MB / 314.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 () * Number of clocked 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.0001361/0.5424, allocations: 101.3 kB / 400.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001991/0.5444, allocations: 0.4886 MB / 401.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.502e-06/0.5445, allocations: 4.062 kB / 401.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.5459, allocations: 369.2 kB / 401.6 MB, free: 11.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.5464, allocations: 29.78 kB / 401.6 MB, free: 11.51 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.5479, allocations: 0.707 MB / 402.3 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.5481, allocations: 0.7518 MB / 403 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.509e-05/0.5482, allocations: 16.47 kB / 403.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of SimCode: time 1.633e-06/0.5482, allocations: 0 / 403.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of Templates: time 0.006723/0.555, allocations: 4.024 MB / 407.1 MB, free: 10.19 MB / 314.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.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