Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.597/1.597, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003517, allocations: 8 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.09067, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3465/0.4373, allocations: 69.85 MB / 342 MB, free: 3.961 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.4376, allocations: 67.41 kB / 342 MB, free: 3.926 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02381/0.4614, allocations: 4.716 MB / 346.7 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4614, allocations: 0 / 346.7 MB, free: 15.85 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.134e-05/0.4615, allocations: 4 kB / 346.7 MB, free: 15.84 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.002089/0.4636, allocations: 0.6519 MB / 347.4 MB, free: 15.15 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.4637, allocations: 8.031 kB / 347.4 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.4638, allocations: 54.73 kB / 347.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.4639, allocations: 27.62 kB / 347.5 MB, free: 15.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.4644, allocations: 263.3 kB / 347.7 MB, free: 14.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.4644, allocations: 15.31 kB / 347.8 MB, free: 14.78 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.711e-05/0.4645, allocations: 26.11 kB / 347.8 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.4658, allocations: 325.8 kB / 348.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.4658, allocations: 0 / 348.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.607e-05/0.4659, allocations: 11.06 kB / 348.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.4659, allocations: 4 kB / 348.1 MB, free: 14.49 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.4676, allocations: 336 kB / 348.4 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003124/0.4707, allocations: 1.026 MB / 349.5 MB, free: 13.33 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006068/0.4769, allocations: 0.6132 MB / 350.1 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.5e-05/0.477, allocations: 7.5 kB / 350.1 MB, free: 12.78 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001133/0.4781, allocations: 261 kB / 350.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 3.096e-06/0.4781, allocations: 0 / 350.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.002785/0.4809, allocations: 0.5259 MB / 350.9 MB, free: 12.1 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.685e-05/0.481, allocations: 83.53 kB / 351 MB, free: 12 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.4814, allocations: 205.2 kB / 351.2 MB, free: 11.83 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.324e-05/0.4814, allocations: 32.95 kB / 351.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.4816, allocations: 219.2 kB / 351.4 MB, free: 11.6 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.768e-05/0.4817, allocations: 74.56 kB / 351.5 MB, free: 11.54 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.807e-05/0.4818, allocations: 2.625 kB / 351.5 MB, free: 11.54 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.4819, allocations: 323.5 kB / 351.8 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000877/0.4828, allocations: 164.8 kB / 352 MB, free: 11.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008919/0.4837, allocations: 191.8 kB / 352.1 MB, free: 10.93 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009196/0.4846, allocations: 195.8 kB / 352.3 MB, free: 10.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.4846, allocations: 0 / 352.3 MB, free: 10.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001954/0.4866, allocations: 445.1 kB / 352.8 MB, free: 10.4 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.115e-05/0.4867, allocations: 30.33 kB / 352.8 MB, free: 10.37 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4867, allocations: 4 kB / 352.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.4867, allocations: 3.953 kB / 352.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004337/0.4911, allocations: 335.4 kB / 353.1 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008501/0.4996, allocations: 3.278 MB / 356.4 MB, free: 6.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007916/0.5005, allocations: 62.83 kB / 356.5 MB, free: 6.559 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.125e-05/0.5005, allocations: 16 kB / 356.5 MB, free: 6.543 MB / 282.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: 5 ($whenCondition1,$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 (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * 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.0002577/0.5008, allocations: 149.1 kB / 356.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/0.5009, allocations: 31.61 kB / 356.7 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.258e-05/0.501, allocations: 24.19 kB / 356.7 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.501, allocations: 3.984 kB / 356.7 MB, free: 6.359 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.501, allocations: 4 kB / 356.7 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.501, allocations: 0 / 356.7 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005106/0.5015, allocations: 346.8 kB / 357 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.5016, allocations: 3.953 kB / 357 MB, free: 6.027 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004327/0.5059, allocations: 329 kB / 357.4 MB, free: 5.707 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-05/0.5059, allocations: 4 kB / 357.4 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.931e-05/0.506, allocations: 2.75 kB / 357.4 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008404/0.5144, allocations: 3.285 MB / 360.7 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5145, allocations: 0 / 360.7 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002885/0.5174, allocations: 0.5987 MB / 361.2 MB, free: 1.781 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.5176, allocations: 123.6 kB / 361.4 MB, free: 1.652 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.479e-05/0.5177, allocations: 7.5 kB / 361.4 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006517/0.5184, allocations: 51.33 kB / 361.4 MB, free: 1.602 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.5185, allocations: 27.58 kB / 361.5 MB, free: 1.578 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.5186, allocations: 4 kB / 361.5 MB, free: 1.574 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002574/0.5189, allocations: 176.2 kB / 361.6 MB, free: 1.426 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5189, allocations: 0 / 361.6 MB, free: 1.426 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006229/0.5195, allocations: 79.03 kB / 361.7 MB, free: 1.355 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.003251/0.5228, allocations: 1.155 MB / 362.9 MB, free: 300 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005388/0.5282, allocations: 0.6495 MB / 363.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.5283, allocations: 3.938 kB / 363.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004281/0.5326, allocations: 423.9 kB / 363.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.5331, allocations: 34.3 kB / 364 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00634/0.5394, allocations: 2.051 MB / 366 MB, free: 13.47 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.5399, allocations: 0.7637 MB / 366.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002455/0.5402, allocations: 83.03 kB / 366.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5402, allocations: 0 / 366.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.61/3.15, allocations: 6.278 MB / 373.1 MB, free: 6.414 MB / 298.7 MB