Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 0.9752/0.9752, allocations: 111.2 MB / 124.2 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.131e-05/2.15e-05, allocations: 3.984 kB / 154.3 MB, free: 13.19 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1381, allocations: 25.15 MB / 179.4 MB, free: 0.793 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05713/0.1953, allocations: 36.53 MB / 216 MB, free: 12.58 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/0.1955, allocations: 67.97 kB / 216 MB, free: 12.52 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01801/0.2136, allocations: 4.194 MB / 220.2 MB, free: 8.312 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.358e-06/0.2136, allocations: 3.938 kB / 220.2 MB, free: 8.309 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.2136, allocations: 16 kB / 220.2 MB, free: 8.293 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001232/0.2149, allocations: 0.5458 MB / 220.8 MB, free: 7.695 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.2149, allocations: 11.97 kB / 220.8 MB, free: 7.684 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.103e-05/0.215, allocations: 31.62 kB / 220.8 MB, free: 7.652 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.2154, allocations: 244.4 kB / 221.1 MB, free: 7.375 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.2155, allocations: 12.38 kB / 221.1 MB, free: 7.363 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/0.2155, allocations: 20 kB / 221.1 MB, free: 7.344 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004886/0.216, allocations: 184.6 kB / 221.3 MB, free: 7.16 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.2161, allocations: 4 kB / 221.3 MB, free: 7.156 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.375e-05/0.2161, allocations: 15.95 kB / 221.3 MB, free: 7.141 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.508e-06/0.2161, allocations: 4 kB / 221.3 MB, free: 7.137 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004479/0.2166, allocations: 155.5 kB / 221.5 MB, free: 6.984 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002248/0.2189, allocations: 0.8688 MB / 222.3 MB, free: 6.055 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00335/0.2222, allocations: 490.3 kB / 222.8 MB, free: 5.566 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/0.2227, allocations: 136.8 kB / 222.9 MB, free: 5.43 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.2227, allocations: 0 / 222.9 MB, free: 5.43 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003767/0.2231, allocations: 157.9 kB / 223.1 MB, free: 5.254 MB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 2.642e-06/0.2231, allocations: 3.938 kB / 223.1 MB, free: 5.25 MB / 186.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005834/0.2237, allocations: 186.7 kB / 223.3 MB, free: 5.062 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.792e-05/0.2238, allocations: 110.8 kB / 223.4 MB, free: 4.93 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/0.2242, allocations: 200.9 kB / 223.6 MB, free: 4.727 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.464e-05/0.2242, allocations: 29.7 kB / 223.6 MB, free: 4.691 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.2244, allocations: 210.6 kB / 223.8 MB, free: 4.48 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.055e-05/0.2245, allocations: 67.03 kB / 223.9 MB, free: 4.414 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.09e-05/0.2245, allocations: 7.938 kB / 223.9 MB, free: 4.406 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.2247, allocations: 318.8 kB / 224.2 MB, free: 4.086 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.2249, allocations: 60.17 kB / 224.3 MB, free: 4.023 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.2252, allocations: 96.67 kB / 224.3 MB, free: 3.914 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.2254, allocations: 67.19 kB / 224.4 MB, free: 3.852 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.636e-06/0.2254, allocations: 4 kB / 224.4 MB, free: 3.848 MB / 186.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005912/0.226, allocations: 209.2 kB / 224.6 MB, free: 3.641 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.226, allocations: 4 kB / 224.6 MB, free: 3.637 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.16e-06/0.226, allocations: 3.938 kB / 224.6 MB, free: 3.633 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.2261, allocations: 7.953 kB / 224.6 MB, free: 3.625 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002654/0.2287, allocations: 331.8 kB / 225 MB, free: 3.301 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005451/0.2342, allocations: 3.048 MB / 228 MB, free: 15.99 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004771/0.2347, allocations: 63.73 kB / 228.1 MB, free: 15.93 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.35e-05/0.2348, allocations: 8 kB / 228.1 MB, free: 15.92 MB / 202.7 MB Warning: Assuming fixed start value for the following 3 variables: inductor.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real thyristor_v4_1.vControl:VARIABLE(start = 0.0 ) type: Real pulseCurrent.signalSource.T0:DISCRETE(start = pulseCurrent.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.pulseCurrent.signalSource.T0,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002113/0.235, allocations: 129.4 kB / 228.2 MB, free: 15.79 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.016e-05/0.2351, allocations: 19.77 kB / 228.2 MB, free: 15.77 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.122e-05/0.2352, allocations: 29.97 kB / 228.3 MB, free: 15.73 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.568e-06/0.2352, allocations: 0 / 228.3 MB, free: 15.73 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.505e-06/0.2352, allocations: 0 / 228.3 MB, free: 15.73 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.2352, allocations: 7.984 kB / 228.3 MB, free: 15.73 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.2368, allocations: 0.7383 MB / 229 MB, free: 14.93 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.756e-06/0.2369, allocations: 4.062 kB / 229 MB, free: 14.92 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/0.2395, allocations: 319.6 kB / 229.3 MB, free: 14.61 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.09e-05/0.2395, allocations: 4 kB / 229.3 MB, free: 14.61 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.2396, allocations: 7.984 kB / 229.3 MB, free: 14.6 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005355/0.245, allocations: 3.052 MB / 232.4 MB, free: 11.28 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.232e-06/0.245, allocations: 32 / 232.4 MB, free: 11.28 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008829/0.2459, allocations: 414.9 kB / 232.8 MB, free: 10.84 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.2461, allocations: 124.8 kB / 232.9 MB, free: 10.7 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.255e-05/0.2462, allocations: 4 kB / 232.9 MB, free: 10.7 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004402/0.2466, allocations: 52.02 kB / 233 MB, free: 10.64 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.972e-05/0.2467, allocations: 23.91 kB / 233 MB, free: 10.62 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.2468, allocations: 7.938 kB / 233 MB, free: 10.61 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002183/0.247, allocations: 161.4 kB / 233.2 MB, free: 10.46 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.02e-07/0.247, allocations: 0 / 233.2 MB, free: 10.46 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006354/0.2477, allocations: 79.78 kB / 233.2 MB, free: 10.38 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 2 ($whenCondition1,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001945/0.2479, allocations: 115.2 kB / 233.3 MB, free: 10.26 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.00257/0.2505, allocations: 395.7 kB / 233.7 MB, free: 9.875 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.586e-06/0.2505, allocations: 4.188 kB / 233.7 MB, free: 9.871 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.2528, allocations: 319.8 kB / 234 MB, free: 9.559 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004646/0.2533, allocations: 44.61 kB / 234.1 MB, free: 9.512 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.2549, allocations: 440.9 kB / 234.5 MB, free: 9.047 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.2554, allocations: 0.756 MB / 235.3 MB, free: 8.266 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.2555, allocations: 19.44 kB / 235.3 MB, free: 8.246 MB / 202.7 MB Notification: Performance of SimCode: time 1.75e-06/0.2555, allocations: 0 / 235.3 MB, free: 8.246 MB / 202.7 MB Notification: Performance of Templates: time 0.008752/0.2643, allocations: 4.719 MB / 240 MB, free: 3.531 MB / 202.7 MB