Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.746/1.746, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003449, allocations: 8 kB / 233.8 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08642/0.08679, allocations: 38.77 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3663/0.4531, allocations: 70.94 MB / 343.5 MB, free: 3.164 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/0.4535, allocations: 78.59 kB / 343.6 MB, free: 3.125 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0425/0.496, allocations: 8.299 MB / 351.9 MB, free: 11.99 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.4961, allocations: 0 / 351.9 MB, free: 11.99 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.031e-05/0.4961, allocations: 11.98 kB / 351.9 MB, free: 11.98 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.003843/0.5, allocations: 0.9151 MB / 352.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.5001, allocations: 8.031 kB / 352.8 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002681/0.5003, allocations: 55.34 kB / 352.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007847/0.5011, allocations: 377.2 kB / 353.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.385e-05/0.5012, allocations: 25.88 kB / 353.3 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.5013, allocations: 42.25 kB / 353.3 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002577/0.5039, allocations: 0.593 MB / 353.9 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.504, allocations: 4 kB / 353.9 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.931e-05/0.5041, allocations: 10.44 kB / 353.9 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.5041, allocations: 12 kB / 353.9 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003213/0.5073, allocations: 0.6385 MB / 354.6 MB, free: 9.621 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005882/0.5133, allocations: 2.031 MB / 356.6 MB, free: 7.965 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007662/0.521, allocations: 0.9669 MB / 357.5 MB, free: 7.184 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.5211, allocations: 7.984 kB / 357.6 MB, free: 7.176 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001987/0.5231, allocations: 437.9 kB / 358 MB, free: 6.82 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 3.727e-06/0.5232, allocations: 0 / 358 MB, free: 6.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=39): time 0.01694/0.5401, allocations: 1.972 MB / 360 MB, free: 5.078 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.5403, allocations: 89.09 kB / 360 MB, free: 4.973 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007067/0.541, allocations: 374.1 kB / 360.4 MB, free: 4.68 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001311/0.5411, allocations: 33.52 kB / 360.4 MB, free: 4.645 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.5414, allocations: 270 kB / 360.7 MB, free: 4.434 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/0.5416, allocations: 123.4 kB / 360.8 MB, free: 4.328 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.826e-05/0.5416, allocations: 14.38 kB / 360.8 MB, free: 4.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5418, allocations: 328.9 kB / 361.2 MB, free: 3.996 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.5434, allocations: 306.6 kB / 361.5 MB, free: 3.766 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.545, allocations: 355.2 kB / 361.8 MB, free: 3.492 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.5467, allocations: 320.2 kB / 362.1 MB, free: 3.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-06/0.5467, allocations: 0 / 362.1 MB, free: 3.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004372/0.5511, allocations: 0.8832 MB / 363 MB, free: 2.555 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.581e-05/0.5512, allocations: 32.83 kB / 363 MB, free: 2.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.5512, allocations: 0 / 363 MB, free: 2.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/0.5534, allocations: 423.1 kB / 363.4 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008646/0.5543, allocations: 90.94 kB / 363.5 MB, free: 2.102 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/0.5702, allocations: 3.61 MB / 367.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/0.5715, allocations: 103 kB / 367.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.796e-05/0.5716, allocations: 15.98 kB / 367.3 MB, free: 15 MB / 298.7 MB 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 () * Number of clocked 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.0003876/0.572, allocations: 163 kB / 367.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.5721, allocations: 51.42 kB / 367.5 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/0.5723, allocations: 51.56 kB / 367.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.5723, allocations: 4 kB / 367.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.5723, allocations: 3.953 kB / 367.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-06/0.5723, allocations: 7.922 kB / 367.5 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.5733, allocations: 0.5828 MB / 368.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.5734, allocations: 0 / 368.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008118/0.5742, allocations: 83.25 kB / 368.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/0.5762, allocations: 421.2 kB / 368.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.794e-05/0.5764, allocations: 11.3 kB / 368.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01568/0.592, allocations: 3.61 MB / 372.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.5921, allocations: 0 / 372.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006477/0.5986, allocations: 1.282 MB / 373.5 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004426/0.5991, allocations: 183.1 kB / 373.7 MB, free: 9.723 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.5992, allocations: 3.875 kB / 373.7 MB, free: 9.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.6004, allocations: 83.8 kB / 373.8 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.6006, allocations: 51.42 kB / 373.8 MB, free: 9.605 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.588e-05/0.6007, allocations: 12 kB / 373.8 MB, free: 9.594 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004861/0.6012, allocations: 260.8 kB / 374.1 MB, free: 9.398 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6012, allocations: 0 / 374.1 MB, free: 9.398 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009393/0.6022, allocations: 163.1 kB / 374.3 MB, free: 9.254 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) * Number of clocked states: 0 () * 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.0002659/0.6025, allocations: 131.5 kB / 374.4 MB, free: 9.125 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004646/0.6071, allocations: 0.9393 MB / 375.3 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.6072, allocations: 0 / 375.3 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002796/0.61, allocations: 0.5738 MB / 375.9 MB, free: 7.875 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007255/0.6108, allocations: 74.94 kB / 376 MB, free: 7.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005317/0.6161, allocations: 1.297 MB / 377.3 MB, free: 6.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.6166, allocations: 0.8436 MB / 378.1 MB, free: 5.723 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003071/0.617, allocations: 27.44 kB / 378.1 MB, free: 5.699 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.617, allocations: 3.938 kB / 378.1 MB, free: 5.695 MB / 298.7 MB Notification: Performance of Templates: time 0.01967/0.6367, allocations: 8.331 MB / 386.5 MB, free: 13.46 MB / 314.7 MB