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.646/1.646, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003554, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0699/0.07029, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.314/0.3843, allocations: 70.95 MB / 343 MB, free: 2.926 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.3846, allocations: 72.02 kB / 343 MB, free: 2.887 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03553/0.4202, allocations: 8.304 MB / 351.3 MB, free: 11.74 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.839e-06/0.4202, allocations: 384 / 351.3 MB, free: 11.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.487e-05/0.4203, allocations: 12 kB / 351.4 MB, free: 11.73 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.002513/0.4228, allocations: 0.9078 MB / 352.3 MB, free: 10.8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.4228, allocations: 11.97 kB / 352.3 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.423, allocations: 55.34 kB / 352.3 MB, free: 10.73 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006861/0.4237, allocations: 379.9 kB / 352.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/0.4238, allocations: 27.81 kB / 352.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.4239, allocations: 34.12 kB / 352.8 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001802/0.4258, allocations: 0.5882 MB / 353.3 MB, free: 9.883 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.4258, allocations: 7.875 kB / 353.4 MB, free: 9.875 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.962e-05/0.4259, allocations: 18.69 kB / 353.4 MB, free: 9.867 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.4259, allocations: 8 kB / 353.4 MB, free: 9.859 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00232/0.4282, allocations: 0.64 MB / 354 MB, free: 9.375 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004878/0.4332, allocations: 2.037 MB / 356.1 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00517/0.4384, allocations: 0.9634 MB / 357 MB, free: 6.938 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.068e-05/0.4385, allocations: 11.97 kB / 357 MB, free: 6.926 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001497/0.44, allocations: 429.3 kB / 357.4 MB, free: 6.578 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 3.995e-06/0.44, allocations: 0 / 357.4 MB, free: 6.578 MB / 282.7 MB Notification: Performance of matching and sorting (n=39): time 0.01104/0.4511, allocations: 1.979 MB / 359.4 MB, free: 4.828 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/0.4512, allocations: 86.36 kB / 359.5 MB, free: 4.727 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006027/0.4518, allocations: 330.7 kB / 359.8 MB, free: 4.461 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.751e-05/0.4519, allocations: 32.14 kB / 359.9 MB, free: 4.43 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002239/0.4522, allocations: 269.6 kB / 360.1 MB, free: 4.215 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.4524, allocations: 131.5 kB / 360.3 MB, free: 4.102 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.4524, allocations: 7.438 kB / 360.3 MB, free: 4.102 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.4526, allocations: 322.3 kB / 360.6 MB, free: 3.781 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.4538, allocations: 311.1 kB / 360.9 MB, free: 3.551 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.455, allocations: 348.6 kB / 361.2 MB, free: 3.281 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.4561, allocations: 322.9 kB / 361.5 MB, free: 3.039 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.305e-06/0.4561, allocations: 0 / 361.5 MB, free: 3.039 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003337/0.4595, allocations: 0.89 MB / 362.4 MB, free: 2.336 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.157e-05/0.4596, allocations: 29.7 kB / 362.5 MB, free: 2.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.4596, allocations: 0 / 362.5 MB, free: 2.301 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001628/0.4613, allocations: 421.6 kB / 362.9 MB, free: 1.973 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006139/0.4619, allocations: 95.86 kB / 363 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/0.4735, allocations: 3.599 MB / 366.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009065/0.4745, allocations: 107.2 kB / 366.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.27e-05/0.4746, allocations: 11.5 kB / 366.7 MB, free: 14.78 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.0003823/0.475, allocations: 168.5 kB / 366.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.4751, allocations: 47.44 kB / 366.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000146/0.4753, allocations: 54.55 kB / 366.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.4753, allocations: 4 kB / 366.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.505e-06/0.4753, allocations: 0 / 366.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.4753, allocations: 3.953 kB / 367 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009492/0.4763, allocations: 0.5804 MB / 367.5 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.873e-06/0.4763, allocations: 3.938 kB / 367.5 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005916/0.4769, allocations: 79.94 kB / 367.6 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001552/0.4785, allocations: 438.3 kB / 368 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.698e-05/0.4786, allocations: 7.859 kB / 368.1 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01133/0.4899, allocations: 3.602 MB / 371.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.298e-05/0.49, allocations: 0 / 371.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004648/0.4946, allocations: 1.277 MB / 372.9 MB, free: 9.664 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.4951, allocations: 176.1 kB / 373.1 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.4952, allocations: 11.33 kB / 373.1 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007528/0.496, allocations: 83.8 kB / 373.2 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.4962, allocations: 53.86 kB / 373.2 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.274e-05/0.4962, allocations: 11.88 kB / 373.3 MB, free: 9.371 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004342/0.4967, allocations: 261 kB / 373.5 MB, free: 9.176 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.44e-07/0.4967, allocations: 0 / 373.5 MB, free: 9.176 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000862/0.4976, allocations: 165.6 kB / 373.7 MB, free: 9.027 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.000243/0.4978, allocations: 122.8 kB / 373.8 MB, free: 8.902 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003287/0.5011, allocations: 0.9391 MB / 374.7 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.187e-06/0.5012, allocations: 0 / 374.7 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/0.5032, allocations: 0.5766 MB / 375.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005802/0.5038, allocations: 68.3 kB / 375.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004053/0.5079, allocations: 1.314 MB / 376.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006192/0.5085, allocations: 0.8397 MB / 377.5 MB, free: 5.504 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002017/0.5088, allocations: 26.94 kB / 377.6 MB, free: 5.484 MB / 298.7 MB Notification: Performance of SimCode: time 1.879e-06/0.5088, allocations: 0 / 377.6 MB, free: 5.484 MB / 298.7 MB Notification: Performance of Templates: time 0.01645/0.5252, allocations: 8.331 MB / 385.9 MB, free: 13.25 MB / 314.7 MB