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.101/1.101, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002933, allocations: 8 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05834/0.05866, allocations: 25.17 MB / 183.5 MB, free: 5.922 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003522/0.06225, allocations: 2 MB / 185.5 MB, free: 3.918 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.06381, allocations: 0.5852 MB / 186.1 MB, free: 3.332 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.06398, allocations: 3.938 kB / 186.1 MB, free: 3.328 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 8.557e-05/0.06408, allocations: 27.77 kB / 186.1 MB, free: 3.301 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002837/0.06437, allocations: 91.75 kB / 186.2 MB, free: 3.211 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003541/0.06474, allocations: 63.84 kB / 186.3 MB, free: 3.148 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000402/0.06516, allocations: 211.5 kB / 186.5 MB, free: 2.941 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.06538, allocations: 69.53 kB / 186.6 MB, free: 2.875 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.06564, allocations: 111.6 kB / 186.7 MB, free: 2.766 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002722/0.06593, allocations: 135.5 kB / 186.8 MB, free: 2.633 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 5.559e-05/0.06599, allocations: 16 kB / 186.8 MB, free: 2.617 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.656e-05/0.06607, allocations: 12 kB / 186.8 MB, free: 2.605 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 7.181e-05/0.06615, allocations: 47.77 kB / 186.9 MB, free: 2.559 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 9.998e-05/0.06627, allocations: 73.58 kB / 186.9 MB, free: 2.48 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.06664, allocations: 231.3 kB / 187.2 MB, free: 2.254 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.06665, allocations: 0 / 187.2 MB, free: 2.254 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.06667, allocations: 0 / 187.2 MB, free: 2.254 MB / 154.7 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.06668, allocations: 0 / 187.2 MB, free: 2.254 MB / 154.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.002166/0.06886, allocations: 0.6123 MB / 187.8 MB, free: 1.59 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.06893, allocations: 12.03 kB / 187.8 MB, free: 1.578 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.504e-05/0.06904, allocations: 50.55 kB / 187.8 MB, free: 1.52 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.06915, allocations: 27.72 kB / 187.9 MB, free: 1.492 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.06956, allocations: 248.4 kB / 188.1 MB, free: 1.211 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.06961, allocations: 16.38 kB / 188.1 MB, free: 1.195 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.063e-05/0.06968, allocations: 20 kB / 188.1 MB, free: 1.176 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.07083, allocations: 268.2 kB / 188.4 MB, free: 0.9102 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.07087, allocations: 11.95 kB / 188.4 MB, free: 0.8984 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.059e-05/0.07092, allocations: 7.938 kB / 188.4 MB, free: 0.8906 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.07094, allocations: 4 kB / 188.4 MB, free: 0.8867 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.07253, allocations: 303.5 kB / 188.7 MB, free: 0.5898 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.07509, allocations: 0.8453 MB / 189.6 MB, free: 15.68 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005758/0.08088, allocations: 0.5881 MB / 190.2 MB, free: 15.08 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.299e-05/0.08099, allocations: 7.938 kB / 190.2 MB, free: 15.07 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.08204, allocations: 232.9 kB / 190.4 MB, free: 14.83 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 2.876e-06/0.08206, allocations: 4 kB / 190.4 MB, free: 14.82 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.002558/0.08463, allocations: 471.9 kB / 190.9 MB, free: 14.36 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.824e-05/0.08473, allocations: 85.06 kB / 190.9 MB, free: 14.26 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003591/0.08511, allocations: 228.9 kB / 191.2 MB, free: 14.02 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.935e-05/0.08517, allocations: 33.69 kB / 191.2 MB, free: 13.98 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.08534, allocations: 214.6 kB / 191.4 MB, free: 13.77 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.834e-05/0.08544, allocations: 59.11 kB / 191.5 MB, free: 13.71 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-05/0.08548, allocations: 4 kB / 191.5 MB, free: 13.71 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.08564, allocations: 318.8 kB / 191.8 MB, free: 13.39 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007776/0.08643, allocations: 140 kB / 191.9 MB, free: 13.25 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008198/0.08726, allocations: 179.7 kB / 192.1 MB, free: 13.07 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007989/0.08808, allocations: 140.2 kB / 192.2 MB, free: 12.93 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.0881, allocations: 8 kB / 192.2 MB, free: 12.92 MB / 170.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001758/0.08987, allocations: 352.1 kB / 192.6 MB, free: 12.57 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.08992, allocations: 10.97 kB / 192.6 MB, free: 12.57 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.08993, allocations: 0 / 192.6 MB, free: 12.57 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.08996, allocations: 7.938 kB / 192.6 MB, free: 12.56 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00347/0.09344, allocations: 311.7 kB / 192.9 MB, free: 12.25 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008054/0.1015, allocations: 3.251 MB / 196.2 MB, free: 8.742 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006004/0.1022, allocations: 60.02 kB / 196.2 MB, free: 8.684 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.1022, allocations: 4 kB / 196.2 MB, free: 8.68 MB / 170.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.0003279/0.1026, allocations: 154.2 kB / 196.4 MB, free: 8.52 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.1026, allocations: 23.7 kB / 196.4 MB, free: 8.496 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.143e-05/0.1027, allocations: 30.19 kB / 196.4 MB, free: 8.465 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1028, allocations: 0 / 196.4 MB, free: 8.465 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1028, allocations: 0 / 196.4 MB, free: 8.465 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.1028, allocations: 3.984 kB / 196.4 MB, free: 8.461 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005597/0.1034, allocations: 337.1 kB / 196.8 MB, free: 8.082 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1034, allocations: 4 kB / 196.8 MB, free: 8.078 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003415/0.1068, allocations: 295.7 kB / 197 MB, free: 7.789 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.1069, allocations: 4 kB / 197.1 MB, free: 7.785 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.977e-05/0.1069, allocations: 4 kB / 197.1 MB, free: 7.781 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00888/0.1158, allocations: 3.263 MB / 200.3 MB, free: 4.262 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1159, allocations: 0 / 200.3 MB, free: 4.262 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003368/0.1192, allocations: 0.535 MB / 200.9 MB, free: 3.711 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/0.1196, allocations: 116.9 kB / 201 MB, free: 3.578 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.739e-05/0.1197, allocations: 7.938 kB / 201 MB, free: 3.57 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006523/0.1203, allocations: 52.02 kB / 201 MB, free: 3.52 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.1205, allocations: 19.91 kB / 201 MB, free: 3.5 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.093e-05/0.1206, allocations: 8 kB / 201.1 MB, free: 3.492 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003154/0.1209, allocations: 164.5 kB / 201.2 MB, free: 3.336 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.1209, allocations: 0 / 201.2 MB, free: 3.336 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0008729/0.1218, allocations: 79.8 kB / 201.3 MB, free: 3.258 MB / 170.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.00384/0.1256, allocations: 1.077 MB / 202.4 MB, free: 2.145 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.006368/0.1321, allocations: 0.5502 MB / 202.9 MB, free: 1.594 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.1321, allocations: 0 / 202.9 MB, free: 1.594 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00499/0.1371, allocations: 407.7 kB / 203.3 MB, free: 1.195 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/0.1378, allocations: 35.75 kB / 203.4 MB, free: 1.16 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1834/0.3212, allocations: 1.757 MB / 205.1 MB, free: 23.89 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.3216, allocations: 0.7534 MB / 205.9 MB, free: 23.19 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.3218, allocations: 73.3 kB / 205.9 MB, free: 23.19 MB / 170.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3218, allocations: 0 / 205.9 MB, free: 23.19 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.842/3.164, allocations: 5.836 MB / 211.8 MB, free: 21.62 MB / 170.7 MB