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.CharacteristicThyristors.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: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="R1.i|R1.v|R3.i|R3.v|Time",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadModel(Modelica): time 1.176/1.176, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002646/0.0002647, allocations: 12 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05332/0.05362, allocations: 25.16 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.212/0.2657, allocations: 35.92 MB / 220 MB, free: 6.145 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.2659, allocations: 69.22 kB / 220 MB, free: 6.137 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01471/0.2807, allocations: 3.716 MB / 223.7 MB, free: 4.625 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.2807, allocations: 0 / 223.7 MB, free: 4.625 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.979e-05/0.2807, allocations: 7.688 kB / 223.7 MB, free: 4.625 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009058/0.2817, allocations: 0.5078 MB / 224.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.2817, allocations: 11.47 kB / 224.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.2818, allocations: 31.03 kB / 224.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.2822, allocations: 246.9 kB / 224.5 MB, free: 3.918 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.2822, allocations: 18.78 kB / 224.6 MB, free: 3.914 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.408e-05/0.2822, allocations: 17.34 kB / 224.6 MB, free: 3.914 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000603/0.2829, allocations: 230.3 kB / 224.8 MB, free: 3.824 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.2829, allocations: 0 / 224.8 MB, free: 3.824 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.2829, allocations: 14.89 kB / 224.8 MB, free: 3.82 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.283, allocations: 9.266 kB / 224.8 MB, free: 3.816 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005273/0.2835, allocations: 175.9 kB / 225 MB, free: 3.785 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.2854, allocations: 0.9639 MB / 226 MB, free: 3.086 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005258/0.2859, allocations: 168.1 kB / 226.1 MB, free: 3.047 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.527e-05/0.286, allocations: 1.344 kB / 226.1 MB, free: 3.047 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.286, allocations: 37.09 kB / 226.2 MB, free: 3.004 MB / 170.7 MB Notification: Performance of pre-optimization done (n=18): time 2.365e-06/0.286, allocations: 0 / 226.2 MB, free: 3.004 MB / 170.7 MB Notification: Performance of matching and sorting (n=18): time 0.001714/0.2878, allocations: 0.504 MB / 226.7 MB, free: 2.695 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.2878, allocations: 54.47 kB / 226.7 MB, free: 2.633 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Sources.mo:361:5-361:68:writable] Warning: Parameter SineVoltage1.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.2882, allocations: 212.5 kB / 226.9 MB, free: 2.512 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.2882, allocations: 32.33 kB / 227 MB, free: 2.477 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.303e-05/0.2883, allocations: 203.8 kB / 227.2 MB, free: 2.301 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.146e-05/0.2884, allocations: 63.66 kB / 227.2 MB, free: 2.258 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.588e-05/0.2884, allocations: 11.47 kB / 227.2 MB, free: 2.254 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.284e-05/0.2885, allocations: 318.1 kB / 227.5 MB, free: 1.938 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002328/0.2888, allocations: 58.69 kB / 227.6 MB, free: 1.926 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.289, allocations: 85 kB / 227.7 MB, free: 1.895 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/0.2893, allocations: 62.8 kB / 227.7 MB, free: 1.891 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.2893, allocations: 0 / 227.7 MB, free: 1.891 MB / 170.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007516/0.2901, allocations: 252.9 kB / 228 MB, free: 1.801 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.2901, allocations: 3.75 kB / 228 MB, free: 1.801 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2901, allocations: 0 / 228 MB, free: 1.801 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004669/0.2906, allocations: 78.62 kB / 228.1 MB, free: 1.77 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.2908, allocations: 22.92 kB / 228.1 MB, free: 1.766 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003503/0.2943, allocations: 2.995 MB / 231.1 MB, free: 14.97 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003175/0.2947, allocations: 22.89 kB / 231.1 MB, free: 14.96 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/0.2948, allocations: 7.781 kB / 231.1 MB, free: 14.95 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: IdealThyristor1.off:DISCRETE(start = true fixed = true ) "Switching state" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.IdealThyristor1.off,IdealThyristor1.off,BooleanStep1.y,IdealGTOThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003273/0.2951, allocations: 139.3 kB / 231.2 MB, free: 14.83 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.299e-05/0.2952, allocations: 19.42 kB / 231.3 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.161e-05/0.2953, allocations: 27.08 kB / 231.3 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.2953, allocations: 7.672 kB / 231.3 MB, free: 14.81 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2953, allocations: 0 / 231.3 MB, free: 14.81 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.2953, allocations: 0 / 231.3 MB, free: 14.81 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004952/0.2958, allocations: 297 kB / 231.6 MB, free: 14.58 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2959, allocations: 0 / 231.6 MB, free: 14.58 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.296, allocations: 17.84 kB / 231.6 MB, free: 14.57 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004077/0.2965, allocations: 81.19 kB / 231.7 MB, free: 14.54 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.2965, allocations: 3.938 kB / 231.7 MB, free: 14.54 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003425/0.2999, allocations: 2.921 MB / 234.6 MB, free: 11.83 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.3, allocations: 0 / 234.6 MB, free: 11.83 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000848/0.3009, allocations: 341.2 kB / 234.9 MB, free: 11.64 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.3011, allocations: 115.4 kB / 235.1 MB, free: 11.52 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.384e-05/0.3011, allocations: 0 / 235.1 MB, free: 11.52 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000274/0.3014, allocations: 23.36 kB / 235.1 MB, free: 11.51 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.3016, allocations: 22.69 kB / 235.1 MB, free: 11.5 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.3016, allocations: 3.812 kB / 235.1 MB, free: 11.5 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002055/0.3018, allocations: 158.4 kB / 235.3 MB, free: 11.41 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3018, allocations: 4 kB / 235.3 MB, free: 11.41 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006392/0.3025, allocations: 75.23 kB / 235.3 MB, free: 11.4 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (IdealThyristor1.off,BooleanStep1.y,IdealGTOThyristor1.off) * Number of discrete states: 1 (IdealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001687/0.3027, allocations: 104.2 kB / 235.4 MB, free: 11.31 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.3037, allocations: 409.2 kB / 235.8 MB, free: 11.05 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.3037, allocations: 1.281 kB / 235.8 MB, free: 11.05 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005889/0.3043, allocations: 321.2 kB / 236.2 MB, free: 10.8 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007322/0.3051, allocations: 58.14 kB / 236.2 MB, free: 10.78 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.3065, allocations: 0.5588 MB / 236.8 MB, free: 10.36 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.307, allocations: 0.7557 MB / 237.5 MB, free: 9.574 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.829e-05/0.3071, allocations: 15.44 kB / 237.5 MB, free: 9.559 MB / 186.7 MB Notification: Performance of SimCode: time 1.683e-06/0.3071, allocations: 0 / 237.5 MB, free: 9.559 MB / 186.7 MB Notification: Performance of Templates: time 0.01137/0.3185, allocations: 4.341 MB / 241.9 MB, free: 5.25 MB / 186.7 MB