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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 1.117/1.117, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.815e-05/2.803e-05, allocations: 8 kB / 148.2 MB, free: 6.109 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05408/0.05415, allocations: 25.17 MB / 173.4 MB, free: 12.9 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2166/0.2708, allocations: 35.86 MB / 209.2 MB, free: 4.672 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.2711, allocations: 62.88 kB / 209.3 MB, free: 4.672 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02084/0.2919, allocations: 4.158 MB / 213.5 MB, free: 4.07 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.292, allocations: 0 / 213.5 MB, free: 4.07 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.292, allocations: 6.438 kB / 213.5 MB, free: 4.07 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.001597/0.2936, allocations: 0.5476 MB / 214 MB, free: 3.66 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.2937, allocations: 15.44 kB / 214 MB, free: 3.652 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001444/0.2939, allocations: 30.53 kB / 214.1 MB, free: 3.637 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.2943, allocations: 244.4 kB / 214.3 MB, free: 3.418 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.191e-05/0.2943, allocations: 9.5 kB / 214.3 MB, free: 3.418 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.18e-05/0.2944, allocations: 13.5 kB / 214.3 MB, free: 3.414 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004695/0.2949, allocations: 146.1 kB / 214.5 MB, free: 3.41 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004672/0.2954, allocations: 168.6 kB / 214.6 MB, free: 3.375 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2954, allocations: 0 / 214.6 MB, free: 3.375 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.884e-05/0.2955, allocations: 0 / 214.6 MB, free: 3.375 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2955, allocations: 7.625 kB / 214.6 MB, free: 3.375 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.2982, allocations: 0.8322 MB / 215.5 MB, free: 3.02 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004969/0.3032, allocations: 471.8 kB / 215.9 MB, free: 2.98 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000491/0.3037, allocations: 127.3 kB / 216.1 MB, free: 2.973 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.42e-05/0.3038, allocations: 7.844 kB / 216.1 MB, free: 2.969 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003409/0.3042, allocations: 147.2 kB / 216.2 MB, free: 2.895 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 3.627e-06/0.3042, allocations: 0 / 216.2 MB, free: 2.895 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005582/0.3047, allocations: 189.5 kB / 216.4 MB, free: 2.844 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.3048, allocations: 106.8 kB / 216.5 MB, free: 2.715 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.3051, allocations: 187.7 kB / 216.7 MB, free: 2.621 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.3051, allocations: 29.73 kB / 216.7 MB, free: 2.586 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.3052, allocations: 210.4 kB / 216.9 MB, free: 2.41 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.313e-05/0.3053, allocations: 60.75 kB / 217 MB, free: 2.371 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.153e-05/0.3053, allocations: 0 / 217 MB, free: 2.371 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.259e-05/0.3054, allocations: 324.9 kB / 217.3 MB, free: 2.055 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.3056, allocations: 54.22 kB / 217.3 MB, free: 2.051 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.3058, allocations: 100.4 kB / 217.4 MB, free: 2.008 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.306, allocations: 54.88 kB / 217.5 MB, free: 2.008 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.306, allocations: 3.844 kB / 217.5 MB, free: 2.008 MB / 170.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004974/0.3065, allocations: 196.1 kB / 217.7 MB, free: 1.953 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.3065, allocations: 7.594 kB / 217.7 MB, free: 1.953 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.3065, allocations: 0 / 217.7 MB, free: 1.953 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.3066, allocations: 3.844 kB / 217.7 MB, free: 1.953 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004121/0.3107, allocations: 331.1 kB / 218 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006323/0.3171, allocations: 2.96 MB / 221 MB, free: 15.1 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006738/0.3178, allocations: 54.95 kB / 221 MB, free: 15.08 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.3179, allocations: 7.75 kB / 221.1 MB, free: 15.08 MB / 186.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 Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: thyristor_v4_1.vAK:VARIABLE() "voltage between anode and cathode" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: thyristor_v4_1.vGK:VARIABLE() "voltage between gate and cathode" 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.0002605/0.3182, allocations: 126.2 kB / 221.2 MB, free: 14.96 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005259/0.3187, allocations: 180 kB / 221.4 MB, free: 14.9 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.166e-05/0.3188, allocations: 22.8 kB / 221.4 MB, free: 14.89 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.3189, allocations: 25.17 kB / 221.4 MB, free: 14.88 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.068e-06/0.3189, allocations: 7.875 kB / 221.4 MB, free: 14.88 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.3189, allocations: 0 / 221.4 MB, free: 14.88 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.3189, allocations: 4.031 kB / 221.4 MB, free: 14.87 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/0.3207, allocations: 0.6946 MB / 222.1 MB, free: 14.4 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.587e-06/0.3208, allocations: 3.984 kB / 222.1 MB, free: 14.4 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004134/0.3249, allocations: 317.4 kB / 222.4 MB, free: 14.3 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/0.325, allocations: 3.875 kB / 222.4 MB, free: 14.3 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.6e-05/0.325, allocations: 0 / 222.4 MB, free: 14.3 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006589/0.3316, allocations: 2.964 MB / 225.4 MB, free: 11.54 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.3317, allocations: 3.938 kB / 225.4 MB, free: 11.54 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008158/0.3325, allocations: 400.4 kB / 225.8 MB, free: 11.33 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001946/0.3327, allocations: 120.2 kB / 225.9 MB, free: 11.21 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.681e-05/0.3328, allocations: 0 / 225.9 MB, free: 11.21 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/0.3334, allocations: 46.91 kB / 225.9 MB, free: 11.2 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.3336, allocations: 27.55 kB / 226 MB, free: 11.18 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.73e-05/0.3336, allocations: 11.55 kB / 226 MB, free: 11.18 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001939/0.3338, allocations: 149.8 kB / 226.1 MB, free: 11.09 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3338, allocations: 0 / 226.1 MB, free: 11.09 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006931/0.3345, allocations: 73.8 kB / 226.2 MB, free: 11.08 MB / 186.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.001268/0.3358, allocations: 1.073 MB / 227.3 MB, free: 10.21 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.003818/0.3397, allocations: 392.4 kB / 227.7 MB, free: 10.12 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/0.3398, allocations: 0 / 227.7 MB, free: 10.12 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003548/0.3433, allocations: 323.4 kB / 228 MB, free: 10.04 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.344, allocations: 30.22 kB / 228 MB, free: 10.03 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.3464, allocations: 480.7 kB / 228.5 MB, free: 9.707 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.3469, allocations: 0.7529 MB / 229.2 MB, free: 8.977 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.3471, allocations: 74.55 kB / 229.3 MB, free: 8.961 MB / 186.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3471, allocations: 3.938 kB / 229.3 MB, free: 8.957 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.848/3.195, allocations: 5.687 MB / 235 MB, free: 6.074 MB / 186.7 MB