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 1.134/1.134, allocations: 111.2 MB / 124.2 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.233e-05, allocations: 4 kB / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1758, allocations: 25.15 MB / 179.5 MB, free: 0.6836 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06904/0.2449, allocations: 36.53 MB / 216.1 MB, free: 12.48 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.2452, allocations: 67.97 kB / 216.1 MB, free: 12.41 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02182/0.267, allocations: 4.2 MB / 220.3 MB, free: 8.195 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2671, allocations: 0 / 220.3 MB, free: 8.195 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.2671, allocations: 8 kB / 220.3 MB, free: 8.188 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.001752/0.2689, allocations: 0.5419 MB / 220.9 MB, free: 7.598 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.471e-05/0.269, allocations: 12.03 kB / 220.9 MB, free: 7.586 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.2691, allocations: 62.47 kB / 220.9 MB, free: 7.516 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.2692, allocations: 35.62 kB / 221 MB, free: 7.48 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.2697, allocations: 244.4 kB / 221.2 MB, free: 7.203 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.2697, allocations: 16.38 kB / 221.2 MB, free: 7.188 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.42e-05/0.2698, allocations: 16 kB / 221.2 MB, free: 7.172 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006036/0.2704, allocations: 192.6 kB / 221.4 MB, free: 6.98 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.2705, allocations: 3.953 kB / 221.4 MB, free: 6.977 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/0.2705, allocations: 4 kB / 221.4 MB, free: 6.973 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.2705, allocations: 4 kB / 221.4 MB, free: 6.969 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005158/0.2711, allocations: 159.5 kB / 221.6 MB, free: 6.812 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003084/0.2742, allocations: 0.8649 MB / 222.5 MB, free: 5.887 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005301/0.2795, allocations: 488.1 kB / 222.9 MB, free: 5.402 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005786/0.2801, allocations: 144.8 kB / 223.1 MB, free: 5.258 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.2802, allocations: 0 / 223.1 MB, free: 5.258 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004756/0.2807, allocations: 158.2 kB / 223.2 MB, free: 5.082 MB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 2.485e-06/0.2807, allocations: 3.938 kB / 223.2 MB, free: 5.078 MB / 186.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006755/0.2814, allocations: 190.2 kB / 223.4 MB, free: 4.887 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.996e-05/0.2815, allocations: 110.8 kB / 223.5 MB, free: 4.754 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.2819, allocations: 200.9 kB / 223.7 MB, free: 4.551 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.205e-05/0.282, allocations: 33.67 kB / 223.8 MB, free: 4.512 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.2821, allocations: 214.5 kB / 224 MB, free: 4.297 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.967e-05/0.2822, allocations: 63.09 kB / 224 MB, free: 4.234 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-05/0.2823, allocations: 4 kB / 224 MB, free: 4.23 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.2824, allocations: 318.8 kB / 224.4 MB, free: 3.91 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.2827, allocations: 56.19 kB / 224.4 MB, free: 3.852 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.2829, allocations: 100.7 kB / 224.5 MB, free: 3.738 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.2832, allocations: 68.75 kB / 224.6 MB, free: 3.672 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.2832, allocations: 0 / 224.6 MB, free: 3.672 MB / 186.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006415/0.2839, allocations: 214.4 kB / 224.8 MB, free: 3.461 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.2839, allocations: 5.562 kB / 224.8 MB, free: 3.457 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2839, allocations: 0 / 224.8 MB, free: 3.457 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.526e-05/0.284, allocations: 7.953 kB / 224.8 MB, free: 3.449 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004344/0.2883, allocations: 327.8 kB / 225.1 MB, free: 3.129 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00732/0.2957, allocations: 3.053 MB / 228.2 MB, free: 15.81 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007149/0.2965, allocations: 63.7 kB / 228.2 MB, free: 15.75 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.837e-05/0.2965, allocations: 4 kB / 228.2 MB, free: 15.74 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.0002494/0.2968, allocations: 129.4 kB / 228.4 MB, free: 15.61 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-05/0.2969, allocations: 23.8 kB / 228.4 MB, free: 15.59 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.297, allocations: 21.97 kB / 228.4 MB, free: 15.56 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.297, allocations: 0 / 228.4 MB, free: 15.56 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.2971, allocations: 4 kB / 228.4 MB, free: 15.56 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.2971, allocations: 3.984 kB / 228.4 MB, free: 15.55 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/0.299, allocations: 0.7411 MB / 229.2 MB, free: 14.75 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-06/0.2991, allocations: 4.062 kB / 229.2 MB, free: 14.75 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004305/0.3034, allocations: 323.6 kB / 229.5 MB, free: 14.43 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.989e-06/0.3035, allocations: 0 / 229.5 MB, free: 14.43 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-05/0.3035, allocations: 7.984 kB / 229.5 MB, free: 14.42 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00726/0.3108, allocations: 3.056 MB / 232.5 MB, free: 11.1 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3109, allocations: 0 / 232.5 MB, free: 11.1 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009861/0.3119, allocations: 413.6 kB / 232.9 MB, free: 10.66 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.3121, allocations: 120.8 kB / 233.1 MB, free: 10.52 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.112e-05/0.3122, allocations: 4 kB / 233.1 MB, free: 10.52 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006458/0.3128, allocations: 51.84 kB / 233.1 MB, free: 10.47 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.3129, allocations: 27.84 kB / 233.1 MB, free: 10.45 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-05/0.313, allocations: 4 kB / 233.1 MB, free: 10.44 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002624/0.3133, allocations: 165.4 kB / 233.3 MB, free: 10.28 MB / 202.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3133, allocations: 0 / 233.3 MB, free: 10.28 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006604/0.3139, allocations: 79.78 kB / 233.4 MB, free: 10.2 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.001512/0.3155, allocations: 1.101 MB / 234.5 MB, free: 9.066 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.004049/0.3196, allocations: 391.8 kB / 234.9 MB, free: 8.684 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.3196, allocations: 0 / 234.9 MB, free: 8.684 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003702/0.3234, allocations: 327.9 kB / 235.2 MB, free: 8.363 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.324, allocations: 40.64 kB / 235.2 MB, free: 8.32 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.3265, allocations: 0.4908 MB / 235.7 MB, free: 7.781 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.327, allocations: 0.7482 MB / 236.5 MB, free: 7.008 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.3273, allocations: 79.41 kB / 236.5 MB, free: 6.93 MB / 202.7 MB Notification: Performance of SimCode: time 1.272e-06/0.3273, allocations: 0 / 236.5 MB, free: 6.93 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.82/3.147, allocations: 5.727 MB / 242.3 MB, free: 1.207 MB / 202.7 MB