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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.054/1.054, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00028/0.00028, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05827/0.05859, allocations: 25.18 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003592/0.06222, allocations: 2.078 MB / 185.6 MB, free: 3.836 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.06388, allocations: 0.5812 MB / 186.2 MB, free: 3.254 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002005/0.06411, allocations: 4 kB / 186.2 MB, free: 3.25 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 9.122e-05/0.06422, allocations: 35.75 kB / 186.2 MB, free: 3.215 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003182/0.06455, allocations: 107.6 kB / 186.3 MB, free: 3.109 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003682/0.06493, allocations: 71.89 kB / 186.4 MB, free: 3.039 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004454/0.06539, allocations: 239.5 kB / 186.6 MB, free: 2.805 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.06563, allocations: 77.06 kB / 186.7 MB, free: 2.73 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.06591, allocations: 119.6 kB / 186.8 MB, free: 2.613 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.06619, allocations: 135.5 kB / 186.9 MB, free: 2.48 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 5.383e-05/0.06626, allocations: 16 kB / 187 MB, free: 2.465 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.195e-05/0.06634, allocations: 16 kB / 187 MB, free: 2.449 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 7.798e-05/0.06643, allocations: 59.73 kB / 187 MB, free: 2.391 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.06657, allocations: 69.58 kB / 187.1 MB, free: 2.316 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003749/0.06695, allocations: 243.3 kB / 187.3 MB, free: 2.078 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.06697, allocations: 0 / 187.3 MB, free: 2.078 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.06698, allocations: 4 kB / 187.3 MB, free: 2.074 MB / 154.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.067, allocations: 0 / 187.3 MB, free: 2.074 MB / 154.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.002159/0.06917, allocations: 0.6157 MB / 188 MB, free: 1.41 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.06924, allocations: 12.03 kB / 188 MB, free: 1.398 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.06936, allocations: 58.53 kB / 188 MB, free: 1.332 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.945e-05/0.06947, allocations: 27.72 kB / 188.1 MB, free: 1.305 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.06989, allocations: 247.5 kB / 188.3 MB, free: 1.02 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.06993, allocations: 12.44 kB / 188.3 MB, free: 1.008 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.799e-05/0.07001, allocations: 20 kB / 188.3 MB, free: 0.9883 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.07112, allocations: 306.6 kB / 188.6 MB, free: 0.6758 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.07115, allocations: 0 / 188.6 MB, free: 0.6758 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.086e-05/0.07121, allocations: 15.95 kB / 188.6 MB, free: 0.6602 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.07123, allocations: 7.938 kB / 188.7 MB, free: 0.6523 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.07262, allocations: 293.5 kB / 188.9 MB, free: 376 kB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002839/0.07548, allocations: 1.077 MB / 190 MB, free: 15.21 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/0.07901, allocations: 486.3 kB / 190.5 MB, free: 14.72 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.654e-05/0.07909, allocations: 4 kB / 190.5 MB, free: 14.72 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/0.07914, allocations: 34.56 kB / 190.5 MB, free: 14.68 MB / 170.7 MB Notification: Performance of pre-optimization done (n=14): time 2.936e-06/0.07916, allocations: 0 / 190.5 MB, free: 14.68 MB / 170.7 MB Notification: Performance of matching and sorting (n=14): time 0.009417/0.08858, allocations: 1.159 MB / 191.7 MB, free: 13.49 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.08866, allocations: 51.41 kB / 191.7 MB, free: 13.43 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003652/0.08904, allocations: 217 kB / 192 MB, free: 13.2 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 5.436e-05/0.0891, allocations: 25.7 kB / 192 MB, free: 13.17 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.08928, allocations: 222.5 kB / 192.2 MB, free: 12.95 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.846e-05/0.08936, allocations: 43.36 kB / 192.2 MB, free: 12.91 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.376e-05/0.08939, allocations: 4 kB / 192.2 MB, free: 12.91 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.08955, allocations: 318.8 kB / 192.6 MB, free: 12.59 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006142/0.09017, allocations: 111.9 kB / 192.7 MB, free: 12.48 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006539/0.09085, allocations: 141.5 kB / 192.8 MB, free: 12.33 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006458/0.09151, allocations: 117.8 kB / 192.9 MB, free: 12.22 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.09153, allocations: 0 / 192.9 MB, free: 12.22 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.005392/0.09693, allocations: 0.6815 MB / 193.6 MB, free: 11.53 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.09699, allocations: 4 kB / 193.6 MB, free: 11.52 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.09701, allocations: 4 kB / 193.6 MB, free: 11.52 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00123/0.09825, allocations: 228.7 kB / 193.8 MB, free: 11.29 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/0.09861, allocations: 35.92 kB / 193.9 MB, free: 11.26 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01242/0.111, allocations: 2.689 MB / 196.6 MB, free: 8.438 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005083/0.1116, allocations: 43.91 kB / 196.6 MB, free: 8.395 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.1116, allocations: 11.95 kB / 196.6 MB, free: 8.383 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: CL.v:VARIABLE(unit = "V" fixed = true ) "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 () * Number of clocked 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.0002562/0.1119, allocations: 137.8 kB / 196.7 MB, free: 8.238 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.121e-05/0.112, allocations: 15.81 kB / 196.8 MB, free: 8.223 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.551e-05/0.1121, allocations: 25.84 kB / 196.8 MB, free: 8.195 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.1121, allocations: 15.86 kB / 196.8 MB, free: 8.18 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1121, allocations: 0 / 196.8 MB, free: 8.18 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1121, allocations: 0 / 196.8 MB, free: 8.18 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006036/0.1127, allocations: 329.3 kB / 197.1 MB, free: 7.809 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1128, allocations: 0 / 197.1 MB, free: 7.809 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/0.1131, allocations: 27.98 kB / 197.1 MB, free: 7.781 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.1142, allocations: 232.7 kB / 197.4 MB, free: 7.551 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.344e-05/0.1143, allocations: 7.938 kB / 197.4 MB, free: 7.543 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01255/0.1269, allocations: 2.689 MB / 200.1 MB, free: 4.715 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1269, allocations: 3.984 kB / 200.1 MB, free: 4.711 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006225/0.1332, allocations: 0.9137 MB / 201 MB, free: 3.777 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002162/0.1334, allocations: 112.8 kB / 201.1 MB, free: 3.648 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.887e-05/0.1335, allocations: 4 kB / 201.1 MB, free: 3.645 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005182/0.1341, allocations: 35.97 kB / 201.1 MB, free: 3.609 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.615e-05/0.1342, allocations: 16.05 kB / 201.2 MB, free: 3.594 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-05/0.1342, allocations: 3.984 kB / 201.2 MB, free: 3.59 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002551/0.1345, allocations: 160.5 kB / 201.3 MB, free: 3.43 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.1345, allocations: 0 / 201.3 MB, free: 3.43 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006309/0.1351, allocations: 75.84 kB / 201.4 MB, free: 3.355 MB / 170.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 () * Number of clocked 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.006578/0.1417, allocations: 1.461 MB / 202.8 MB, free: 1.863 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002866/0.1446, allocations: 486.5 kB / 203.3 MB, free: 1.375 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.1447, allocations: 0 / 203.3 MB, free: 1.375 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002117/0.1468, allocations: 367.3 kB / 203.7 MB, free: 1.004 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000708/0.1476, allocations: 48.62 kB / 203.7 MB, free: 0.957 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1495/0.2971, allocations: 1.987 MB / 205.7 MB, free: 24.18 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.2974, allocations: 0.7513 MB / 206.5 MB, free: 23.48 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.2976, allocations: 67.86 kB / 206.5 MB, free: 23.48 MB / 170.7 MB Notification: Performance of SimCode: time 1.082e-06/0.2976, allocations: 0 / 206.5 MB, free: 23.48 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.517/2.815, allocations: 5.044 MB / 211.6 MB, free: 22.25 MB / 170.7 MB