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.51/1.51, allocations: 171.2 MB / 186.8 MB, free: 1.023 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003467, allocations: 8 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06708/0.06745, allocations: 38.76 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3256/0.3931, allocations: 68.1 MB / 340.1 MB, free: 5.797 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.3934, allocations: 67.84 kB / 340.2 MB, free: 5.762 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01971/0.4131, allocations: 4.782 MB / 344.9 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.398e-06/0.4131, allocations: 0 / 344.9 MB, free: 1.625 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.014e-05/0.4132, allocations: 8 kB / 345 MB, free: 1.617 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.001142/0.4143, allocations: 0.5622 MB / 345.5 MB, free: 1.023 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4144, allocations: 8.031 kB / 345.5 MB, free: 1.016 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.537e-05/0.4145, allocations: 35.62 kB / 345.6 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003666/0.4148, allocations: 253.4 kB / 345.8 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.4149, allocations: 11.88 kB / 345.8 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.604e-05/0.4149, allocations: 22.69 kB / 345.8 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008409/0.4158, allocations: 329 kB / 346.2 MB, free: 428 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.4158, allocations: 0 / 346.2 MB, free: 428 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.007e-05/0.4159, allocations: 9.812 kB / 346.2 MB, free: 424 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.86e-06/0.4159, allocations: 4 kB / 346.2 MB, free: 420 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000988/0.4169, allocations: 290.6 kB / 346.5 MB, free: 196 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.4192, allocations: 1.266 MB / 347.7 MB, free: 15.01 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/0.4215, allocations: 479.8 kB / 348.2 MB, free: 14.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.4215, allocations: 6.609 kB / 348.2 MB, free: 14.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.4216, allocations: 34.56 kB / 348.2 MB, free: 14.55 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.48e-06/0.4216, allocations: 3.938 kB / 348.2 MB, free: 14.55 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.006038/0.4276, allocations: 1.144 MB / 349.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.4277, allocations: 55.41 kB / 349.4 MB, free: 13.39 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.428, allocations: 201.9 kB / 349.6 MB, free: 13.22 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.4281, allocations: 29.2 kB / 349.7 MB, free: 13.19 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.4282, allocations: 226 kB / 349.9 MB, free: 12.99 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.503e-05/0.4283, allocations: 50.02 kB / 349.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.766e-05/0.4283, allocations: 3.938 kB / 349.9 MB, free: 12.94 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4285, allocations: 322 kB / 350.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004491/0.4289, allocations: 120.1 kB / 350.4 MB, free: 12.53 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004621/0.4294, allocations: 148.9 kB / 350.5 MB, free: 12.4 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004578/0.4299, allocations: 121.9 kB / 350.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.191e-06/0.4299, allocations: 3.938 kB / 350.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.003606/0.4335, allocations: 0.6922 MB / 351.3 MB, free: 11.68 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.4336, allocations: 12.02 kB / 351.3 MB, free: 11.67 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.4336, allocations: 4 kB / 351.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008925/0.4345, allocations: 237.4 kB / 351.6 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/0.4347, allocations: 39.84 kB / 351.6 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008451/0.4432, allocations: 2.703 MB / 354.3 MB, free: 8.836 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003581/0.4436, allocations: 39.89 kB / 354.4 MB, free: 8.797 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-05/0.4436, allocations: 11.48 kB / 354.4 MB, free: 8.789 MB / 282.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.0002051/0.4439, allocations: 139.5 kB / 354.5 MB, free: 8.656 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.591e-05/0.4439, allocations: 19.72 kB / 354.5 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.995e-05/0.444, allocations: 28.27 kB / 354.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.489e-06/0.444, allocations: 0 / 354.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.4441, allocations: 0 / 354.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.422e-06/0.4441, allocations: 0 / 354.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005011/0.4446, allocations: 326.5 kB / 354.9 MB, free: 8.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.623e-06/0.4446, allocations: 0 / 354.9 MB, free: 8.301 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002113/0.4448, allocations: 35.91 kB / 354.9 MB, free: 8.266 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008263/0.4457, allocations: 231.9 kB / 355.1 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.4457, allocations: 2 kB / 355.1 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008313/0.454, allocations: 2.683 MB / 357.8 MB, free: 5.492 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.243e-06/0.4541, allocations: 3.953 kB / 357.8 MB, free: 5.488 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004068/0.4582, allocations: 0.9254 MB / 358.7 MB, free: 4.656 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.4583, allocations: 103.9 kB / 358.8 MB, free: 4.543 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.143e-05/0.4584, allocations: 15.56 kB / 358.9 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003695/0.4588, allocations: 36.05 kB / 358.9 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.813e-05/0.4589, allocations: 11.67 kB / 358.9 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.4589, allocations: 11.98 kB / 358.9 MB, free: 4.477 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000213/0.4591, allocations: 162 kB / 359.1 MB, free: 4.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.92e-06/0.4591, allocations: 0 / 359.1 MB, free: 4.34 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006268/0.4598, allocations: 91.47 kB / 359.2 MB, free: 4.254 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.0001659/0.46, allocations: 102.6 kB / 359.3 MB, free: 4.145 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.4619, allocations: 0.4915 MB / 359.8 MB, free: 3.695 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.628e-06/0.4619, allocations: 4 kB / 359.8 MB, free: 3.691 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.4633, allocations: 363.2 kB / 360.1 MB, free: 3.355 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.4637, allocations: 37.17 kB / 360.2 MB, free: 3.328 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.4653, allocations: 0.6926 MB / 360.8 MB, free: 2.645 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.4658, allocations: 0.7556 MB / 361.6 MB, free: 1.863 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.896e-05/0.4658, allocations: 19.44 kB / 361.6 MB, free: 1.844 MB / 282.7 MB Notification: Performance of SimCode: time 1.434e-06/0.4659, allocations: 0 / 361.6 MB, free: 1.844 MB / 282.7 MB Notification: Performance of Templates: time 0.007875/0.4737, allocations: 4.033 MB / 365.7 MB, free: 13.84 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