Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.708/1.708, allocations: 171.1 MB / 186.1 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003689, allocations: 12 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08114/0.08155, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3582/0.4398, allocations: 68.08 MB / 340.2 MB, free: 4.727 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.4401, allocations: 68.03 kB / 340.3 MB, free: 4.691 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03475/0.4749, allocations: 4.777 MB / 345.1 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.734e-05/0.475, allocations: 0 / 345.1 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.269e-05/0.475, allocations: 15.94 kB / 345.1 MB, free: 0.5469 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0019/0.4769, allocations: 0.5635 MB / 345.6 MB, free: 15.95 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.477, allocations: 11.97 kB / 345.7 MB, free: 15.94 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.4771, allocations: 57.16 kB / 345.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.994e-05/0.4772, allocations: 31.62 kB / 345.7 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.4776, allocations: 253.2 kB / 346 MB, free: 15.58 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.4777, allocations: 17.38 kB / 346 MB, free: 15.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.457e-05/0.4778, allocations: 15.94 kB / 346 MB, free: 15.56 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.4789, allocations: 330.3 kB / 346.3 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.4789, allocations: 0 / 346.3 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.458e-05/0.479, allocations: 10.94 kB / 346.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.479, allocations: 4 kB / 346.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.4803, allocations: 286.8 kB / 346.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002843/0.4832, allocations: 1.274 MB / 347.9 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003399/0.4866, allocations: 482.6 kB / 348.4 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.4867, allocations: 0 / 348.4 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.4867, allocations: 46.31 kB / 348.4 MB, free: 13.42 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.214e-06/0.4868, allocations: 0 / 348.4 MB, free: 13.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.00945/0.4962, allocations: 1.139 MB / 349.6 MB, free: 12.33 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.4963, allocations: 51.41 kB / 349.6 MB, free: 12.27 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003719/0.4967, allocations: 202.3 kB / 349.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.336e-05/0.4968, allocations: 28.39 kB / 349.8 MB, free: 12.06 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.4969, allocations: 174.4 kB / 350 MB, free: 11.92 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.159e-05/0.497, allocations: 46.97 kB / 350.1 MB, free: 11.88 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/0.4971, allocations: 7.625 kB / 350.1 MB, free: 11.87 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.4972, allocations: 334 kB / 350.4 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006128/0.4979, allocations: 117.4 kB / 350.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007782/0.4987, allocations: 151.2 kB / 350.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.5001, allocations: 124 kB / 350.8 MB, free: 11.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.5002, allocations: 0 / 350.8 MB, free: 11.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.01239/0.5126, allocations: 0.7109 MB / 351.5 MB, free: 10.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.761e-05/0.5127, allocations: 9.562 kB / 351.5 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.5127, allocations: 0 / 351.5 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002338/0.5151, allocations: 238.3 kB / 351.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005696/0.5157, allocations: 39.48 kB / 351.8 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02479/0.5405, allocations: 2.702 MB / 354.5 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008972/0.5415, allocations: 43.7 kB / 354.5 MB, free: 7.711 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.827e-05/0.5416, allocations: 11.98 kB / 354.5 MB, free: 7.699 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (18): * Single equations (assignments): 17 * 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.0003939/0.542, allocations: 131.7 kB / 354.7 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/0.5422, allocations: 19.81 kB / 354.7 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001465/0.5424, allocations: 27.89 kB / 354.7 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.5424, allocations: 0 / 354.7 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.5424, allocations: 0 / 354.7 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.5425, allocations: 4 kB / 354.7 MB, free: 7.527 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.5436, allocations: 323.6 kB / 355 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.5437, allocations: 4 kB / 355 MB, free: 7.211 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005058/0.5442, allocations: 35.86 kB / 355.1 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002094/0.5463, allocations: 229.3 kB / 355.3 MB, free: 6.984 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.744e-05/0.5464, allocations: 7.984 kB / 355.3 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02432/0.5708, allocations: 2.689 MB / 358 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/0.5708, allocations: 7.984 kB / 358 MB, free: 4.391 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/0.584, allocations: 0.9062 MB / 358.9 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005026/0.5845, allocations: 116.2 kB / 359 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.5848, allocations: 3.953 kB / 359 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/0.5862, allocations: 42.97 kB / 359 MB, free: 3.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.5864, allocations: 11.98 kB / 359.1 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.704e-05/0.5866, allocations: 15.55 kB / 359.1 MB, free: 3.387 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006351/0.5872, allocations: 160 kB / 359.2 MB, free: 3.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.112e-06/0.5873, allocations: 0 / 359.2 MB, free: 3.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002062/0.5894, allocations: 87.2 kB / 359.3 MB, free: 3.168 MB / 282.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.01196/0.6014, allocations: 1.466 MB / 360.8 MB, free: 1.785 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005911/0.6073, allocations: 494.8 kB / 361.3 MB, free: 1.344 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.6074, allocations: 4.062 kB / 361.3 MB, free: 1.34 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004798/0.6123, allocations: 366 kB / 361.6 MB, free: 1 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000982/0.6133, allocations: 30.73 kB / 361.7 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/0.6252, allocations: 2.462 MB / 364.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.6257, allocations: 0.7556 MB / 364.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.6258, allocations: 17.55 kB / 364.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.626, allocations: 71.28 kB / 365 MB, free: 13.87 MB / 298.7 MB Notification: Performance of SimCode: time 1.283e-06/0.626, allocations: 0 / 365 MB, free: 13.87 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0448/0.6708, allocations: 6.617 MB / 371.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004423/0.6714, allocations: 213.5 kB / 371.8 MB, free: 7.094 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.932/3.603, allocations: 4 kB / 371.8 MB, free: 7.09 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat