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.OvervoltageProtection.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.01/1.01, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.591e-05, allocations: 7.984 kB / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05232/0.05238, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2241/0.2766, allocations: 34.75 MB / 208.1 MB, free: 4.926 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/0.2768, allocations: 63.92 kB / 208.2 MB, free: 4.926 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02182/0.2987, allocations: 4.48 MB / 212.7 MB, free: 4.312 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2987, allocations: 0 / 212.7 MB, free: 4.312 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.119e-05/0.2988, allocations: 8.344 kB / 212.7 MB, free: 4.309 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001469/0.3002, allocations: 0.5336 MB / 213.2 MB, free: 3.898 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.3003, allocations: 12.81 kB / 213.2 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.3005, allocations: 32.5 kB / 213.3 MB, free: 3.879 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003933/0.3009, allocations: 257.9 kB / 213.5 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.3009, allocations: 5.375 kB / 213.5 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.695e-05/0.301, allocations: 12 kB / 213.5 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000521/0.3015, allocations: 163.4 kB / 213.7 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005064/0.302, allocations: 226.1 kB / 213.9 MB, free: 3.582 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.3021, allocations: 3.938 kB / 213.9 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.3021, allocations: 0 / 213.9 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3021, allocations: 7.5 kB / 213.9 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002461/0.3046, allocations: 1.025 MB / 214.9 MB, free: 3.023 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.3068, allocations: 336.2 kB / 215.3 MB, free: 2.984 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.3071, allocations: 99.27 kB / 215.4 MB, free: 2.973 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.393e-05/0.3072, allocations: 1.875 kB / 215.4 MB, free: 2.973 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.3072, allocations: 37.06 kB / 215.4 MB, free: 2.934 MB / 170.7 MB Notification: Performance of pre-optimization done (n=14): time 3.397e-06/0.3072, allocations: 0 / 215.4 MB, free: 2.934 MB / 170.7 MB Notification: Performance of matching and sorting (n=14): time 0.004283/0.3115, allocations: 0.5165 MB / 215.9 MB, free: 2.863 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.3116, allocations: 51.41 kB / 216 MB, free: 2.801 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.3119, allocations: 179.3 kB / 216.2 MB, free: 2.703 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 5.827e-05/0.312, allocations: 25.7 kB / 216.2 MB, free: 2.672 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.033e-05/0.3121, allocations: 216 kB / 216.4 MB, free: 2.496 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.697e-05/0.3122, allocations: 51.67 kB / 216.4 MB, free: 2.461 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.175e-05/0.3122, allocations: 0 / 216.4 MB, free: 2.461 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.3123, allocations: 316.7 kB / 216.8 MB, free: 2.148 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.3124, allocations: 62.03 kB / 216.8 MB, free: 2.145 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.3126, allocations: 70.66 kB / 216.9 MB, free: 2.129 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.3128, allocations: 60.22 kB / 216.9 MB, free: 2.129 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3128, allocations: 2.484 kB / 216.9 MB, free: 2.129 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00416/0.317, allocations: 0.5234 MB / 217.5 MB, free: 2.062 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.3171, allocations: 3.875 kB / 217.5 MB, free: 2.062 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.3171, allocations: 0 / 217.5 MB, free: 2.062 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004605/0.3176, allocations: 135.6 kB / 217.6 MB, free: 2.047 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.3179, allocations: 41.2 kB / 217.6 MB, free: 2.043 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006891/0.3248, allocations: 2.089 MB / 219.7 MB, free: 0.5742 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004843/0.3253, allocations: 39.84 kB / 219.8 MB, free: 0.5586 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.3254, allocations: 3.875 kB / 219.8 MB, free: 0.5586 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: CL.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: zDiode_1.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001832/0.3256, allocations: 120.8 kB / 219.9 MB, free: 448 kB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003997/0.3296, allocations: 0.5135 MB / 220.4 MB, free: 276 kB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-05/0.3297, allocations: 19.41 kB / 220.4 MB, free: 264 kB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.325e-05/0.3298, allocations: 22.48 kB / 220.4 MB, free: 260 kB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.3298, allocations: 7.734 kB / 220.5 MB, free: 256 kB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3298, allocations: 0 / 220.5 MB, free: 256 kB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3298, allocations: 7.875 kB / 220.5 MB, free: 248 kB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004181/0.3302, allocations: 287.7 kB / 220.7 MB, free: 32 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3302, allocations: 0 / 220.7 MB, free: 32 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.3305, allocations: 27.05 kB / 220.8 MB, free: 28 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004677/0.331, allocations: 140.6 kB / 220.9 MB, free: 15.99 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/0.3311, allocations: 7.984 kB / 220.9 MB, free: 15.98 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007145/0.3382, allocations: 2.104 MB / 223 MB, free: 14.48 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3383, allocations: 0 / 223 MB, free: 14.48 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004456/0.3427, allocations: 0.7069 MB / 223.7 MB, free: 14.2 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.343, allocations: 111.5 kB / 223.8 MB, free: 14.09 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.006e-05/0.343, allocations: 0 / 223.8 MB, free: 14.09 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004941/0.3435, allocations: 34.66 kB / 223.9 MB, free: 14.08 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.3436, allocations: 15.86 kB / 223.9 MB, free: 14.07 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/0.3437, allocations: 11.73 kB / 223.9 MB, free: 14.07 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001638/0.3438, allocations: 138.3 kB / 224 MB, free: 13.98 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.3438, allocations: 0 / 224 MB, free: 13.98 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006524/0.3445, allocations: 80.69 kB / 224.1 MB, free: 13.97 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.004811/0.3493, allocations: 1.238 MB / 225.3 MB, free: 13.17 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.3511, allocations: 357.4 kB / 225.7 MB, free: 13.02 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3511, allocations: 0 / 225.7 MB, free: 13.02 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.3525, allocations: 285.4 kB / 226 MB, free: 12.88 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005472/0.353, allocations: 34.84 kB / 226 MB, free: 12.88 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.3543, allocations: 411.8 kB / 226.4 MB, free: 12.58 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.3547, allocations: 0.7498 MB / 227.2 MB, free: 11.85 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.3548, allocations: 71.16 kB / 227.2 MB, free: 11.83 MB / 186.7 MB Notification: Performance of SimCode: time 9.92e-07/0.3548, allocations: 0 / 227.2 MB, free: 11.83 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.707/3.062, allocations: 4.889 MB / 232.1 MB, free: 9.391 MB / 186.7 MB