Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.948/1.948, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005971/0.0005973, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1072, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4559/0.5632, allocations: 74.87 MB / 383.4 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.5636, allocations: 74.48 kB / 383.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02291/0.5865, allocations: 4.645 MB / 388.1 MB, free: 14.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5866, allocations: 0 / 388.1 MB, free: 14.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.5866, allocations: 7.781 kB / 388.1 MB, free: 14.24 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001976/0.5886, allocations: 0.6417 MB / 388.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.5886, allocations: 7.75 kB / 388.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.5888, allocations: 59.86 kB / 388.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.179e-05/0.5889, allocations: 35.22 kB / 388.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.5893, allocations: 273.9 kB / 389.1 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.825e-05/0.5893, allocations: 14.5 kB / 389.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.769e-05/0.5894, allocations: 18.72 kB / 389.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.5906, allocations: 322.2 kB / 389.5 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.5906, allocations: 4 kB / 389.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.435e-05/0.5907, allocations: 10.47 kB / 389.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.5907, allocations: 3.875 kB / 389.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.5923, allocations: 335.7 kB / 389.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002882/0.5952, allocations: 1.016 MB / 390.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005848/0.6011, allocations: 0.6159 MB / 391.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-05/0.6012, allocations: 7.828 kB / 391.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.6022, allocations: 259.6 kB / 391.7 MB, free: 12.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.585e-06/0.6022, allocations: 0 / 391.7 MB, free: 12.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.00265/0.6049, allocations: 0.5235 MB / 392.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.605, allocations: 80.98 kB / 392.3 MB, free: 12.63 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.6053, allocations: 213.1 kB / 392.5 MB, free: 12.53 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.235e-05/0.6053, allocations: 29.58 kB / 392.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.6055, allocations: 209.7 kB / 392.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.144e-05/0.6056, allocations: 73.83 kB / 392.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-05/0.6056, allocations: 3.25 kB / 392.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.864e-05/0.6057, allocations: 328 kB / 393.2 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008074/0.6065, allocations: 165.2 kB / 393.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000825/0.6073, allocations: 199.5 kB / 393.5 MB, free: 11.92 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008227/0.6082, allocations: 193.8 kB / 393.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.6082, allocations: 0 / 393.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001914/0.6101, allocations: 445.7 kB / 394.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.068e-05/0.6102, allocations: 33.55 kB / 394.2 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.6102, allocations: 0 / 394.2 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.6103, allocations: 0 / 394.2 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004315/0.6146, allocations: 332.3 kB / 394.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007986/0.6226, allocations: 3.27 MB / 397.8 MB, free: 8.988 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008249/0.6235, allocations: 70.44 kB / 397.8 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-05/0.6236, allocations: 13.72 kB / 397.9 MB, free: 8.973 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: 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.0002431/0.6238, allocations: 149.4 kB / 398 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.624e-05/0.6239, allocations: 23.44 kB / 398 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.641e-05/0.624, allocations: 26.3 kB / 398.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.624, allocations: 3.938 kB / 398.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.624, allocations: 0 / 398.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.6241, allocations: 2.719 kB / 398.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004946/0.6246, allocations: 352.5 kB / 398.4 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.6246, allocations: 0 / 398.4 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004282/0.6289, allocations: 333.8 kB / 398.7 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/0.6289, allocations: 3.938 kB / 398.7 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.423e-05/0.629, allocations: 2.812 kB / 398.7 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007571/0.6366, allocations: 3.284 MB / 402 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.6366, allocations: 3.953 kB / 402 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002655/0.6393, allocations: 0.5952 MB / 402.6 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.636e-05/0.6394, allocations: 92.7 kB / 402.7 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.1e-05/0.6395, allocations: 7.125 kB / 402.7 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000637/0.6402, allocations: 55.88 kB / 402.8 MB, free: 5.629 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.6403, allocations: 30.69 kB / 402.8 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-05/0.6404, allocations: 7.438 kB / 402.8 MB, free: 5.625 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002111/0.6406, allocations: 168 kB / 403 MB, free: 5.547 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6406, allocations: 0 / 403 MB, free: 5.547 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006032/0.6412, allocations: 84.69 kB / 403.1 MB, free: 5.535 MB / 314.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.003114/0.6444, allocations: 1.152 MB / 404.2 MB, free: 20.9 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00513/0.6496, allocations: 0.6405 MB / 404.9 MB, free: 20.81 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.6496, allocations: 0 / 404.9 MB, free: 20.81 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004121/0.6537, allocations: 424 kB / 405.3 MB, free: 20.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.6542, allocations: 37.3 kB / 405.3 MB, free: 20.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005773/0.66, allocations: 2.056 MB / 407.4 MB, free: 19.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.6605, allocations: 0.7601 MB / 408.1 MB, free: 19.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.6607, allocations: 81.12 kB / 408.2 MB, free: 19.21 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6607, allocations: 0 / 408.2 MB, free: 19.21 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.648/3.308, allocations: 6.29 MB / 414.5 MB, free: 17.11 MB / 330.7 MB