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.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.595/1.595, allocations: 171.3 MB / 179.2 MB, free: 8.168 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.945e-05/1.958e-05, allocations: 4 kB / 222.5 MB, free: 8.781 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07004/0.07008, allocations: 38.77 MB / 261.3 MB, free: 1.93 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2803/0.3505, allocations: 70.21 MB / 331.5 MB, free: 2.051 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.3507, allocations: 68.59 kB / 331.6 MB, free: 2.016 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03449/0.3852, allocations: 8.213 MB / 339.8 MB, free: 11.06 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.969e-06/0.3853, allocations: 0 / 339.8 MB, free: 11.06 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.801e-05/0.3853, allocations: 12 kB / 339.8 MB, free: 11.05 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002234/0.3876, allocations: 0.834 MB / 340.6 MB, free: 10.2 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3876, allocations: 12.03 kB / 340.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.3878, allocations: 55.34 kB / 340.7 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006722/0.3885, allocations: 370.2 kB / 341.1 MB, free: 9.781 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.461e-05/0.3886, allocations: 23 kB / 341.1 MB, free: 9.762 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.575e-05/0.3887, allocations: 20 kB / 341.1 MB, free: 9.742 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009547/0.3896, allocations: 363.8 kB / 341.4 MB, free: 9.543 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009512/0.3906, allocations: 411 kB / 341.8 MB, free: 9.238 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3906, allocations: 4 kB / 341.9 MB, free: 9.234 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.88e-05/0.3907, allocations: 0 / 341.9 MB, free: 9.234 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.3907, allocations: 8 kB / 341.9 MB, free: 9.227 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004769/0.3955, allocations: 1.962 MB / 343.8 MB, free: 7.625 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003978/0.3995, allocations: 0.6962 MB / 344.5 MB, free: 7.113 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006531/0.4002, allocations: 249.7 kB / 344.8 MB, free: 6.969 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-05/0.4003, allocations: 4 kB / 344.8 MB, free: 6.965 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006379/0.401, allocations: 284.5 kB / 345 MB, free: 6.754 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 3.717e-06/0.401, allocations: 0 / 345 MB, free: 6.754 MB / 282.7 MB Notification: Performance of matching and sorting (n=39): time 0.001643/0.4026, allocations: 0.5109 MB / 345.6 MB, free: 6.395 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.4027, allocations: 88.48 kB / 345.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004627/0.4032, allocations: 293 kB / 345.9 MB, free: 6.066 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.842e-05/0.4033, allocations: 33.02 kB / 346 MB, free: 6.031 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.4035, allocations: 275.9 kB / 346.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.4037, allocations: 116.3 kB / 346.3 MB, free: 5.711 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.4037, allocations: 4 kB / 346.3 MB, free: 5.707 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.4039, allocations: 327.3 kB / 346.7 MB, free: 5.387 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004051/0.4043, allocations: 155.8 kB / 346.8 MB, free: 5.305 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/0.4048, allocations: 198.9 kB / 347 MB, free: 5.18 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.4052, allocations: 154.2 kB / 347.2 MB, free: 5.094 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.961e-06/0.4052, allocations: 0 / 347.2 MB, free: 5.094 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001497/0.4067, allocations: 0.5064 MB / 347.7 MB, free: 4.754 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.799e-05/0.4068, allocations: 41.31 kB / 347.7 MB, free: 4.711 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.4068, allocations: 0 / 347.7 MB, free: 4.711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.408, allocations: 329.9 kB / 348 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006022/0.4086, allocations: 103.4 kB / 348.1 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008699/0.4173, allocations: 2.994 MB / 351.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008589/0.4182, allocations: 99.59 kB / 351.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.4183, allocations: 16 kB / 351.2 MB, free: 1.508 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE() "voltage between gate and cathode" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002338/0.4186, allocations: 116.9 kB / 351.4 MB, free: 1.387 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.4187, allocations: 43.53 kB / 351.4 MB, free: 1.344 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001676/0.4189, allocations: 52.67 kB / 351.4 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.4189, allocations: 4 kB / 351.5 MB, free: 1.289 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.144e-06/0.4189, allocations: 0 / 351.5 MB, free: 1.289 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.4189, allocations: 7.984 kB / 351.5 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009067/0.4198, allocations: 0.5137 MB / 352 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.258e-06/0.4199, allocations: 0 / 352 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006125/0.4205, allocations: 87.88 kB / 352.1 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.4217, allocations: 332.8 kB / 352.4 MB, free: 324 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.276e-05/0.4217, allocations: 8 kB / 352.4 MB, free: 316 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00883/0.4306, allocations: 2.986 MB / 355.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.15e-06/0.4306, allocations: 3.953 kB / 355.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.4329, allocations: 0.794 MB / 356.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003488/0.4333, allocations: 168.6 kB / 356.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.4334, allocations: 7.984 kB / 356.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007371/0.4342, allocations: 75.92 kB / 356.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.4344, allocations: 47.92 kB / 356.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.532e-05/0.4345, allocations: 12 kB / 356.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003655/0.4349, allocations: 224.6 kB / 356.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.4349, allocations: 3.938 kB / 356.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008321/0.4357, allocations: 163.6 kB / 356.9 MB, free: 11.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002221/0.436, allocations: 111.2 kB / 357 MB, free: 11.56 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.4377, allocations: 0.6257 MB / 357.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.4378, allocations: 8.062 kB / 357.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.4389, allocations: 418.2 kB / 358 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005193/0.4395, allocations: 57.23 kB / 358.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002964/0.4425, allocations: 0.7787 MB / 358.8 MB, free: 9.609 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005892/0.4431, allocations: 0.8395 MB / 359.7 MB, free: 8.742 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.4433, allocations: 27.42 kB / 359.7 MB, free: 8.719 MB / 298.7 MB Notification: Performance of SimCode: time 1.727e-06/0.4433, allocations: 0 / 359.7 MB, free: 8.719 MB / 298.7 MB Notification: Performance of Templates: time 0.01565/0.459, allocations: 8.145 MB / 367.9 MB, free: 0.582 MB / 298.7 MB