Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.711/1.711, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.00036, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07813/0.07852, allocations: 44.51 MB / 308.4 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.323/0.4015, allocations: 75.94 MB / 384.4 MB, free: 18.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.4018, allocations: 72.56 kB / 384.5 MB, free: 18.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03158/0.4334, allocations: 8.265 MB / 392.7 MB, free: 17.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.643e-06/0.4334, allocations: 3.938 kB / 392.7 MB, free: 17.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.374e-05/0.4335, allocations: 15.38 kB / 392.7 MB, free: 17.89 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.002123/0.4356, allocations: 0.9016 MB / 393.6 MB, free: 17.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.4356, allocations: 11.62 kB / 393.7 MB, free: 17.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.4358, allocations: 58.16 kB / 393.7 MB, free: 17.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000516/0.4363, allocations: 375.6 kB / 394.1 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.196e-05/0.4364, allocations: 30.81 kB / 394.1 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-05/0.4365, allocations: 38 kB / 394.1 MB, free: 17.03 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.438, allocations: 0.5883 MB / 394.7 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.438, allocations: 0 / 394.7 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-05/0.4381, allocations: 14.81 kB / 394.7 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.4381, allocations: 15.75 kB / 394.8 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002163/0.4403, allocations: 0.6405 MB / 395.4 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004246/0.4446, allocations: 2.044 MB / 397.4 MB, free: 16.06 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004662/0.4493, allocations: 0.9535 MB / 398.4 MB, free: 16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.2e-05/0.4494, allocations: 7.719 kB / 398.4 MB, free: 16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001336/0.4507, allocations: 432.8 kB / 398.8 MB, free: 15.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 3.972e-06/0.4508, allocations: 4 kB / 398.8 MB, free: 15.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.01167/0.4624, allocations: 1.972 MB / 400.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.4625, allocations: 82.11 kB / 400.9 MB, free: 15.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000462/0.463, allocations: 323.3 kB / 401.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.458e-05/0.4631, allocations: 40.27 kB / 401.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.4633, allocations: 268.4 kB / 401.5 MB, free: 15.26 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.4634, allocations: 131.2 kB / 401.6 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.666e-05/0.4635, allocations: 7.094 kB / 401.6 MB, free: 15.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.979e-05/0.4635, allocations: 329.9 kB / 402 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.4647, allocations: 297.7 kB / 402.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.466, allocations: 351 kB / 402.6 MB, free: 14.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.4672, allocations: 324.7 kB / 402.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.085e-06/0.4672, allocations: 0 / 402.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003238/0.4704, allocations: 0.8863 MB / 403.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.4705, allocations: 37.3 kB / 403.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.457e-06/0.4705, allocations: 4 kB / 403.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001442/0.472, allocations: 416.1 kB / 404.2 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005302/0.4725, allocations: 97.7 kB / 404.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/0.4839, allocations: 3.607 MB / 407.9 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009432/0.4849, allocations: 103.6 kB / 408 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.248e-05/0.485, allocations: 14.55 kB / 408.1 MB, free: 13.1 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.0003243/0.4853, allocations: 172.3 kB / 408.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.846e-05/0.4854, allocations: 42.75 kB / 408.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.4855, allocations: 63.41 kB / 408.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.208e-06/0.4856, allocations: 7.859 kB / 408.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.735e-06/0.4856, allocations: 0 / 408.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.402e-06/0.4856, allocations: 3.141 kB / 408.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007581/0.4864, allocations: 0.5815 MB / 408.9 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.959e-06/0.4864, allocations: 0 / 408.9 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005992/0.487, allocations: 83.19 kB / 409 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.4885, allocations: 429.5 kB / 409.4 MB, free: 12.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-05/0.4886, allocations: 10.23 kB / 409.4 MB, free: 12.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/0.4999, allocations: 3.579 MB / 413 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.278e-06/0.4999, allocations: 0 / 413 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004629/0.5046, allocations: 1.284 MB / 414.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003189/0.5049, allocations: 176.1 kB / 414.5 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.5051, allocations: 11.69 kB / 414.5 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007092/0.5058, allocations: 93.11 kB / 414.6 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.506, allocations: 50.53 kB / 414.6 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.208e-05/0.506, allocations: 15.36 kB / 414.6 MB, free: 10.39 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003517/0.5064, allocations: 258 kB / 414.9 MB, free: 10.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.8e-07/0.5064, allocations: 3.844 kB / 414.9 MB, free: 10.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008062/0.5072, allocations: 161 kB / 415.1 MB, free: 10.26 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.0001904/0.5074, allocations: 126 kB / 415.2 MB, free: 10.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004705/0.5122, allocations: 0.9391 MB / 416.1 MB, free: 9.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.2e-06/0.5122, allocations: 0 / 416.1 MB, free: 9.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003331/0.5156, allocations: 0.5723 MB / 416.7 MB, free: 9.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00097/0.5166, allocations: 70.67 kB / 416.8 MB, free: 9.574 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006168/0.5228, allocations: 1.31 MB / 418.1 MB, free: 8.805 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.5233, allocations: 0.8369 MB / 418.9 MB, free: 8.039 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/0.5236, allocations: 26.91 kB / 418.9 MB, free: 8.031 MB / 314.7 MB Notification: Performance of SimCode: time 2.149e-06/0.5237, allocations: 0 / 418.9 MB, free: 8.031 MB / 314.7 MB Notification: Performance of Templates: time 0.02198/0.5457, allocations: 8.319 MB / 427.2 MB, free: 3.91 MB / 314.7 MB