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.897/1.897, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003498, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08055/0.08093, allocations: 44.5 MB / 308.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003315/0.08429, allocations: 2.177 MB / 310.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.08586, allocations: 0.687 MB / 311.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.08606, allocations: 7.938 kB / 311.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.071e-05/0.08616, allocations: 35.75 kB / 311.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003343/0.08651, allocations: 103.6 kB / 311.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002467/0.08677, allocations: 71.89 kB / 311.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003806/0.08717, allocations: 239.3 kB / 311.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.08738, allocations: 73.14 kB / 311.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.08764, allocations: 115.6 kB / 311.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002309/0.08789, allocations: 139.5 kB / 312 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-05/0.08796, allocations: 16 kB / 312 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.741e-05/0.08803, allocations: 16 kB / 312 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.42e-05/0.08811, allocations: 55.8 kB / 312.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.124e-05/0.08821, allocations: 73.52 kB / 312.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003509/0.08857, allocations: 247.5 kB / 312.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.78e-06/0.08859, allocations: 4 kB / 312.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.368e-06/0.0886, allocations: 0 / 312.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.08862, allocations: 0 / 312.4 MB, free: 12.97 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.001634/0.09027, allocations: 0.6236 MB / 313 MB, free: 12.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.09033, allocations: 8.031 kB / 313 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.753e-05/0.09043, allocations: 23.72 kB / 313 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.09085, allocations: 255.5 kB / 313.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.09089, allocations: 16.44 kB / 313.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/0.09097, allocations: 16 kB / 313.3 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009051/0.09188, allocations: 328.3 kB / 313.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.09192, allocations: 0 / 313.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.053e-05/0.09198, allocations: 8 kB / 313.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.806e-06/0.092, allocations: 8 kB / 313.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.09307, allocations: 297.5 kB / 313.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.09557, allocations: 1.249 MB / 315.2 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/0.09801, allocations: 482.3 kB / 315.7 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.09808, allocations: 4 kB / 315.7 MB, free: 9.473 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.09813, allocations: 30.56 kB / 315.7 MB, free: 9.434 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 3.65e-06/0.09814, allocations: 0 / 315.7 MB, free: 9.434 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.006584/0.1047, allocations: 1.132 MB / 316.8 MB, free: 8.273 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.1048, allocations: 55.34 kB / 316.9 MB, free: 8.207 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003586/0.1052, allocations: 229 kB / 317.1 MB, free: 7.973 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.841e-05/0.1053, allocations: 25.7 kB / 317.1 MB, free: 7.941 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.1055, allocations: 222.4 kB / 317.3 MB, free: 7.723 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.179e-05/0.1055, allocations: 51.27 kB / 317.4 MB, free: 7.672 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.826e-05/0.1056, allocations: 0 / 317.4 MB, free: 7.672 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.1057, allocations: 322.8 kB / 317.7 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004756/0.1062, allocations: 115.9 kB / 317.8 MB, free: 7.234 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005145/0.1068, allocations: 159.3 kB / 318 MB, free: 7.066 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000568/0.1074, allocations: 112.9 kB / 318.1 MB, free: 6.957 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.08e-06/0.1074, allocations: 4 kB / 318.1 MB, free: 6.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.005826/0.1132, allocations: 0.6983 MB / 318.8 MB, free: 6.246 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.1133, allocations: 4 kB / 318.8 MB, free: 6.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.1133, allocations: 4 kB / 318.8 MB, free: 6.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001475/0.1148, allocations: 232.7 kB / 319 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003928/0.1153, allocations: 35.97 kB / 319.1 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/0.1257, allocations: 2.681 MB / 321.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003661/0.1261, allocations: 39.81 kB / 321.8 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.1262, allocations: 8 kB / 321.8 MB, free: 3.109 MB / 266.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.0002098/0.1264, allocations: 141.8 kB / 321.9 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.551e-05/0.1265, allocations: 23.72 kB / 322 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.244e-05/0.1266, allocations: 21.92 kB / 322 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.208e-06/0.1266, allocations: 3.984 kB / 322 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.549e-06/0.1266, allocations: 0 / 322 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.423e-06/0.1266, allocations: 4 kB / 322 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005565/0.1272, allocations: 329.3 kB / 322.3 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.129e-06/0.1272, allocations: 0 / 322.3 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.1274, allocations: 35.97 kB / 322.3 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000885/0.1283, allocations: 236.6 kB / 322.6 MB, free: 2.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.1284, allocations: 4 kB / 322.6 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009498/0.1379, allocations: 2.677 MB / 325.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.385e-06/0.1379, allocations: 3.984 kB / 325.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004231/0.1422, allocations: 0.9102 MB / 326.2 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.1424, allocations: 104.8 kB / 326.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.525e-05/0.1424, allocations: 4 kB / 326.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000379/0.1428, allocations: 35.97 kB / 326.3 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.1429, allocations: 12.05 kB / 326.3 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.1429, allocations: 11.98 kB / 326.3 MB, free: 14.33 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002209/0.1432, allocations: 156.5 kB / 326.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.84e-07/0.1432, allocations: 0 / 326.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006323/0.1438, allocations: 79.84 kB / 326.6 MB, free: 14.1 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 () * 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.0001785/0.144, allocations: 107.4 kB / 326.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001984/0.146, allocations: 490.3 kB / 327.1 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.1461, allocations: 0 / 327.1 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.1474, allocations: 350.7 kB / 327.5 MB, free: 13.14 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004109/0.1479, allocations: 35.52 kB / 327.5 MB, free: 13.11 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.1497, allocations: 0.7095 MB / 328.2 MB, free: 12.37 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/0.1502, allocations: 0.7479 MB / 329 MB, free: 11.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.853e-05/0.1503, allocations: 19.44 kB / 329 MB, free: 11.57 MB / 282.7 MB Notification: Performance of SimCode: time 2.062e-06/0.1503, allocations: 0 / 329 MB, free: 11.57 MB / 282.7 MB Notification: Performance of Templates: time 0.008475/0.1588, allocations: 3.993 MB / 333 MB, free: 7.57 MB / 282.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