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.CharacteristicThyristors.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.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.014/1.014, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002566, allocations: 4 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04406/0.04433, allocations: 25.17 MB / 183.5 MB, free: 5.961 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1729/0.2173, allocations: 35.92 MB / 219.4 MB, free: 6.195 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.2175, allocations: 68.56 kB / 219.5 MB, free: 6.184 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01266/0.2302, allocations: 3.718 MB / 223.2 MB, free: 4.672 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.5e-06/0.2303, allocations: 3.938 kB / 223.2 MB, free: 4.668 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.2303, allocations: 3.812 kB / 223.2 MB, free: 4.668 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.0006765/0.231, allocations: 0.5123 MB / 223.7 MB, free: 4.215 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.231, allocations: 9 kB / 223.7 MB, free: 4.215 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.242e-05/0.2311, allocations: 29.66 kB / 223.8 MB, free: 4.199 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.2314, allocations: 243.4 kB / 224 MB, free: 3.965 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.2314, allocations: 14.84 kB / 224 MB, free: 3.965 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.914e-05/0.2315, allocations: 22.02 kB / 224 MB, free: 3.961 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000467/0.2319, allocations: 236.4 kB / 224.3 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.232, allocations: 0 / 224.3 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.175e-05/0.232, allocations: 9.688 kB / 224.3 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.675e-06/0.232, allocations: 9.172 kB / 224.3 MB, free: 3.859 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004434/0.2325, allocations: 176.2 kB / 224.5 MB, free: 3.832 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.2339, allocations: 0.959 MB / 225.4 MB, free: 3.133 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004265/0.2343, allocations: 178 kB / 225.6 MB, free: 3.09 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.2344, allocations: 3.984 kB / 225.6 MB, free: 3.086 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.2344, allocations: 38.19 kB / 225.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of pre-optimization done (n=18): time 2.315e-06/0.2344, allocations: 0 / 225.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of matching and sorting (n=18): time 0.001259/0.2357, allocations: 0.5064 MB / 226.1 MB, free: 2.73 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.2357, allocations: 55.28 kB / 226.2 MB, free: 2.668 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.0002604/0.236, allocations: 186.5 kB / 226.4 MB, free: 2.562 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.236, allocations: 28.64 kB / 226.4 MB, free: 2.531 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.107e-05/0.2361, allocations: 208.7 kB / 226.6 MB, free: 2.352 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.76e-05/0.2362, allocations: 61.73 kB / 226.7 MB, free: 2.309 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.276e-05/0.2362, allocations: 11.38 kB / 226.7 MB, free: 2.301 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.107e-05/0.2363, allocations: 318.2 kB / 227 MB, free: 1.984 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.2364, allocations: 55.45 kB / 227 MB, free: 1.977 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.2367, allocations: 81.08 kB / 227.1 MB, free: 1.949 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.2369, allocations: 60.91 kB / 227.2 MB, free: 1.945 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.878e-06/0.2369, allocations: 0 / 227.2 MB, free: 1.945 MB / 170.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006348/0.2376, allocations: 247 kB / 227.4 MB, free: 1.863 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2376, allocations: 6.5 kB / 227.4 MB, free: 1.863 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.889e-06/0.2376, allocations: 0 / 227.4 MB, free: 1.863 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003606/0.238, allocations: 92.12 kB / 227.5 MB, free: 1.82 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.2381, allocations: 21.17 kB / 227.5 MB, free: 1.816 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002765/0.2409, allocations: 2.998 MB / 230.5 MB, free: 15.02 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.2411, allocations: 15.73 kB / 230.6 MB, free: 15.01 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.2411, allocations: 7.562 kB / 230.6 MB, free: 15.01 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.0002172/0.2414, allocations: 133.8 kB / 230.7 MB, free: 14.89 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.581e-05/0.2415, allocations: 19.28 kB / 230.7 MB, free: 14.89 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.428e-05/0.2415, allocations: 32.05 kB / 230.7 MB, free: 14.87 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.22e-06/0.2415, allocations: 11.7 kB / 230.8 MB, free: 14.86 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.212e-06/0.2416, allocations: 0 / 230.8 MB, free: 14.86 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.5e-06/0.2416, allocations: 0 / 230.8 MB, free: 14.86 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004221/0.242, allocations: 299.9 kB / 231 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.242, allocations: 3.812 kB / 231 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.2421, allocations: 11.47 kB / 231.1 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003111/0.2425, allocations: 77.94 kB / 231.1 MB, free: 14.59 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.2425, allocations: 7.375 kB / 231.1 MB, free: 14.59 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003248/0.2458, allocations: 2.918 MB / 234.1 MB, free: 11.88 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.133e-06/0.2458, allocations: 0 / 234.1 MB, free: 11.88 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006784/0.2465, allocations: 342 kB / 234.4 MB, free: 11.69 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.2466, allocations: 114 kB / 234.5 MB, free: 11.57 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.2467, allocations: 7.5 kB / 234.5 MB, free: 11.57 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.2469, allocations: 11.72 kB / 234.5 MB, free: 11.57 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.365e-05/0.247, allocations: 29.48 kB / 234.6 MB, free: 11.56 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.2471, allocations: 3.875 kB / 234.6 MB, free: 11.56 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001889/0.2473, allocations: 157.9 kB / 234.7 MB, free: 11.46 MB / 186.7 MB Notification: Performance of sort global known variables: time 6.87e-07/0.2473, allocations: 0 / 234.7 MB, free: 11.46 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006322/0.2479, allocations: 67.66 kB / 234.8 MB, free: 11.46 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.0001534/0.2481, allocations: 124.1 kB / 234.9 MB, free: 11.35 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007912/0.2489, allocations: 394.2 kB / 235.3 MB, free: 11.1 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.172e-06/0.2489, allocations: 1.156 kB / 235.3 MB, free: 11.1 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004989/0.2494, allocations: 334.9 kB / 235.6 MB, free: 10.85 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.2499, allocations: 59.02 kB / 235.7 MB, free: 10.82 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.251, allocations: 0.546 MB / 236.2 MB, free: 10.32 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.2515, allocations: 0.7557 MB / 237 MB, free: 9.539 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.404e-05/0.2516, allocations: 15.44 kB / 237 MB, free: 9.523 MB / 186.7 MB Notification: Performance of SimCode: time 1.395e-06/0.2516, allocations: 3.938 kB / 237 MB, free: 9.52 MB / 186.7 MB Notification: Performance of Templates: time 0.007991/0.2596, allocations: 4.325 MB / 241.3 MB, free: 5.223 MB / 186.7 MB