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.687/1.687, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.000349, allocations: 8 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07013/0.0705, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003497/0.07405, allocations: 2.341 MB / 274.3 MB, free: 9.828 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.0756, allocations: 0.7369 MB / 275 MB, free: 9.09 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.07581, allocations: 4 kB / 275 MB, free: 9.086 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.058e-05/0.07591, allocations: 39.69 kB / 275 MB, free: 9.047 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.07623, allocations: 115.7 kB / 275.2 MB, free: 8.934 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.07653, allocations: 59.92 kB / 275.2 MB, free: 8.875 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004129/0.07696, allocations: 271.4 kB / 275.5 MB, free: 8.609 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.07723, allocations: 97.83 kB / 275.6 MB, free: 8.516 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00023/0.07747, allocations: 123.5 kB / 275.7 MB, free: 8.395 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002291/0.07772, allocations: 135.4 kB / 275.8 MB, free: 8.262 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.749e-05/0.07778, allocations: 20 kB / 275.9 MB, free: 8.242 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.217e-05/0.07785, allocations: 16 kB / 275.9 MB, free: 8.227 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.753e-05/0.07793, allocations: 55.75 kB / 275.9 MB, free: 8.172 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.07804, allocations: 77.58 kB / 276 MB, free: 8.09 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004291/0.07849, allocations: 323.4 kB / 276.3 MB, free: 7.773 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.034e-06/0.0785, allocations: 0 / 276.3 MB, free: 7.773 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.009e-06/0.07852, allocations: 0 / 276.3 MB, free: 7.773 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.093e-06/0.07853, allocations: 0 / 276.3 MB, free: 7.773 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.00114/0.07968, allocations: 0.5715 MB / 276.9 MB, free: 7.156 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.07974, allocations: 12.03 kB / 276.9 MB, free: 7.145 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.603e-05/0.07984, allocations: 35.53 kB / 276.9 MB, free: 7.109 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.08031, allocations: 280.2 kB / 277.2 MB, free: 6.789 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.591e-05/0.08036, allocations: 24.52 kB / 277.2 MB, free: 6.766 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.595e-05/0.08044, allocations: 27.98 kB / 277.3 MB, free: 6.738 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006924/0.08114, allocations: 284.5 kB / 277.5 MB, free: 6.445 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.08117, allocations: 0 / 277.5 MB, free: 6.445 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.362e-05/0.08123, allocations: 15.98 kB / 277.6 MB, free: 6.43 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.08125, allocations: 4 kB / 277.6 MB, free: 6.426 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005901/0.08185, allocations: 206.2 kB / 277.8 MB, free: 6.227 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002369/0.08424, allocations: 1.152 MB / 278.9 MB, free: 4.992 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007397/0.08501, allocations: 227.1 kB / 279.1 MB, free: 4.762 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.08506, allocations: 4.188 kB / 279.1 MB, free: 4.758 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004236/0.08549, allocations: 167.1 kB / 279.3 MB, free: 4.578 MB / 234.7 MB Notification: Performance of pre-optimization done (n=22): time 6.217e-06/0.08552, allocations: 0 / 279.3 MB, free: 4.578 MB / 234.7 MB Notification: Performance of matching and sorting (n=22): time 0.001807/0.08734, allocations: 0.5223 MB / 279.8 MB, free: 4.027 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.928e-05/0.08745, allocations: 110.7 kB / 279.9 MB, free: 3.895 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003694/0.08784, allocations: 248.9 kB / 280.2 MB, free: 3.641 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.161e-05/0.08789, allocations: 29.7 kB / 280.2 MB, free: 3.605 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.08809, allocations: 230.8 kB / 280.4 MB, free: 3.375 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.966e-05/0.0882, allocations: 71 kB / 280.5 MB, free: 3.305 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.08823, allocations: 8 kB / 280.5 MB, free: 3.297 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.08841, allocations: 318.8 kB / 280.8 MB, free: 2.977 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.08867, allocations: 75.97 kB / 280.9 MB, free: 2.902 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003289/0.08902, allocations: 146.2 kB / 281 MB, free: 2.738 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.08929, allocations: 81.16 kB / 281.1 MB, free: 2.66 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.209e-06/0.08931, allocations: 4 kB / 281.1 MB, free: 2.656 MB / 234.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00079/0.09011, allocations: 300.2 kB / 281.4 MB, free: 2.355 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.09014, allocations: 4 kB / 281.4 MB, free: 2.352 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.09017, allocations: 4 kB / 281.4 MB, free: 2.348 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004522/0.09063, allocations: 88.8 kB / 281.5 MB, free: 2.258 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.09087, allocations: 31.92 kB / 281.5 MB, free: 2.227 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003216/0.0941, allocations: 1.963 MB / 283.5 MB, free: 136 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003108/0.09446, allocations: 39.7 kB / 283.5 MB, free: 96 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.0945, allocations: 12 kB / 283.5 MB, free: 84 kB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 20 * 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.0002768/0.09479, allocations: 149.9 kB / 283.7 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.986e-05/0.09486, allocations: 27.67 kB / 283.7 MB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.614e-05/0.09495, allocations: 34.12 kB / 283.8 MB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.715e-06/0.09497, allocations: 0 / 283.8 MB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.872e-06/0.09498, allocations: 0 / 283.8 MB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.479e-06/0.095, allocations: 3.984 kB / 283.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005097/0.09552, allocations: 357.3 kB / 284.1 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.505e-06/0.09554, allocations: 0 / 284.1 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001767/0.09572, allocations: 23.98 kB / 284.1 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003849/0.09612, allocations: 100.7 kB / 284.2 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.09617, allocations: 4 kB / 284.2 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003135/0.09931, allocations: 1.953 MB / 286.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.792e-06/0.09935, allocations: 3.938 kB / 286.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.1005, allocations: 408.5 kB / 286.6 MB, free: 12.83 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.1007, allocations: 124.9 kB / 286.7 MB, free: 12.69 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.58e-05/0.1008, allocations: 11.92 kB / 286.7 MB, free: 12.68 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.101, allocations: 32 kB / 286.8 MB, free: 12.64 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.1012, allocations: 27.95 kB / 286.8 MB, free: 12.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.1012, allocations: 11.98 kB / 286.8 MB, free: 12.61 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002861/0.1015, allocations: 172.5 kB / 287 MB, free: 12.44 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.96e-07/0.1015, allocations: 0 / 287 MB, free: 12.44 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005886/0.1021, allocations: 91.84 kB / 287.1 MB, free: 12.35 MB / 250.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.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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.0001648/0.1023, allocations: 107.2 kB / 287.2 MB, free: 12.23 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00095/0.1033, allocations: 374.4 kB / 287.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1033, allocations: 0 / 287.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005483/0.1039, allocations: 266.8 kB / 287.8 MB, free: 11.58 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.1043, allocations: 56.27 kB / 287.8 MB, free: 11.53 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.1057, allocations: 0.7196 MB / 288.6 MB, free: 10.77 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004939/0.1062, allocations: 0.7719 MB / 289.3 MB, free: 9.977 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.166e-05/0.1063, allocations: 19.44 kB / 289.3 MB, free: 9.957 MB / 250.7 MB Notification: Performance of SimCode: time 1.598e-06/0.1063, allocations: 0 / 289.3 MB, free: 9.957 MB / 250.7 MB Notification: Performance of Templates: time 0.00887/0.1152, allocations: 4.491 MB / 293.8 MB, free: 5.48 MB / 250.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