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.748/1.748, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006107/0.000611, allocations: 8 kB / 233.2 MB, free: 3.027 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08592/0.08657, allocations: 38.77 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2979/0.3845, allocations: 68.82 MB / 340.8 MB, free: 5.113 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.3848, allocations: 70.53 kB / 340.9 MB, free: 5.074 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0187/0.4035, allocations: 4.851 MB / 345.8 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.501e-06/0.4035, allocations: 0 / 345.8 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.566e-05/0.4036, allocations: 8 kB / 345.8 MB, free: 0.9609 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001116/0.4047, allocations: 0.5722 MB / 346.3 MB, free: 368 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.4048, allocations: 8.031 kB / 346.3 MB, free: 360 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.4049, allocations: 39.53 kB / 346.4 MB, free: 320 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.4053, allocations: 276.4 kB / 346.6 MB, free: 28 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.4054, allocations: 19.33 kB / 346.7 MB, free: 16 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.4054, allocations: 24.75 kB / 346.7 MB, free: 0 / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006831/0.4061, allocations: 285.8 kB / 347 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.4062, allocations: 3.984 kB / 347 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.182e-05/0.4062, allocations: 11.38 kB / 347 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.4063, allocations: 8 kB / 347 MB, free: 15.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005606/0.4068, allocations: 207.3 kB / 347.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.409, allocations: 1.147 MB / 348.3 MB, free: 14.63 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006489/0.4097, allocations: 225.7 kB / 348.6 MB, free: 14.48 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.4098, allocations: 4.188 kB / 348.6 MB, free: 14.48 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004064/0.4102, allocations: 162.3 kB / 348.7 MB, free: 14.34 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 3.094e-06/0.4102, allocations: 0 / 348.7 MB, free: 14.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.001824/0.412, allocations: 0.5238 MB / 349.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.395e-05/0.4122, allocations: 110.6 kB / 349.4 MB, free: 13.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003348/0.4125, allocations: 222.6 kB / 349.6 MB, free: 13.56 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.967e-05/0.4126, allocations: 29.45 kB / 349.6 MB, free: 13.53 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.4127, allocations: 229.6 kB / 349.8 MB, free: 13.33 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.983e-05/0.4128, allocations: 69.75 kB / 349.9 MB, free: 13.27 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.644e-05/0.4129, allocations: 3.812 kB / 349.9 MB, free: 13.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.4131, allocations: 324.1 kB / 350.2 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002298/0.4133, allocations: 70.53 kB / 350.3 MB, free: 12.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.4136, allocations: 123.7 kB / 350.4 MB, free: 12.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.4138, allocations: 85.47 kB / 350.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.554e-06/0.4139, allocations: 0 / 350.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007319/0.4146, allocations: 286.9 kB / 350.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.4146, allocations: 11.95 kB / 350.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.633e-06/0.4147, allocations: 0 / 350.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004421/0.4151, allocations: 89.48 kB / 350.9 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.4153, allocations: 31.55 kB / 350.9 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003088/0.4184, allocations: 1.971 MB / 352.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003111/0.4188, allocations: 38.36 kB / 352.9 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.4188, allocations: 4 kB / 352.9 MB, free: 10.62 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002495/0.4191, allocations: 148 kB / 353.1 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.955e-05/0.4192, allocations: 27.78 kB / 353.1 MB, free: 10.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.202e-05/0.4192, allocations: 31.55 kB / 353.1 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.177e-06/0.4193, allocations: 4 kB / 353.1 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.4193, allocations: 0 / 353.1 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.6e-06/0.4193, allocations: 0 / 353.1 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005022/0.4198, allocations: 354.3 kB / 353.5 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.282e-06/0.4198, allocations: 0 / 353.5 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.42, allocations: 23.92 kB / 353.5 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003756/0.4204, allocations: 93.09 kB / 353.6 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.4204, allocations: 7.375 kB / 353.6 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003035/0.4235, allocations: 1.97 MB / 355.6 MB, free: 8.223 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.508e-06/0.4235, allocations: 4.031 kB / 355.6 MB, free: 8.219 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.4246, allocations: 422.2 kB / 356 MB, free: 7.906 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.4249, allocations: 130.1 kB / 356.1 MB, free: 7.773 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.45e-05/0.4249, allocations: 2.938 kB / 356.1 MB, free: 7.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.4252, allocations: 32.11 kB / 356.1 MB, free: 7.746 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.4253, allocations: 37.56 kB / 356.2 MB, free: 7.715 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.4254, allocations: 5.375 kB / 356.2 MB, free: 7.711 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000255/0.4256, allocations: 175.5 kB / 356.3 MB, free: 7.566 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.27e-07/0.4256, allocations: 3.938 kB / 356.4 MB, free: 7.562 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006137/0.4263, allocations: 91.28 kB / 356.4 MB, free: 7.48 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * 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.0001809/0.4265, allocations: 106.8 kB / 356.5 MB, free: 7.371 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008686/0.4273, allocations: 367 kB / 356.9 MB, free: 7.078 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.675e-06/0.4274, allocations: 0 / 356.9 MB, free: 7.078 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000544/0.4279, allocations: 277.7 kB / 357.2 MB, free: 6.844 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.4283, allocations: 46.84 kB / 357.2 MB, free: 6.812 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.4297, allocations: 0.7154 MB / 357.9 MB, free: 6.113 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000507/0.4302, allocations: 0.7755 MB / 358.7 MB, free: 5.312 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.672e-05/0.4303, allocations: 19.81 kB / 358.7 MB, free: 5.293 MB / 282.7 MB Notification: Performance of SimCode: time 1.607e-06/0.4303, allocations: 0 / 358.7 MB, free: 5.293 MB / 282.7 MB Notification: Performance of Templates: time 0.008774/0.4391, allocations: 4.508 MB / 363.2 MB, free: 0.8477 MB / 282.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