Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 0.9565/0.9565, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002668/0.0002669, allocations: 12 kB / 158.3 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04525/0.04554, allocations: 25.17 MB / 183.4 MB, free: 6.012 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003059/0.04864, allocations: 2.004 MB / 185.4 MB, free: 4.004 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.04996, allocations: 0.5852 MB / 186 MB, free: 3.418 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.05015, allocations: 4 kB / 186 MB, free: 3.414 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 7.504e-05/0.05024, allocations: 27.77 kB / 186 MB, free: 3.387 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002365/0.05049, allocations: 79.75 kB / 186.1 MB, free: 3.309 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.05081, allocations: 75.78 kB / 186.2 MB, free: 3.234 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000341/0.05116, allocations: 207.5 kB / 186.4 MB, free: 3.031 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.05136, allocations: 69.31 kB / 186.5 MB, free: 2.965 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.0516, allocations: 115.5 kB / 186.6 MB, free: 2.852 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.05185, allocations: 127.5 kB / 186.7 MB, free: 2.727 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-05/0.05192, allocations: 16 kB / 186.7 MB, free: 2.711 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.241e-05/0.05198, allocations: 12 kB / 186.7 MB, free: 2.699 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.05206, allocations: 55.8 kB / 186.8 MB, free: 2.645 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 9.611e-05/0.05217, allocations: 69.52 kB / 186.9 MB, free: 2.57 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004512/0.05263, allocations: 239.6 kB / 187.1 MB, free: 2.336 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.108e-06/0.05266, allocations: 0 / 187.1 MB, free: 2.336 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.018e-06/0.05267, allocations: 0 / 187.1 MB, free: 2.336 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.05269, allocations: 0 / 187.1 MB, free: 2.336 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.001581/0.05428, allocations: 0.6046 MB / 187.7 MB, free: 1.68 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.05433, allocations: 8.031 kB / 187.7 MB, free: 1.672 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.676e-05/0.05444, allocations: 27.72 kB / 187.7 MB, free: 1.645 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.05485, allocations: 248.3 kB / 188 MB, free: 1.363 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.665e-05/0.0549, allocations: 20.38 kB / 188 MB, free: 1.344 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.682e-05/0.05497, allocations: 16 kB / 188 MB, free: 1.328 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008613/0.05585, allocations: 276.2 kB / 188.3 MB, free: 1.055 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.05588, allocations: 0 / 188.3 MB, free: 1.055 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.13e-05/0.05593, allocations: 11.95 kB / 188.3 MB, free: 1.043 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.05595, allocations: 4 kB / 188.3 MB, free: 1.039 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.05706, allocations: 307.5 kB / 188.6 MB, free: 0.7383 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/0.05919, allocations: 0.8337 MB / 189.4 MB, free: 15.84 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003698/0.06292, allocations: 0.6017 MB / 190 MB, free: 15.23 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.063, allocations: 0 / 190 MB, free: 15.23 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000794/0.06381, allocations: 231.7 kB / 190.2 MB, free: 14.99 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 3.268e-06/0.06384, allocations: 7.875 kB / 190.3 MB, free: 14.98 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.001837/0.06568, allocations: 469.5 kB / 190.7 MB, free: 14.52 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.06579, allocations: 93.05 kB / 190.8 MB, free: 14.41 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003483/0.06615, allocations: 224.9 kB / 191 MB, free: 14.18 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.06621, allocations: 29.7 kB / 191.1 MB, free: 14.14 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.06639, allocations: 210.6 kB / 191.3 MB, free: 13.93 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.747e-05/0.06649, allocations: 67.08 kB / 191.3 MB, free: 13.87 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.13e-05/0.06652, allocations: 4 kB / 191.3 MB, free: 13.86 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.06671, allocations: 322.8 kB / 191.6 MB, free: 13.54 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005566/0.06728, allocations: 136.1 kB / 191.8 MB, free: 13.41 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005843/0.06788, allocations: 171.7 kB / 191.9 MB, free: 13.23 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005707/0.06846, allocations: 148.1 kB / 192.1 MB, free: 13.08 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.614e-06/0.06849, allocations: 0 / 192.1 MB, free: 13.08 MB / 170.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001289/0.06979, allocations: 359 kB / 192.4 MB, free: 12.73 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.06983, allocations: 4 kB / 192.4 MB, free: 12.72 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.788e-06/0.06984, allocations: 0 / 192.4 MB, free: 12.72 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.06988, allocations: 7.953 kB / 192.5 MB, free: 12.71 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002165/0.07205, allocations: 311.6 kB / 192.8 MB, free: 12.41 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006316/0.0784, allocations: 3.252 MB / 196 MB, free: 8.898 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004313/0.07887, allocations: 51.84 kB / 196.1 MB, free: 8.848 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.07892, allocations: 11.98 kB / 196.1 MB, free: 8.836 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.0003099/0.07925, allocations: 159.6 kB / 196.2 MB, free: 8.672 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.373e-05/0.07932, allocations: 27.67 kB / 196.3 MB, free: 8.645 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.302e-05/0.07941, allocations: 26.17 kB / 196.3 MB, free: 8.617 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.091e-06/0.07942, allocations: 0 / 196.3 MB, free: 8.617 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.107e-06/0.07944, allocations: 0 / 196.3 MB, free: 8.617 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.597e-06/0.07945, allocations: 4 kB / 196.3 MB, free: 8.613 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005101/0.07998, allocations: 337.2 kB / 196.6 MB, free: 8.234 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.51e-06/0.08, allocations: 4 kB / 196.6 MB, free: 8.23 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002123/0.08213, allocations: 295.7 kB / 196.9 MB, free: 7.941 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.579e-06/0.08216, allocations: 3.938 kB / 196.9 MB, free: 7.938 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.08221, allocations: 7.984 kB / 196.9 MB, free: 7.93 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006263/0.08849, allocations: 3.252 MB / 200.2 MB, free: 4.422 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.604e-06/0.08853, allocations: 0 / 200.2 MB, free: 4.422 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.09045, allocations: 0.5389 MB / 200.7 MB, free: 3.867 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001985/0.09068, allocations: 112.9 kB / 200.8 MB, free: 3.738 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.691e-05/0.09075, allocations: 8 kB / 200.8 MB, free: 3.73 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.09112, allocations: 48.03 kB / 200.9 MB, free: 3.684 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.179e-05/0.09123, allocations: 27.88 kB / 200.9 MB, free: 3.656 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.91e-05/0.09128, allocations: 8 kB / 200.9 MB, free: 3.648 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002204/0.09151, allocations: 160.5 kB / 201.1 MB, free: 3.496 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.195e-06/0.09152, allocations: 0 / 201.1 MB, free: 3.496 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005739/0.09211, allocations: 83.77 kB / 201.1 MB, free: 3.414 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.0001591/0.09228, allocations: 107.2 kB / 201.3 MB, free: 3.297 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002979/0.09527, allocations: 0.5386 MB / 201.8 MB, free: 2.758 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.412e-06/0.0953, allocations: 0 / 201.8 MB, free: 2.758 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00234/0.09766, allocations: 411.7 kB / 202.2 MB, free: 2.355 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.09809, allocations: 32.64 kB / 202.2 MB, free: 2.32 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.1002, allocations: 0.7257 MB / 202.9 MB, free: 1.555 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.1007, allocations: 0.7481 MB / 203.7 MB, free: 0.7812 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.1008, allocations: 23.44 kB / 203.7 MB, free: 0.7578 MB / 170.7 MB Notification: Performance of SimCode: time 1.704e-06/0.1008, allocations: 0 / 203.7 MB, free: 0.7578 MB / 170.7 MB Notification: Performance of Templates: time 0.1287/0.2295, allocations: 4.772 MB / 208.5 MB, free: 23.04 MB / 170.7 MB