Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.938/0.938, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002608/0.0002609, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05065/0.05094, allocations: 25.17 MB / 183.6 MB, free: 5.879 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.206/0.257, allocations: 36.61 MB / 220.2 MB, free: 5.629 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.2573, allocations: 67.09 kB / 220.3 MB, free: 5.621 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01888/0.2762, allocations: 4.212 MB / 224.5 MB, free: 3.938 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2762, allocations: 0 / 224.5 MB, free: 3.938 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.2763, allocations: 3.844 kB / 224.5 MB, free: 3.938 MB / 170.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.001606/0.2779, allocations: 0.5813 MB / 225.1 MB, free: 3.445 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.2779, allocations: 15.11 kB / 225.1 MB, free: 3.441 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.991e-05/0.278, allocations: 51.7 kB / 225.1 MB, free: 3.398 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.673e-05/0.2781, allocations: 26.38 kB / 225.2 MB, free: 3.387 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.2784, allocations: 245.1 kB / 225.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.2785, allocations: 17.72 kB / 225.4 MB, free: 3.152 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.079e-05/0.2785, allocations: 24.23 kB / 225.4 MB, free: 3.148 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009854/0.2795, allocations: 273.8 kB / 225.7 MB, free: 3.051 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.2796, allocations: 3.953 kB / 225.7 MB, free: 3.047 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.2796, allocations: 10.59 kB / 225.7 MB, free: 3.047 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.2796, allocations: 3.844 kB / 225.7 MB, free: 3.047 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.281, allocations: 292.4 kB / 226 MB, free: 2.988 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002372/0.2834, allocations: 0.8676 MB / 226.9 MB, free: 2.465 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005971/0.2894, allocations: 0.619 MB / 227.5 MB, free: 2.281 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.152e-05/0.2895, allocations: 3.906 kB / 227.5 MB, free: 2.281 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008784/0.2904, allocations: 229.9 kB / 227.7 MB, free: 2.164 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 2.444e-06/0.2904, allocations: 0 / 227.7 MB, free: 2.164 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.002389/0.2928, allocations: 480.8 kB / 228.2 MB, free: 2.031 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.2928, allocations: 84.28 kB / 228.3 MB, free: 1.934 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003075/0.2932, allocations: 203.9 kB / 228.5 MB, free: 1.816 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.2932, allocations: 30.08 kB / 228.5 MB, free: 1.785 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.909e-05/0.2933, allocations: 216.8 kB / 228.7 MB, free: 1.598 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.843e-05/0.2934, allocations: 52.77 kB / 228.8 MB, free: 1.559 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-05/0.2934, allocations: 4.469 kB / 228.8 MB, free: 1.559 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.808e-05/0.2935, allocations: 320.3 kB / 229.1 MB, free: 1.242 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000698/0.2942, allocations: 141.7 kB / 229.2 MB, free: 1.156 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007176/0.2949, allocations: 169.2 kB / 229.4 MB, free: 1.008 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007095/0.2957, allocations: 152.9 kB / 229.5 MB, free: 0.8906 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2957, allocations: 0 / 229.5 MB, free: 0.8906 MB / 170.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001539/0.2972, allocations: 356.7 kB / 229.9 MB, free: 0.6016 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.2973, allocations: 8 kB / 229.9 MB, free: 0.5938 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.2973, allocations: 4 kB / 229.9 MB, free: 0.5898 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.2973, allocations: 3.953 kB / 229.9 MB, free: 0.5859 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004119/0.3014, allocations: 335.6 kB / 230.2 MB, free: 264 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008449/0.3099, allocations: 3.279 MB / 233.5 MB, free: 12.84 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006655/0.3106, allocations: 56.75 kB / 233.6 MB, free: 12.79 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/0.3107, allocations: 11.97 kB / 233.6 MB, free: 12.78 MB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: inductor.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real thyristor_v4_1.vControl:VARIABLE(start = 0.0 fixed = true ) type: Real pulseCurrent.signalSource.T0:DISCRETE(start = pulseCurrent.signalSource.startTime unit = "s" fixed = true protected = true ) "Start time of current period" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.pulseCurrent.signalSource.T0,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Number of clocked 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.0003178/0.311, allocations: 142.3 kB / 233.7 MB, free: 12.65 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.902e-05/0.3111, allocations: 31.67 kB / 233.7 MB, free: 12.62 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.877e-05/0.3112, allocations: 25.98 kB / 233.8 MB, free: 12.6 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.3112, allocations: 0 / 233.8 MB, free: 12.6 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3112, allocations: 3.938 kB / 233.8 MB, free: 12.6 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3112, allocations: 4 kB / 233.8 MB, free: 12.59 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004903/0.3117, allocations: 332.2 kB / 234.1 MB, free: 12.28 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3117, allocations: 4 kB / 234.1 MB, free: 12.28 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004242/0.316, allocations: 323.3 kB / 234.4 MB, free: 11.96 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/0.316, allocations: 7.984 kB / 234.4 MB, free: 11.96 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.898e-05/0.3161, allocations: 0 / 234.4 MB, free: 11.96 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008439/0.3245, allocations: 3.282 MB / 237.7 MB, free: 8.535 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.3245, allocations: 3.984 kB / 237.7 MB, free: 8.531 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.3271, allocations: 0.5425 MB / 238.3 MB, free: 8.074 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/0.3273, allocations: 115.5 kB / 238.4 MB, free: 7.953 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.251e-05/0.3273, allocations: 7.188 kB / 238.4 MB, free: 7.949 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000552/0.3279, allocations: 44.02 kB / 238.4 MB, free: 7.906 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.328, allocations: 19.22 kB / 238.4 MB, free: 7.891 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.328, allocations: 4 kB / 238.4 MB, free: 7.887 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002243/0.3283, allocations: 166.8 kB / 238.6 MB, free: 7.754 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3283, allocations: 0 / 238.6 MB, free: 7.754 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006031/0.3289, allocations: 77.78 kB / 238.7 MB, free: 7.684 MB / 186.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: 2 ($whenCondition1,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Number of clocked 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.002863/0.3318, allocations: 1.085 MB / 239.8 MB, free: 6.672 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.005023/0.3368, allocations: 0.5499 MB / 240.3 MB, free: 6.176 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.3369, allocations: 0 / 240.3 MB, free: 6.176 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00414/0.341, allocations: 401.2 kB / 240.7 MB, free: 5.812 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005032/0.3415, allocations: 38.75 kB / 240.8 MB, free: 5.785 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006218/0.3478, allocations: 2.068 MB / 242.8 MB, free: 3.883 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.3482, allocations: 0.7559 MB / 243.6 MB, free: 3.102 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/0.3484, allocations: 77.28 kB / 243.7 MB, free: 3.074 MB / 186.7 MB Notification: Performance of SimCode: time 1.042e-06/0.3484, allocations: 0 / 243.7 MB, free: 3.074 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.71/3.059, allocations: 5.801 MB / 249.5 MB, free: 13.31 MB / 202.7 MB