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/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.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.586/1.586, allocations: 171.2 MB / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.681e-05/4.709e-05, allocations: 4 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2342, allocations: 38.77 MB / 267.6 MB, free: 9.309 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1048/0.3391, allocations: 70.87 MB / 338.5 MB, free: 2.332 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.3393, allocations: 63.97 kB / 338.5 MB, free: 2.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03508/0.3744, allocations: 8.305 MB / 346.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3745, allocations: 0 / 346.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.279e-05/0.3745, allocations: 8 kB / 346.8 MB, free: 9.914 MB / 298.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.002263/0.3768, allocations: 0.8323 MB / 347.7 MB, free: 9.027 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3768, allocations: 8.031 kB / 347.7 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.377, allocations: 63.33 kB / 347.7 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006681/0.3777, allocations: 367.5 kB / 348.1 MB, free: 8.559 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.441e-05/0.3778, allocations: 36.67 kB / 348.1 MB, free: 8.523 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.3779, allocations: 36 kB / 348.2 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.379, allocations: 453.5 kB / 348.6 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.379, allocations: 3.938 kB / 348.6 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.418e-05/0.3791, allocations: 19.98 kB / 348.6 MB, free: 8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.3792, allocations: 8 kB / 348.6 MB, free: 7.992 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.3802, allocations: 387 kB / 349 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004766/0.385, allocations: 2.03 MB / 351.1 MB, free: 5.484 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00389/0.3889, allocations: 0.722 MB / 351.8 MB, free: 4.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006305/0.3896, allocations: 268.9 kB / 352 MB, free: 4.488 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.406e-05/0.3896, allocations: 8 kB / 352 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007046/0.3904, allocations: 293.5 kB / 352.3 MB, free: 4.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.802e-06/0.3904, allocations: 0 / 352.3 MB, free: 4.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.001767/0.3922, allocations: 0.5568 MB / 352.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.3922, allocations: 85.06 kB / 353 MB, free: 3.512 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005409/0.3928, allocations: 322.9 kB / 353.3 MB, free: 3.191 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.943e-05/0.3929, allocations: 33.7 kB / 353.3 MB, free: 3.152 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/0.3931, allocations: 274.9 kB / 353.6 MB, free: 2.883 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.3933, allocations: 122.2 kB / 353.7 MB, free: 2.762 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.101e-05/0.3934, allocations: 12 kB / 353.7 MB, free: 2.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3936, allocations: 326.8 kB / 354 MB, free: 2.422 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.394, allocations: 164.8 kB / 354.2 MB, free: 2.258 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005479/0.3946, allocations: 206.3 kB / 354.4 MB, free: 2.047 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004875/0.3951, allocations: 183.7 kB / 354.6 MB, free: 1.863 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3951, allocations: 0 / 354.6 MB, free: 1.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001662/0.3968, allocations: 0.5739 MB / 355.2 MB, free: 1.273 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.495e-05/0.3969, allocations: 38.78 kB / 355.2 MB, free: 1.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.3969, allocations: 0 / 355.2 MB, free: 1.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.3981, allocations: 332.6 kB / 355.5 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005834/0.3987, allocations: 91.88 kB / 355.6 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1851/0.5839, allocations: 3.069 MB / 358.7 MB, free: 77.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009266/0.5848, allocations: 104 kB / 358.8 MB, free: 77.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.264e-05/0.5849, allocations: 17.84 kB / 358.8 MB, free: 77.25 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 () * 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.0001583/0.5851, allocations: 128.9 kB / 358.9 MB, free: 77.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.5852, allocations: 45.66 kB / 359 MB, free: 77.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.5853, allocations: 51.41 kB / 359 MB, free: 77.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.157e-06/0.5854, allocations: 3.828 kB / 359 MB, free: 77.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.282e-06/0.5854, allocations: 1.438 kB / 359 MB, free: 77.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.908e-06/0.5854, allocations: 5.234 kB / 359 MB, free: 77.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008256/0.5862, allocations: 0.593 MB / 359.6 MB, free: 76.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.606e-06/0.5863, allocations: 1.344 kB / 359.6 MB, free: 76.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005638/0.5868, allocations: 90.62 kB / 359.7 MB, free: 76.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/0.5879, allocations: 331 kB / 360 MB, free: 76.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.269e-05/0.588, allocations: 9.656 kB / 360 MB, free: 76.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007747/0.5957, allocations: 3.074 MB / 363.1 MB, free: 75.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.829e-06/0.5958, allocations: 0 / 363.1 MB, free: 75.37 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.5978, allocations: 0.8283 MB / 363.9 MB, free: 74.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002418/0.5981, allocations: 175.4 kB / 364.1 MB, free: 74.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.963e-05/0.5982, allocations: 4 kB / 364.1 MB, free: 74.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000709/0.599, allocations: 95.25 kB / 364.2 MB, free: 74.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.5991, allocations: 50.03 kB / 364.3 MB, free: 74.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.827e-05/0.5992, allocations: 12.91 kB / 364.3 MB, free: 74.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003204/0.5995, allocations: 257.6 kB / 364.5 MB, free: 74.65 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.56e-07/0.5995, allocations: 0 / 364.5 MB, free: 74.65 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007616/0.6003, allocations: 175.6 kB / 364.7 MB, free: 74.62 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.0001803/0.6005, allocations: 119.8 kB / 364.8 MB, free: 74.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.6021, allocations: 0.6582 MB / 365.5 MB, free: 74.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.924e-06/0.6021, allocations: 0 / 365.5 MB, free: 74.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.6031, allocations: 433.6 kB / 365.9 MB, free: 73.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.6036, allocations: 72 kB / 366 MB, free: 73.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.6062, allocations: 0.8048 MB / 366.8 MB, free: 73.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.6065, allocations: 0.8405 MB / 367.6 MB, free: 72.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.6067, allocations: 27.25 kB / 367.6 MB, free: 72.82 MB / 298.7 MB Notification: Performance of SimCode: time 1.899e-06/0.6067, allocations: 0 / 367.6 MB, free: 72.82 MB / 298.7 MB Notification: Performance of Templates: time 0.01177/0.6185, allocations: 8.328 MB / 376 MB, free: 67.52 MB / 298.7 MB