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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.06/1.06, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.895e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06008/0.06014, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1732/0.2334, allocations: 35.16 MB / 208.5 MB, free: 7.027 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.2336, allocations: 64.34 kB / 208.5 MB, free: 7.027 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01302/0.2467, allocations: 3.685 MB / 212.2 MB, free: 6.453 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.992e-06/0.2467, allocations: 0 / 212.2 MB, free: 6.453 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.126e-05/0.2468, allocations: 7.781 kB / 212.2 MB, free: 6.453 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.0006754/0.2475, allocations: 497.2 kB / 212.7 MB, free: 6.047 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.2475, allocations: 8.062 kB / 212.7 MB, free: 6.047 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.475e-05/0.2476, allocations: 29.72 kB / 212.7 MB, free: 6.031 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.2479, allocations: 241.5 kB / 213 MB, free: 5.812 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.2479, allocations: 6.625 kB / 213 MB, free: 5.812 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.248, allocations: 12.28 kB / 213 MB, free: 5.812 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003461/0.2483, allocations: 129.2 kB / 213.1 MB, free: 5.812 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.2488, allocations: 192.9 kB / 213.3 MB, free: 5.75 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.2488, allocations: 7.984 kB / 213.3 MB, free: 5.742 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.2488, allocations: 3.953 kB / 213.3 MB, free: 5.738 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.2488, allocations: 5.469 kB / 213.3 MB, free: 5.738 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.2503, allocations: 0.907 MB / 214.2 MB, free: 5.195 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.2507, allocations: 162.5 kB / 214.4 MB, free: 5.164 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.2509, allocations: 89.52 kB / 214.5 MB, free: 5.156 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.2509, allocations: 0 / 214.5 MB, free: 5.156 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.251, allocations: 42 kB / 214.5 MB, free: 5.113 MB / 170.7 MB Notification: Performance of pre-optimization done (n=18): time 2.52e-06/0.251, allocations: 2.844 kB / 214.5 MB, free: 5.113 MB / 170.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005155/0.2515, allocations: 193.1 kB / 214.7 MB, free: 5.047 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.952e-05/0.2516, allocations: 59.23 kB / 214.8 MB, free: 4.98 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.0002245/0.2518, allocations: 171.9 kB / 214.9 MB, free: 4.879 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.2518, allocations: 25.7 kB / 215 MB, free: 4.848 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.424e-05/0.2519, allocations: 213.9 kB / 215.2 MB, free: 4.676 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.246e-05/0.252, allocations: 64.64 kB / 215.2 MB, free: 4.633 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.107e-05/0.252, allocations: 0 / 215.2 MB, free: 4.633 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.144e-05/0.252, allocations: 314.4 kB / 215.5 MB, free: 4.32 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.2522, allocations: 44.31 kB / 215.6 MB, free: 4.316 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.2523, allocations: 62.56 kB / 215.6 MB, free: 4.301 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.2524, allocations: 48.33 kB / 215.7 MB, free: 4.301 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.751e-06/0.2524, allocations: 0 / 215.7 MB, free: 4.301 MB / 170.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004557/0.2529, allocations: 202.1 kB / 215.9 MB, free: 4.234 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2529, allocations: 7.625 kB / 215.9 MB, free: 4.234 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.275e-06/0.253, allocations: 0 / 215.9 MB, free: 4.234 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003466/0.2533, allocations: 78.77 kB / 216 MB, free: 4.215 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.2535, allocations: 21.36 kB / 216 MB, free: 4.215 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002534/0.256, allocations: 2.855 MB / 218.8 MB, free: 17.64 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.2563, allocations: 13.97 kB / 218.9 MB, free: 17.63 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.2563, allocations: 11.5 kB / 218.9 MB, free: 17.63 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealGTOThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real 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.0001929/0.2565, allocations: 124.7 kB / 219 MB, free: 17.51 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.533e-05/0.2566, allocations: 21.86 kB / 219 MB, free: 17.5 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.573e-05/0.2566, allocations: 27.12 kB / 219 MB, free: 17.48 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.954e-06/0.2567, allocations: 3.875 kB / 219 MB, free: 17.48 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.2567, allocations: 0 / 219 MB, free: 17.48 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.594e-06/0.2567, allocations: 3.938 kB / 219 MB, free: 17.48 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008667/0.2576, allocations: 0.5204 MB / 219.6 MB, free: 17.18 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.321e-06/0.2576, allocations: 0 / 219.6 MB, free: 17.18 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.2577, allocations: 21.19 kB / 219.6 MB, free: 17.18 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003083/0.258, allocations: 69.83 kB / 219.7 MB, free: 17.16 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.2581, allocations: 4.422 kB / 219.7 MB, free: 17.16 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002925/0.261, allocations: 2.787 MB / 222.4 MB, free: 14.65 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.142e-06/0.261, allocations: 1.281 kB / 222.4 MB, free: 14.65 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004391/0.2615, allocations: 300.7 kB / 222.7 MB, free: 14.46 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.2617, allocations: 113 kB / 222.8 MB, free: 14.36 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.2617, allocations: 3.953 kB / 222.9 MB, free: 14.35 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.262, allocations: 11.88 kB / 222.9 MB, free: 14.35 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.429e-05/0.2621, allocations: 27.11 kB / 222.9 MB, free: 14.35 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.2621, allocations: 7.844 kB / 222.9 MB, free: 14.35 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001532/0.2623, allocations: 141.3 kB / 223 MB, free: 14.27 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.2623, allocations: 0 / 223 MB, free: 14.27 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006361/0.2629, allocations: 69.75 kB / 223.1 MB, free: 14.26 MB / 186.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.0001387/0.2631, allocations: 102.3 kB / 223.2 MB, free: 14.17 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0005816/0.2637, allocations: 349.6 kB / 223.5 MB, free: 13.95 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.555e-06/0.2637, allocations: 0 / 223.5 MB, free: 13.95 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003595/0.2641, allocations: 303.4 kB / 223.8 MB, free: 13.73 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003909/0.2645, allocations: 40.03 kB / 223.9 MB, free: 13.73 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007371/0.2652, allocations: 277.7 kB / 224.2 MB, free: 13.57 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.2657, allocations: 0.7634 MB / 224.9 MB, free: 12.87 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.448e-05/0.2658, allocations: 13.44 kB / 224.9 MB, free: 12.86 MB / 186.7 MB Notification: Performance of SimCode: time 2.372e-06/0.2658, allocations: 0 / 224.9 MB, free: 12.86 MB / 186.7 MB Notification: Performance of Templates: time 0.006757/0.2725, allocations: 4.192 MB / 229.1 MB, free: 11.14 MB / 186.7 MB