Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.9/1.9, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003336, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09363/0.09399, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.39/0.4841, allocations: 73.2 MB / 382.2 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.4844, allocations: 77.12 kB / 382.2 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0216/0.506, allocations: 4.703 MB / 386.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.5061, allocations: 0 / 386.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.104e-05/0.5061, allocations: 5.594 kB / 386.9 MB, free: 14.23 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.001392/0.5075, allocations: 0.5605 MB / 387.5 MB, free: 13.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.5076, allocations: 11.19 kB / 387.5 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.5077, allocations: 29.86 kB / 387.6 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003477/0.508, allocations: 255.2 kB / 387.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.5081, allocations: 20.03 kB / 387.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.772e-05/0.5081, allocations: 18.62 kB / 387.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.5092, allocations: 320 kB / 388.1 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.5092, allocations: 5.531 kB / 388.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.534e-05/0.5093, allocations: 10 kB / 388.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.5093, allocations: 6.031 kB / 388.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.5106, allocations: 292.8 kB / 388.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00253/0.5132, allocations: 1.266 MB / 389.7 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003235/0.5164, allocations: 481.3 kB / 390.2 MB, free: 12.63 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.967e-05/0.5165, allocations: 3.938 kB / 390.2 MB, free: 12.63 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.5166, allocations: 34.06 kB / 390.2 MB, free: 12.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.555e-06/0.5166, allocations: 0 / 390.2 MB, free: 12.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.00915/0.5257, allocations: 1.156 MB / 391.4 MB, free: 12.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.5258, allocations: 55.41 kB / 391.4 MB, free: 12.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003327/0.5262, allocations: 222 kB / 391.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.837e-05/0.5262, allocations: 37.11 kB / 391.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.013e-05/0.5263, allocations: 213.7 kB / 391.9 MB, free: 12.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.868e-05/0.5264, allocations: 52.92 kB / 392 MB, free: 11.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.5264, allocations: 3.625 kB / 392 MB, free: 11.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.406e-05/0.5265, allocations: 317.7 kB / 392.3 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005629/0.5271, allocations: 114 kB / 392.4 MB, free: 11.67 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005761/0.5277, allocations: 157.4 kB / 392.5 MB, free: 11.63 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005868/0.5283, allocations: 114.1 kB / 392.6 MB, free: 11.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5283, allocations: 0 / 392.6 MB, free: 11.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.005303/0.5336, allocations: 0.7021 MB / 393.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.5337, allocations: 11.72 kB / 393.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.5337, allocations: 0 / 393.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.5348, allocations: 233.3 kB / 393.6 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003318/0.5352, allocations: 38.77 kB / 393.6 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/0.5463, allocations: 2.692 MB / 396.3 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005336/0.5468, allocations: 43.11 kB / 396.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.5469, allocations: 6.891 kB / 396.4 MB, free: 10.12 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.0002026/0.5471, allocations: 138.6 kB / 396.5 MB, free: 9.996 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.111e-05/0.5472, allocations: 19.25 kB / 396.5 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.565e-05/0.5473, allocations: 30.88 kB / 396.5 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.5473, allocations: 0 / 396.5 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.5473, allocations: 0 / 396.5 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.5473, allocations: 3.953 kB / 396.6 MB, free: 9.977 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004582/0.5478, allocations: 331.6 kB / 396.9 MB, free: 9.785 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.5478, allocations: 0 / 396.9 MB, free: 9.785 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/0.5481, allocations: 32.19 kB / 396.9 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001023/0.5491, allocations: 233.4 kB / 397.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.5492, allocations: 2.906 kB / 397.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/0.5601, allocations: 2.691 MB / 399.8 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5601, allocations: 0 / 399.8 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005801/0.5659, allocations: 0.9156 MB / 400.7 MB, free: 8.184 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.5661, allocations: 92.73 kB / 400.8 MB, free: 8.078 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.5661, allocations: 7.422 kB / 400.8 MB, free: 8.078 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005017/0.5666, allocations: 46.7 kB / 400.9 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.176e-05/0.5667, allocations: 19.03 kB / 400.9 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.642e-05/0.5667, allocations: 0 / 400.9 MB, free: 8.062 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001868/0.5669, allocations: 165.9 kB / 401.1 MB, free: 7.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.567, allocations: 0 / 401.1 MB, free: 7.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006204/0.5676, allocations: 84.69 kB / 401.2 MB, free: 7.969 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.0001617/0.5678, allocations: 109.7 kB / 401.3 MB, free: 7.879 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002599/0.5704, allocations: 498.4 kB / 401.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.5704, allocations: 0 / 401.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001913/0.5723, allocations: 366.8 kB / 402.1 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004547/0.5728, allocations: 28.31 kB / 402.1 MB, free: 7.625 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.5746, allocations: 0.7064 MB / 402.8 MB, free: 7.227 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.5749, allocations: 0.7535 MB / 403.6 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.296e-05/0.575, allocations: 18.5 kB / 403.6 MB, free: 6.516 MB / 314.7 MB Notification: Performance of SimCode: time 1.102e-06/0.575, allocations: 0 / 403.6 MB, free: 6.516 MB / 314.7 MB Notification: Performance of Templates: time 0.007999/0.583, allocations: 4.02 MB / 407.6 MB, free: 6.102 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