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.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadModel(Modelica): time 0.9419/0.9419, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.325e-05/1.334e-05, allocations: 0 / 148.1 MB, free: 6.227 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04526/0.0453, allocations: 25.18 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2266/0.272, allocations: 34.61 MB / 207.9 MB, free: 7.02 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001665/0.2722, allocations: 64.14 kB / 208 MB, free: 7.02 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02048/0.2927, allocations: 5.894 MB / 213.9 MB, free: 6.258 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.158e-06/0.2927, allocations: 0 / 213.9 MB, free: 6.258 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.323e-05/0.2928, allocations: 7.625 kB / 213.9 MB, free: 6.258 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008289/0.2936, allocations: 0.6105 MB / 214.5 MB, free: 5.812 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.2936, allocations: 7.625 kB / 214.5 MB, free: 5.812 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.2938, allocations: 50.19 kB / 214.5 MB, free: 5.789 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.2941, allocations: 298 kB / 214.8 MB, free: 5.555 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.2942, allocations: 7.75 kB / 214.8 MB, free: 5.555 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.021e-05/0.2942, allocations: 25.22 kB / 214.9 MB, free: 5.551 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000505/0.2947, allocations: 212.8 kB / 215.1 MB, free: 5.551 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005506/0.2953, allocations: 293.7 kB / 215.4 MB, free: 5.469 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.2953, allocations: 3.938 kB / 215.4 MB, free: 5.465 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.2954, allocations: 0 / 215.4 MB, free: 5.465 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2954, allocations: 14.52 kB / 215.4 MB, free: 5.461 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002492/0.2979, allocations: 1.37 MB / 216.7 MB, free: 4.691 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006622/0.2986, allocations: 193.1 kB / 216.9 MB, free: 4.664 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.2989, allocations: 83.98 kB / 217 MB, free: 4.656 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.299, allocations: 3.938 kB / 217 MB, free: 4.656 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.299, allocations: 43.53 kB / 217.1 MB, free: 4.613 MB / 170.7 MB Notification: Performance of pre-optimization done (n=24): time 3.32e-06/0.299, allocations: 0 / 217.1 MB, free: 4.613 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005465/0.2996, allocations: 244.7 kB / 217.3 MB, free: 4.535 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.832e-05/0.2996, allocations: 55.28 kB / 217.4 MB, free: 4.473 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 SineVoltage3.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Sources.mo:361:5-361:68:writable] Warning: Parameter SineVoltage2.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Ideal.mo:1014:11-1015:34:writable] Warning: Parameter With_Ron_Goff.Vknee has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Ideal.mo:1014:11-1015:34:writable] Warning: Parameter Ideal.Vknee has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.3, allocations: 255.8 kB / 217.6 MB, free: 4.371 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.3, allocations: 25.7 kB / 217.6 MB, free: 4.34 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.321e-05/0.3001, allocations: 267.2 kB / 217.9 MB, free: 4.133 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.263e-05/0.3002, allocations: 75.61 kB / 218 MB, free: 4.086 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.484e-05/0.3002, allocations: 0 / 218 MB, free: 4.086 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.425e-05/0.3003, allocations: 324.2 kB / 218.3 MB, free: 3.77 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.3004, allocations: 59.8 kB / 218.3 MB, free: 3.77 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.3006, allocations: 95.75 kB / 218.4 MB, free: 3.73 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.3008, allocations: 67.41 kB / 218.5 MB, free: 3.723 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.141e-06/0.3008, allocations: 0 / 218.5 MB, free: 3.723 MB / 170.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007298/0.3015, allocations: 286.9 kB / 218.8 MB, free: 3.641 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.3016, allocations: 7.625 kB / 218.8 MB, free: 3.641 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.6e-06/0.3016, allocations: 0 / 218.8 MB, free: 3.641 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004603/0.3021, allocations: 116 kB / 218.9 MB, free: 3.613 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.3023, allocations: 32.53 kB / 218.9 MB, free: 3.613 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003897/0.3062, allocations: 4.282 MB / 223.2 MB, free: 15.72 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.3065, allocations: 17.84 kB / 223.2 MB, free: 15.71 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.3066, allocations: 10.64 kB / 223.2 MB, free: 15.71 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: With_Ron_Goff_Vknee.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: With_Ron_Goff.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: Ideal.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: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.3068, allocations: 113.7 kB / 223.4 MB, free: 15.6 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.87e-05/0.3069, allocations: 40.08 kB / 223.4 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.517e-05/0.3069, allocations: 34.89 kB / 223.4 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.269e-06/0.307, allocations: 3.188 kB / 223.4 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.893e-06/0.307, allocations: 0 / 223.4 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.286e-06/0.307, allocations: 0 / 223.4 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004635/0.3075, allocations: 322.9 kB / 223.7 MB, free: 15.34 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.183e-06/0.3075, allocations: 0 / 223.7 MB, free: 15.34 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.3076, allocations: 19.98 kB / 223.8 MB, free: 15.34 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004033/0.3081, allocations: 121.7 kB / 223.9 MB, free: 15.29 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.3081, allocations: 4 kB / 223.9 MB, free: 15.29 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004226/0.3123, allocations: 4.26 MB / 228.1 MB, free: 11.31 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.219e-06/0.3124, allocations: 0 / 228.1 MB, free: 11.31 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005714/0.3129, allocations: 359.2 kB / 228.5 MB, free: 11.11 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.3131, allocations: 127.1 kB / 228.6 MB, free: 10.98 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/0.3132, allocations: 3.875 kB / 228.6 MB, free: 10.98 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/0.3135, allocations: 23.3 kB / 228.6 MB, free: 10.98 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.041e-05/0.3136, allocations: 27.2 kB / 228.7 MB, free: 10.96 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.3136, allocations: 7.438 kB / 228.7 MB, free: 10.96 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002513/0.3139, allocations: 196.6 kB / 228.9 MB, free: 10.87 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.65e-07/0.3139, allocations: 0 / 228.9 MB, free: 10.87 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0008941/0.3148, allocations: 104.7 kB / 229 MB, free: 10.86 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 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001437/0.315, allocations: 110.3 kB / 229.1 MB, free: 10.76 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007834/0.3158, allocations: 0.4926 MB / 229.6 MB, free: 10.42 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.043e-06/0.3158, allocations: 3.719 kB / 229.6 MB, free: 10.42 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004795/0.3163, allocations: 436.9 kB / 230 MB, free: 10.08 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004735/0.3168, allocations: 58.69 kB / 230.1 MB, free: 10.06 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008808/0.3177, allocations: 410.2 kB / 230.5 MB, free: 9.824 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.3182, allocations: 0.8036 MB / 231.3 MB, free: 9.066 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.833e-05/0.3183, allocations: 19.03 kB / 231.3 MB, free: 9.059 MB / 186.7 MB Notification: Performance of SimCode: time 1.492e-06/0.3183, allocations: 0 / 231.3 MB, free: 9.059 MB / 186.7 MB Notification: Performance of Templates: time 0.01138/0.3297, allocations: 7.827 MB / 239.1 MB, free: 5.082 MB / 186.7 MB