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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.648/1.648, allocations: 171.3 MB / 179.2 MB, free: 7.566 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.374e-05/1.386e-05, allocations: 0 / 222.5 MB, free: 8.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06753/0.06757, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2832/0.3508, allocations: 68.07 MB / 329.3 MB, free: 4.148 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.3511, allocations: 69.41 kB / 329.4 MB, free: 4.113 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.019/0.3701, allocations: 4.794 MB / 334.2 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.3702, allocations: 7.938 kB / 334.2 MB, free: 112 kB / 266.7 MB Notification: Performance of Transformations before backend: time 2.358e-05/0.3702, allocations: 4 kB / 334.2 MB, free: 108 kB / 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.001086/0.3713, allocations: 0.539 MB / 334.8 MB, free: 15.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3714, allocations: 12.03 kB / 334.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.3715, allocations: 31.62 kB / 334.8 MB, free: 15.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.372, allocations: 268.1 kB / 335.1 MB, free: 15.22 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.372, allocations: 16 kB / 335.1 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.988e-05/0.3721, allocations: 15.95 kB / 335.1 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004797/0.3726, allocations: 172.7 kB / 335.3 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.3732, allocations: 233.9 kB / 335.5 MB, free: 14.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.3732, allocations: 7.938 kB / 335.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.848e-05/0.3732, allocations: 4 kB / 335.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.3733, allocations: 10.61 kB / 335.5 MB, free: 14.89 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00231/0.3756, allocations: 1.096 MB / 336.6 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005743/0.3762, allocations: 186 kB / 336.8 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000342/0.3766, allocations: 135.5 kB / 336.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.3766, allocations: 4.188 kB / 336.9 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003188/0.3769, allocations: 155.6 kB / 337.1 MB, free: 13.58 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 3.87e-06/0.377, allocations: 0 / 337.1 MB, free: 13.58 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.000732/0.3777, allocations: 248.8 kB / 337.3 MB, free: 13.39 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.975e-05/0.3778, allocations: 132.5 kB / 337.5 MB, free: 13.23 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002942/0.3781, allocations: 188.8 kB / 337.6 MB, free: 13.07 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.488e-05/0.3782, allocations: 33.2 kB / 337.7 MB, free: 13.04 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.3784, allocations: 223.5 kB / 337.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.748e-05/0.3785, allocations: 69.19 kB / 338 MB, free: 12.78 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/0.3785, allocations: 7.969 kB / 338 MB, free: 12.77 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.3787, allocations: 322.3 kB / 338.3 MB, free: 12.45 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.3789, allocations: 59.56 kB / 338.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.3791, allocations: 115.1 kB / 338.5 MB, free: 12.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.3793, allocations: 68.14 kB / 338.5 MB, free: 12.28 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.419e-06/0.3793, allocations: 0 / 338.5 MB, free: 12.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000594/0.3799, allocations: 240.4 kB / 338.8 MB, free: 12.1 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.3799, allocations: 4 kB / 338.8 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.38, allocations: 0 / 338.8 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004716/0.3804, allocations: 93.17 kB / 338.8 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/0.3807, allocations: 39.27 kB / 338.9 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002986/0.3837, allocations: 1.921 MB / 340.8 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000328/0.384, allocations: 27.89 kB / 340.8 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.3841, allocations: 8 kB / 340.8 MB, free: 10.21 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: idealTriac.idealThyristor.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real idealTriac.idealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real 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.0002011/0.3843, allocations: 118.9 kB / 341 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.347e-05/0.3844, allocations: 27.67 kB / 341 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.656e-05/0.3845, allocations: 35.95 kB / 341 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.206e-06/0.3845, allocations: 0 / 341 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.001e-06/0.3845, allocations: 0 / 341 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.3845, allocations: 11.98 kB / 341 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.3859, allocations: 0.7208 MB / 341.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.3859, allocations: 0 / 341.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.3861, allocations: 23.92 kB / 341.8 MB, free: 9.398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003908/0.3865, allocations: 88.02 kB / 341.9 MB, free: 9.332 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.3866, allocations: 0 / 341.9 MB, free: 9.332 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00289/0.3895, allocations: 1.864 MB / 343.7 MB, free: 7.629 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.955e-06/0.3895, allocations: 0 / 343.7 MB, free: 7.629 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008215/0.3903, allocations: 438.3 kB / 344.2 MB, free: 7.281 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.3906, allocations: 115.3 kB / 344.3 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.412e-05/0.3906, allocations: 4 kB / 344.3 MB, free: 7.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/0.3909, allocations: 15.98 kB / 344.3 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.3911, allocations: 42.94 kB / 344.3 MB, free: 7.105 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.3911, allocations: 4 kB / 344.3 MB, free: 7.102 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002136/0.3913, allocations: 157.6 kB / 344.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.3914, allocations: 0 / 344.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000698/0.3921, allocations: 87.7 kB / 344.6 MB, free: 6.887 MB / 282.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.0001944/0.3923, allocations: 111.2 kB / 344.7 MB, free: 6.77 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007955/0.3931, allocations: 325.4 kB / 345 MB, free: 6.516 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3931, allocations: 0 / 345 MB, free: 6.516 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004756/0.3936, allocations: 235.7 kB / 345.2 MB, free: 6.316 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004527/0.3941, allocations: 51.75 kB / 345.3 MB, free: 6.277 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.3952, allocations: 409.8 kB / 345.7 MB, free: 5.883 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005098/0.3957, allocations: 0.7717 MB / 346.4 MB, free: 5.082 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.825e-05/0.3958, allocations: 19.44 kB / 346.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of SimCode: time 1.694e-06/0.3958, allocations: 0 / 346.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of Templates: time 0.009105/0.4049, allocations: 4.332 MB / 350.8 MB, free: 0.7773 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! " 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.useHeatPort,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,_D_whenCondition1,booleanPulse.Twidth,booleanPulse.period,booleanPulse.pulsStart,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.s,idealTriac.idealThyristor.useHeatPort,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.s,idealTriac.idealThyristor1.useHeatPort,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.useHeatPort,idealTriac.resistor.v,time