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.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.559/1.559, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.244e-05/3.251e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2024, allocations: 38.78 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1025/0.305, allocations: 68.73 MB / 336.3 MB, free: 4.602 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.3052, allocations: 67.97 kB / 336.4 MB, free: 4.535 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01887/0.3241, allocations: 4.842 MB / 341.2 MB, free: 15.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.169e-06/0.3242, allocations: 4 kB / 341.2 MB, free: 15.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.965e-05/0.3242, allocations: 11.98 kB / 341.3 MB, free: 15.65 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0009816/0.3252, allocations: 0.5391 MB / 341.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.3253, allocations: 8.031 kB / 341.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.71e-05/0.3254, allocations: 31.62 kB / 341.8 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004257/0.3258, allocations: 271.7 kB / 342.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.3259, allocations: 24.5 kB / 342.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.715e-05/0.3259, allocations: 27.95 kB / 342.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006248/0.3266, allocations: 272.6 kB / 342.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.3266, allocations: 0 / 342.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.068e-05/0.3267, allocations: 12 kB / 342.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.3267, allocations: 11.94 kB / 342.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004968/0.3272, allocations: 190.2 kB / 342.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.3295, allocations: 1.152 MB / 343.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006213/0.3301, allocations: 203.3 kB / 344 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003807/0.3306, allocations: 145.4 kB / 344.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.3306, allocations: 12.02 kB / 344.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003454/0.331, allocations: 160.6 kB / 344.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 3.306e-06/0.331, allocations: 4 kB / 344.3 MB, free: 12.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007642/0.3317, allocations: 263.1 kB / 344.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.3319, allocations: 132.5 kB / 344.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003477/0.3322, allocations: 217.1 kB / 344.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.444e-05/0.3323, allocations: 33.7 kB / 344.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.3325, allocations: 218.7 kB / 345.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.207e-05/0.3326, allocations: 75.02 kB / 345.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/0.3326, allocations: 8 kB / 345.2 MB, free: 11.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.3328, allocations: 318.8 kB / 345.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.333, allocations: 68 kB / 345.6 MB, free: 11.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.3332, allocations: 113.1 kB / 345.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.3334, allocations: 75.95 kB / 345.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.44e-06/0.3334, allocations: 0 / 345.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006316/0.3341, allocations: 262.2 kB / 346 MB, free: 10.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.3341, allocations: 5.094 kB / 346 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.915e-06/0.3341, allocations: 0 / 346 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004578/0.3346, allocations: 100.8 kB / 346.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.3348, allocations: 31.88 kB / 346.2 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003096/0.3379, allocations: 1.967 MB / 348.1 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003223/0.3383, allocations: 39.91 kB / 348.2 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.3383, allocations: 8 kB / 348.2 MB, free: 8.277 MB / 298.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: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete 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 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.3385, allocations: 120.9 kB / 348.3 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.236e-05/0.3385, allocations: 23.72 kB / 348.3 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.89e-05/0.3386, allocations: 33.95 kB / 348.4 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3386, allocations: 0 / 348.4 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.86e-06/0.3387, allocations: 8 kB / 348.4 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.243e-06/0.3387, allocations: 0 / 348.4 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.3401, allocations: 0.7959 MB / 349.2 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.306e-06/0.3402, allocations: 0 / 349.2 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.3403, allocations: 23.98 kB / 349.2 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003792/0.3407, allocations: 92.89 kB / 349.3 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.3408, allocations: 4 kB / 349.3 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002942/0.3437, allocations: 1.944 MB / 351.2 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.007e-06/0.3438, allocations: 0 / 351.2 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008903/0.3447, allocations: 450.2 kB / 351.7 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.3449, allocations: 124.8 kB / 351.8 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.719e-05/0.345, allocations: 7.953 kB / 351.8 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/0.3452, allocations: 23.98 kB / 351.8 MB, free: 4.395 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.3454, allocations: 36 kB / 351.8 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.3454, allocations: 8.109 kB / 351.9 MB, free: 4.352 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002484/0.3457, allocations: 177.3 kB / 352 MB, free: 4.176 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.59e-07/0.3457, allocations: 0 / 352 MB, free: 4.176 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000648/0.3464, allocations: 87.84 kB / 352.1 MB, free: 4.09 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.000183/0.3466, allocations: 111.2 kB / 352.2 MB, free: 3.973 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008253/0.3474, allocations: 342.3 kB / 352.6 MB, free: 3.625 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.402e-06/0.3474, allocations: 0 / 352.6 MB, free: 3.625 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005122/0.348, allocations: 254.3 kB / 352.8 MB, free: 3.363 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.3484, allocations: 56.66 kB / 352.9 MB, free: 3.309 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.3495, allocations: 422.5 kB / 353.3 MB, free: 2.867 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.35, allocations: 0.7677 MB / 354 MB, free: 2.074 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.354e-05/0.3501, allocations: 19.44 kB / 354.1 MB, free: 2.055 MB / 298.7 MB Notification: Performance of SimCode: time 1.876e-06/0.3501, allocations: 4 kB / 354.1 MB, free: 2.051 MB / 298.7 MB Notification: Performance of Templates: time 0.1851/0.5352, allocations: 4.46 MB / 358.5 MB, free: 79.48 MB / 298.7 MB "Error: Could not read variable V.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat. Warning: Get data of variable V.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat failed! Error: Could not read variable idealTriac.idealThyristor.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat. Warning: Get data of variable idealTriac.idealThyristor.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat failed! Error: Could not read variable idealTriac.idealThyristor1.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat. Warning: Get data of variable idealTriac.idealThyristor1.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat failed! " Variables in the reference:time,idealTriac.capacitor.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off Variables in the result:R.LossPower,R.R,R.R_actual,R.T,R.T_heatPort,R.T_ref,R.alpha,R.i,R.n.i,R.n.v,R.p.i,R.p.v,R.v,V.V,V.freqHz,V.i,V.n.i,V.n.v,V.offset,V.p.i,V.p.v,V.phase,V.signalSource.amplitude,V.signalSource.freqHz,V.signalSource.offset,V.signalSource.phase,V.signalSource.startTime,V.signalSource.y,V.startTime,V.v,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,ground.p.i,ground.p.v,idealTriac.Cdis,idealTriac.Goff,idealTriac.Rdis,idealTriac.Ron,idealTriac.Vknee,idealTriac.capacitor.C,der(idealTriac.capacitor.v),idealTriac.capacitor.i,idealTriac.capacitor.n.i,idealTriac.capacitor.n.v,idealTriac.capacitor.p.i,idealTriac.capacitor.p.v,idealTriac.capacitor.v,idealTriac.fire1,idealTriac.idealThyristor.Goff,idealTriac.idealThyristor.LossPower,idealTriac.idealThyristor.Ron,idealTriac.idealThyristor.T,idealTriac.idealThyristor.T_heatPort,idealTriac.idealThyristor.Vknee,idealTriac.idealThyristor.fire,idealTriac.idealThyristor.i,idealTriac.idealThyristor.n.i,idealTriac.idealThyristor.n.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor.p.i,idealTriac.idealThyristor.p.v,idealTriac.idealThyristor.v,idealTriac.idealThyristor1.Goff,idealTriac.idealThyristor1.LossPower,idealTriac.idealThyristor1.Ron,idealTriac.idealThyristor1.T,idealTriac.idealThyristor1.T_heatPort,idealTriac.idealThyristor1.Vknee,idealTriac.idealThyristor1.fire,idealTriac.idealThyristor1.i,idealTriac.idealThyristor1.n.i,idealTriac.idealThyristor1.n.v,idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.p.i,idealTriac.idealThyristor1.p.v,idealTriac.idealThyristor1.v,idealTriac.n.i,idealTriac.n.v,idealTriac.p.i,idealTriac.p.v,idealTriac.resistor.LossPower,idealTriac.resistor.R,idealTriac.resistor.R_actual,idealTriac.resistor.T,idealTriac.resistor.T_heatPort,idealTriac.resistor.T_ref,idealTriac.resistor.alpha,idealTriac.resistor.i,idealTriac.resistor.n.i,idealTriac.resistor.n.v,idealTriac.resistor.p.i,idealTriac.resistor.p.v,idealTriac.resistor.v,time