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 0.9397/0.9397, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.422e-05/2.444e-05, allocations: 4 kB / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1377, allocations: 25.14 MB / 179.4 MB, free: 0.8047 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05359/0.1913, allocations: 35.85 MB / 215.3 MB, free: 13.26 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.1916, allocations: 63.97 kB / 215.3 MB, free: 13.2 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01427/0.2058, allocations: 3.72 MB / 219.1 MB, free: 9.465 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.437e-06/0.2059, allocations: 4 kB / 219.1 MB, free: 9.461 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.244e-05/0.2059, allocations: 4 kB / 219.1 MB, free: 9.457 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007984/0.2067, allocations: 490.9 kB / 219.5 MB, free: 8.934 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.2068, allocations: 12.03 kB / 219.6 MB, free: 8.922 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.76e-05/0.2069, allocations: 27.62 kB / 219.6 MB, free: 8.895 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.2073, allocations: 247 kB / 219.8 MB, free: 8.613 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.2073, allocations: 16.44 kB / 219.8 MB, free: 8.598 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.2074, allocations: 20 kB / 219.9 MB, free: 8.578 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004948/0.2079, allocations: 214.8 kB / 220.1 MB, free: 8.355 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2079, allocations: 0 / 220.1 MB, free: 8.355 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.798e-05/0.2079, allocations: 12 kB / 220.1 MB, free: 8.344 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.208, allocations: 11.95 kB / 220.1 MB, free: 8.332 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003957/0.2084, allocations: 149.7 kB / 220.2 MB, free: 8.18 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.2102, allocations: 0.9602 MB / 221.2 MB, free: 7.141 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004253/0.2107, allocations: 168.6 kB / 221.4 MB, free: 6.969 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002479/0.2109, allocations: 88.86 kB / 221.4 MB, free: 6.879 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.211, allocations: 4 kB / 221.4 MB, free: 6.875 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.211, allocations: 34.55 kB / 221.5 MB, free: 6.832 MB / 186.7 MB Notification: Performance of pre-optimization done (n=18): time 2.542e-06/0.211, allocations: 4 kB / 221.5 MB, free: 6.828 MB / 186.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006311/0.2117, allocations: 207.3 kB / 221.7 MB, free: 6.613 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.2117, allocations: 55.41 kB / 221.7 MB, free: 6.547 MB / 186.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.0003058/0.2121, allocations: 187.9 kB / 221.9 MB, free: 6.359 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.2121, allocations: 29.7 kB / 222 MB, free: 6.324 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.2123, allocations: 218.4 kB / 222.2 MB, free: 6.109 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.446e-05/0.2123, allocations: 51.25 kB / 222.2 MB, free: 6.059 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.256e-05/0.2124, allocations: 8 kB / 222.2 MB, free: 6.051 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.2125, allocations: 318.8 kB / 222.5 MB, free: 5.73 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.2127, allocations: 48.38 kB / 222.6 MB, free: 5.68 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.2129, allocations: 62.47 kB / 222.6 MB, free: 5.613 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.213, allocations: 50.92 kB / 222.7 MB, free: 5.566 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.224e-06/0.213, allocations: 7.938 kB / 222.7 MB, free: 5.559 MB / 186.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005504/0.2136, allocations: 222.5 kB / 222.9 MB, free: 5.332 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.2136, allocations: 8 kB / 222.9 MB, free: 5.324 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.721e-06/0.2137, allocations: 3.984 kB / 222.9 MB, free: 5.32 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003763/0.214, allocations: 73.69 kB / 223 MB, free: 5.242 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.2142, allocations: 23.98 kB / 223 MB, free: 5.219 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003518/0.2178, allocations: 2.966 MB / 226 MB, free: 1.98 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.218, allocations: 23.88 kB / 226 MB, free: 1.957 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.218, allocations: 4 kB / 226 MB, free: 1.953 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: IdealThyristor1.off:DISCRETE(start = true fixed = false ) "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 () * 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.0001635/0.2182, allocations: 117 kB / 226.1 MB, free: 1.832 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.54e-05/0.2183, allocations: 23.8 kB / 226.2 MB, free: 1.809 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.641e-05/0.2183, allocations: 25.66 kB / 226.2 MB, free: 1.777 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.994e-06/0.2184, allocations: 3.953 kB / 226.2 MB, free: 1.773 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.708e-06/0.2184, allocations: 0 / 226.2 MB, free: 1.773 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.337e-06/0.2184, allocations: 3.984 kB / 226.2 MB, free: 1.77 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.2195, allocations: 0.5802 MB / 226.8 MB, free: 1.125 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.2195, allocations: 96 / 226.8 MB, free: 1.125 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.2196, allocations: 19.98 kB / 226.8 MB, free: 1.105 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003328/0.22, allocations: 81.61 kB / 226.9 MB, free: 1.02 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.22, allocations: 4 kB / 226.9 MB, free: 1.016 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003306/0.2233, allocations: 2.885 MB / 229.8 MB, free: 13.87 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.726e-06/0.2233, allocations: 7.969 kB / 229.8 MB, free: 13.86 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000528/0.2239, allocations: 314.7 kB / 230.1 MB, free: 13.52 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.2241, allocations: 112.8 kB / 230.2 MB, free: 13.39 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.671e-05/0.2241, allocations: 4 kB / 230.2 MB, free: 13.39 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.2244, allocations: 15.98 kB / 230.2 MB, free: 13.38 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.93e-05/0.2245, allocations: 27.91 kB / 230.2 MB, free: 13.35 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.2245, allocations: 4 kB / 230.2 MB, free: 13.34 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002073/0.2247, allocations: 168.5 kB / 230.4 MB, free: 13.18 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.18e-07/0.2247, allocations: 0 / 230.4 MB, free: 13.18 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006371/0.2254, allocations: 75.84 kB / 230.5 MB, free: 13.11 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (IdealThyristor1.off,BooleanStep1.y,IdealGTOThyristor1.off) * Number of discrete states: 1 (IdealThyristor1.off) * 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.0001474/0.2255, allocations: 103.3 kB / 230.6 MB, free: 13 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0006927/0.2262, allocations: 385 kB / 231 MB, free: 12.59 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.331e-06/0.2263, allocations: 0 / 231 MB, free: 12.59 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004498/0.2267, allocations: 317 kB / 231.3 MB, free: 12.26 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.2272, allocations: 59.67 kB / 231.3 MB, free: 12.2 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008417/0.2281, allocations: 298.8 kB / 231.6 MB, free: 11.88 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.2286, allocations: 0.7555 MB / 232.4 MB, free: 11.1 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.825e-05/0.2287, allocations: 15.44 kB / 232.4 MB, free: 11.08 MB / 202.7 MB Notification: Performance of SimCode: time 1.847e-06/0.2287, allocations: 0 / 232.4 MB, free: 11.08 MB / 202.7 MB Notification: Performance of Templates: time 0.01694/0.2456, allocations: 4.323 MB / 236.7 MB, free: 6.766 MB / 202.7 MB