Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 194.9 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000479/0.000479, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.114, allocations: 44.49 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4296/0.5436, allocations: 75.94 MB / 384.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.5439, allocations: 76.34 kB / 385 MB, free: 14.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03984/0.5838, allocations: 8.262 MB / 393.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.5839, allocations: 0 / 393.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.093e-05/0.5839, allocations: 7.75 kB / 393.3 MB, free: 13.86 MB / 314.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.003508/0.5874, allocations: 0.9084 MB / 394.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.5875, allocations: 11.81 kB / 394.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.5878, allocations: 58.38 kB / 394.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007842/0.5886, allocations: 371 kB / 394.6 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.478e-05/0.5887, allocations: 30.38 kB / 394.6 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.5888, allocations: 37.5 kB / 394.7 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.5911, allocations: 0.5969 MB / 395.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.5912, allocations: 0 / 395.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.304e-05/0.5913, allocations: 13.81 kB / 395.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.5913, allocations: 11.75 kB / 395.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003208/0.5945, allocations: 0.6397 MB / 395.9 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007741/0.6024, allocations: 2.045 MB / 398 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00765/0.6101, allocations: 0.9534 MB / 398.9 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.941e-05/0.6102, allocations: 7.656 kB / 398.9 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001922/0.6121, allocations: 442.8 kB / 399.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 3.577e-06/0.6122, allocations: 0 / 399.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.01657/0.6288, allocations: 1.967 MB / 401.3 MB, free: 11.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/0.6289, allocations: 84.98 kB / 401.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006286/0.6295, allocations: 368.4 kB / 401.8 MB, free: 11.44 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.6297, allocations: 36.2 kB / 401.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.6299, allocations: 272.7 kB / 402.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.63, allocations: 127.3 kB / 402.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.427e-05/0.6301, allocations: 8.688 kB / 402.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.982e-05/0.6302, allocations: 323.9 kB / 402.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001633/0.6318, allocations: 313.3 kB / 402.8 MB, free: 10.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00168/0.6336, allocations: 346.5 kB / 403.2 MB, free: 10.76 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.6352, allocations: 321.7 kB / 403.5 MB, free: 10.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.6352, allocations: 0 / 403.5 MB, free: 10.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004158/0.6394, allocations: 0.891 MB / 404.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.11e-05/0.6395, allocations: 32.83 kB / 404.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.098e-06/0.6395, allocations: 0 / 404.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002061/0.6416, allocations: 424.6 kB / 404.8 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008383/0.6424, allocations: 96.16 kB / 404.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01505/0.6575, allocations: 3.604 MB / 408.5 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.6588, allocations: 105.9 kB / 408.6 MB, free: 8.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.451e-05/0.659, allocations: 19.05 kB / 408.6 MB, free: 8.801 MB / 314.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.0003968/0.6594, allocations: 171 kB / 408.8 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.6596, allocations: 42.78 kB / 408.8 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.6598, allocations: 56.02 kB / 408.9 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.6598, allocations: 7.875 kB / 408.9 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.6598, allocations: 3.984 kB / 408.9 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.6598, allocations: 4 kB / 408.9 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009454/0.6608, allocations: 0.5836 MB / 409.5 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.6608, allocations: 0 / 409.5 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008261/0.6616, allocations: 88.97 kB / 409.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/0.6637, allocations: 416.1 kB / 410 MB, free: 8.172 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/0.6638, allocations: 18.75 kB / 410 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01479/0.6786, allocations: 3.585 MB / 413.6 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.6787, allocations: 3.812 kB / 413.6 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006137/0.6848, allocations: 1.283 MB / 414.9 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003802/0.6853, allocations: 174.9 kB / 415.1 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/0.6854, allocations: 14.02 kB / 415.1 MB, free: 5.867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.6865, allocations: 85.02 kB / 415.2 MB, free: 5.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.6868, allocations: 53.61 kB / 415.2 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.672e-05/0.6868, allocations: 10.88 kB / 415.2 MB, free: 5.816 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003885/0.6872, allocations: 259.8 kB / 415.5 MB, free: 5.703 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6873, allocations: 0 / 415.5 MB, free: 5.703 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000953/0.6882, allocations: 159.3 kB / 415.6 MB, free: 5.695 MB / 314.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.0002403/0.6885, allocations: 125.6 kB / 415.7 MB, free: 5.594 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004345/0.6928, allocations: 0.9417 MB / 416.7 MB, free: 5.254 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.6929, allocations: 0 / 416.7 MB, free: 5.254 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002559/0.6955, allocations: 0.5675 MB / 417.3 MB, free: 5.023 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007455/0.6963, allocations: 80.08 kB / 417.3 MB, free: 4.996 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004918/0.7012, allocations: 1.303 MB / 418.6 MB, free: 4.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.7015, allocations: 0.8401 MB / 419.5 MB, free: 3.461 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.7018, allocations: 30.39 kB / 419.5 MB, free: 3.449 MB / 314.7 MB Notification: Performance of SimCode: time 1.383e-06/0.7019, allocations: 0 / 419.5 MB, free: 3.449 MB / 314.7 MB Notification: Performance of Templates: time 0.01952/0.7214, allocations: 8.471 MB / 428 MB, free: 15.8 MB / 330.7 MB