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.774/1.774, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003595, allocations: 12 kB / 233.1 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07054/0.07092, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003246/0.07423, allocations: 2.169 MB / 274.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.07572, allocations: 0.6824 MB / 274.8 MB, free: 9.332 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.0759, allocations: 4 kB / 274.8 MB, free: 9.328 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.501e-05/0.07599, allocations: 27.77 kB / 274.8 MB, free: 9.301 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003297/0.07634, allocations: 103.7 kB / 274.9 MB, free: 9.199 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.07659, allocations: 83.77 kB / 275 MB, free: 9.117 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003651/0.07697, allocations: 227.5 kB / 275.2 MB, free: 8.895 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/0.07719, allocations: 73.14 kB / 275.3 MB, free: 8.82 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002419/0.07745, allocations: 119.6 kB / 275.4 MB, free: 8.703 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.0777, allocations: 147.4 kB / 275.5 MB, free: 8.559 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.997e-05/0.07777, allocations: 16 kB / 275.6 MB, free: 8.543 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.106e-05/0.07784, allocations: 16 kB / 275.6 MB, free: 8.527 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.636e-05/0.07792, allocations: 55.75 kB / 275.6 MB, free: 8.473 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.456e-05/0.07802, allocations: 69.58 kB / 275.7 MB, free: 8.398 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000343/0.07837, allocations: 251.5 kB / 275.9 MB, free: 8.152 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.082e-06/0.07838, allocations: 0 / 275.9 MB, free: 8.152 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.796e-06/0.0784, allocations: 0 / 275.9 MB, free: 8.152 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.07841, allocations: 0 / 275.9 MB, free: 8.152 MB / 234.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.001635/0.08006, allocations: 0.612 MB / 276.6 MB, free: 7.492 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.08012, allocations: 12.02 kB / 276.6 MB, free: 7.48 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.931e-05/0.08023, allocations: 31.62 kB / 276.6 MB, free: 7.449 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.08065, allocations: 251.5 kB / 276.8 MB, free: 7.16 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.08069, allocations: 24.39 kB / 276.9 MB, free: 7.137 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.566e-05/0.08076, allocations: 16 kB / 276.9 MB, free: 7.121 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008959/0.08167, allocations: 328.3 kB / 277.2 MB, free: 6.777 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.0817, allocations: 4 kB / 277.2 MB, free: 6.773 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.837e-05/0.08175, allocations: 7.938 kB / 277.2 MB, free: 6.766 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.08177, allocations: 8 kB / 277.2 MB, free: 6.758 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00103/0.08281, allocations: 293.5 kB / 277.5 MB, free: 6.473 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002543/0.08538, allocations: 1.242 MB / 278.7 MB, free: 5.145 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002406/0.08782, allocations: 490.2 kB / 279.2 MB, free: 4.656 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.08788, allocations: 4 kB / 279.2 MB, free: 4.652 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.08792, allocations: 34.55 kB / 279.3 MB, free: 4.609 MB / 234.7 MB Notification: Performance of pre-optimization done (n=14): time 3.039e-06/0.08794, allocations: 0 / 279.3 MB, free: 4.609 MB / 234.7 MB Notification: Performance of matching and sorting (n=14): time 0.006109/0.09406, allocations: 1.124 MB / 280.4 MB, free: 3.457 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.09415, allocations: 59.39 kB / 280.4 MB, free: 3.387 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003601/0.09453, allocations: 220.9 kB / 280.7 MB, free: 3.164 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.09459, allocations: 29.7 kB / 280.7 MB, free: 3.129 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.09477, allocations: 222.4 kB / 280.9 MB, free: 2.91 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.655e-05/0.09485, allocations: 47.27 kB / 281 MB, free: 2.863 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.048e-05/0.09488, allocations: 8 kB / 281 MB, free: 2.855 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.09506, allocations: 322.8 kB / 281.3 MB, free: 2.531 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004827/0.09556, allocations: 115.9 kB / 281.4 MB, free: 2.418 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004974/0.09607, allocations: 145.1 kB / 281.5 MB, free: 2.266 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004716/0.09657, allocations: 123.9 kB / 281.7 MB, free: 2.145 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.905e-06/0.09659, allocations: 4 kB / 281.7 MB, free: 2.141 MB / 234.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.003636/0.1002, allocations: 0.6922 MB / 282.3 MB, free: 1.441 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.1003, allocations: 4 kB / 282.4 MB, free: 1.438 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.7e-06/0.1003, allocations: 0 / 282.4 MB, free: 1.438 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009216/0.1012, allocations: 236.6 kB / 282.6 MB, free: 1.203 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.1015, allocations: 47.91 kB / 282.6 MB, free: 1.156 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008716/0.1103, allocations: 2.693 MB / 285.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003694/0.1107, allocations: 39.89 kB / 285.4 MB, free: 14.29 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.594e-05/0.1107, allocations: 11.98 kB / 285.4 MB, free: 14.27 MB / 250.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.0002105/0.1109, allocations: 146.2 kB / 285.5 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.045e-05/0.111, allocations: 19.72 kB / 285.5 MB, free: 14.1 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.511e-05/0.1111, allocations: 29.83 kB / 285.6 MB, free: 14.07 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.572e-06/0.1111, allocations: 0 / 285.6 MB, free: 14.07 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.133e-06/0.1111, allocations: 4 kB / 285.6 MB, free: 14.07 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.426e-06/0.1112, allocations: 0 / 285.6 MB, free: 14.07 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000552/0.1117, allocations: 329.3 kB / 285.9 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.1117, allocations: 0 / 285.9 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.112, allocations: 31.97 kB / 285.9 MB, free: 13.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008589/0.1128, allocations: 232.7 kB / 286.1 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.757e-05/0.1129, allocations: 4 kB / 286.2 MB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008452/0.1214, allocations: 2.669 MB / 288.8 MB, free: 10.63 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.504e-06/0.1214, allocations: 8.016 kB / 288.8 MB, free: 10.62 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004123/0.1255, allocations: 0.9174 MB / 289.7 MB, free: 9.688 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002038/0.1258, allocations: 112.9 kB / 289.9 MB, free: 9.559 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.777e-05/0.1258, allocations: 0 / 289.9 MB, free: 9.559 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/0.1263, allocations: 44.03 kB / 289.9 MB, free: 9.516 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/0.1263, allocations: 12.03 kB / 289.9 MB, free: 9.504 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-05/0.1264, allocations: 11.97 kB / 289.9 MB, free: 9.492 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002232/0.1266, allocations: 160.5 kB / 290.1 MB, free: 9.336 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.968e-06/0.1266, allocations: 4 kB / 290.1 MB, free: 9.332 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006447/0.1273, allocations: 91.69 kB / 290.2 MB, free: 9.242 MB / 250.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.0001591/0.1275, allocations: 103.2 kB / 290.3 MB, free: 9.133 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.1295, allocations: 482.4 kB / 290.7 MB, free: 8.648 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.267e-06/0.1295, allocations: 0 / 290.7 MB, free: 8.648 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.1309, allocations: 350.6 kB / 291.1 MB, free: 8.293 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.1313, allocations: 28.42 kB / 291.1 MB, free: 8.266 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.1331, allocations: 0.7113 MB / 291.8 MB, free: 7.523 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004662/0.1336, allocations: 0.7556 MB / 292.6 MB, free: 6.742 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.099e-05/0.1337, allocations: 15.44 kB / 292.6 MB, free: 6.727 MB / 250.7 MB Notification: Performance of SimCode: time 1.606e-06/0.1337, allocations: 0 / 292.6 MB, free: 6.727 MB / 250.7 MB Notification: Performance of Templates: time 0.008311/0.142, allocations: 4 MB / 296.6 MB, free: 2.723 MB / 250.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