Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 2.126/2.126, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004321/0.0004323, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1013, allocations: 44.5 MB / 309 MB, free: 372 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5066/0.608, allocations: 75.93 MB / 385 MB, free: 15.44 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/0.6083, allocations: 77.38 kB / 385.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03715/0.6455, allocations: 8.279 MB / 393.3 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6455, allocations: 384 / 393.3 MB, free: 14.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.402e-05/0.6456, allocations: 7.656 kB / 393.3 MB, free: 14.51 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.003056/0.6486, allocations: 0.9074 MB / 394.3 MB, free: 13.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.6487, allocations: 15.28 kB / 394.3 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.6489, allocations: 54.16 kB / 394.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006095/0.6495, allocations: 371.9 kB / 394.7 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.617e-05/0.6495, allocations: 32.89 kB / 394.7 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.6497, allocations: 37.91 kB / 394.8 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/0.6518, allocations: 0.5877 MB / 395.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.6518, allocations: 7.938 kB / 395.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-05/0.6519, allocations: 17.09 kB / 395.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.652, allocations: 7.562 kB / 395.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002925/0.6549, allocations: 0.6362 MB / 396 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005485/0.6604, allocations: 2.053 MB / 398.1 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007413/0.6679, allocations: 0.9525 MB / 399 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.748e-05/0.668, allocations: 11.45 kB / 399 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001806/0.6698, allocations: 431 kB / 399.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 2.986e-06/0.6699, allocations: 0 / 399.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.01622/0.6861, allocations: 1.976 MB / 401.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.6862, allocations: 80.98 kB / 401.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005378/0.6867, allocations: 366.2 kB / 401.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.02e-05/0.6868, allocations: 40.89 kB / 401.9 MB, free: 12.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.687, allocations: 226.8 kB / 402.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.6872, allocations: 127.9 kB / 402.2 MB, free: 11.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.417e-05/0.6873, allocations: 10.97 kB / 402.3 MB, free: 11.85 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.585e-05/0.6874, allocations: 348.5 kB / 402.6 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/0.6888, allocations: 306.5 kB / 402.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.6903, allocations: 344.7 kB / 403.2 MB, free: 11.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.6917, allocations: 323.5 kB / 403.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.6918, allocations: 3.906 kB / 403.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00401/0.6958, allocations: 0.9164 MB / 404.5 MB, free: 11.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/0.6959, allocations: 29.64 kB / 404.5 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.6959, allocations: 7.828 kB / 404.5 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001946/0.6978, allocations: 414.2 kB / 404.9 MB, free: 11.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007703/0.6986, allocations: 97.55 kB / 405 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01439/0.713, allocations: 3.604 MB / 408.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.7143, allocations: 101.1 kB / 408.7 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.185e-05/0.7144, allocations: 15.16 kB / 408.7 MB, free: 9.195 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.0003516/0.7147, allocations: 180.7 kB / 408.9 MB, free: 9.062 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.7148, allocations: 45.72 kB / 408.9 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.715, allocations: 58.72 kB / 409 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.715, allocations: 3.938 kB / 409 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.715, allocations: 0 / 409 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.715, allocations: 0 / 409 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008116/0.7159, allocations: 0.5823 MB / 409.6 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.7159, allocations: 0 / 409.6 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00075/0.7166, allocations: 85.92 kB / 409.7 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001834/0.7185, allocations: 423.8 kB / 410.1 MB, free: 8.559 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.119e-05/0.7186, allocations: 17.66 kB / 410.1 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/0.7327, allocations: 3.588 MB / 413.7 MB, free: 6.723 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.7327, allocations: 0 / 413.7 MB, free: 6.723 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005669/0.7384, allocations: 1.282 MB / 415 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003123/0.7387, allocations: 176.3 kB / 415.1 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.7389, allocations: 3.938 kB / 415.1 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.74, allocations: 89.61 kB / 415.2 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.7402, allocations: 54.27 kB / 415.3 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.877e-05/0.7402, allocations: 7.719 kB / 415.3 MB, free: 6.215 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003644/0.7406, allocations: 258.2 kB / 415.5 MB, free: 6.102 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-07/0.7406, allocations: 4 kB / 415.6 MB, free: 6.098 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008241/0.7414, allocations: 165.6 kB / 415.7 MB, free: 6.086 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.0002374/0.7417, allocations: 129.1 kB / 415.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003998/0.7457, allocations: 0.9353 MB / 416.8 MB, free: 5.645 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.7457, allocations: 0 / 416.8 MB, free: 5.645 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002366/0.7481, allocations: 0.574 MB / 417.3 MB, free: 5.414 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006192/0.7487, allocations: 59.58 kB / 417.4 MB, free: 5.402 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004556/0.7533, allocations: 1.286 MB / 418.7 MB, free: 4.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.7537, allocations: 0.8365 MB / 419.5 MB, free: 3.891 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004206/0.7541, allocations: 38.75 kB / 419.6 MB, free: 3.871 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.7543, allocations: 26.25 kB / 419.6 MB, free: 3.863 MB / 314.7 MB Notification: Performance of SimCode: time 1.323e-06/0.7543, allocations: 4 kB / 419.6 MB, free: 3.859 MB / 314.7 MB Notification: Performance of Templates: time 0.02545/0.7797, allocations: 10.52 MB / 430.1 MB, free: 14.51 MB / 330.7 MB