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.Rectifier.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.Rectifier,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9874/0.9874, allocations: 111.2 MB / 124.2 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.336e-05/3.359e-05, allocations: 4 kB / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1778, allocations: 25.15 MB / 179.5 MB, free: 0.7852 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07476/0.2526, allocations: 36.59 MB / 216.1 MB, free: 12.49 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.2529, allocations: 71.95 kB / 216.2 MB, free: 12.42 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03596/0.2889, allocations: 8.19 MB / 224.4 MB, free: 4.223 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.289, allocations: 0 / 224.4 MB, free: 4.223 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.647e-05/0.289, allocations: 16 kB / 224.4 MB, free: 4.207 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001937/0.291, allocations: 0.7635 MB / 225.2 MB, free: 3.398 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/0.291, allocations: 8.031 kB / 225.2 MB, free: 3.391 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002297/0.2913, allocations: 111.6 kB / 225.3 MB, free: 3.27 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.2915, allocations: 71.16 kB / 225.3 MB, free: 3.199 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007029/0.2922, allocations: 375.3 kB / 225.7 MB, free: 2.797 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/0.2922, allocations: 41.31 kB / 225.7 MB, free: 2.758 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.2924, allocations: 52 kB / 225.8 MB, free: 2.707 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.2938, allocations: 0.546 MB / 226.3 MB, free: 2.133 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.2939, allocations: 0 / 226.3 MB, free: 2.133 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.885e-05/0.294, allocations: 20 kB / 226.4 MB, free: 2.113 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.527e-05/0.294, allocations: 16 kB / 226.4 MB, free: 2.098 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.2953, allocations: 425 kB / 226.8 MB, free: 1.684 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005393/0.3007, allocations: 2.114 MB / 228.9 MB, free: 15.48 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.3022, allocations: 0.6114 MB / 229.5 MB, free: 14.84 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008844/0.3031, allocations: 381.8 kB / 229.9 MB, free: 14.46 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.024e-05/0.3032, allocations: 12.52 kB / 229.9 MB, free: 14.45 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.509e-05/0.3032, allocations: 39.12 kB / 229.9 MB, free: 14.41 MB / 202.7 MB Notification: Performance of pre-optimization done (n=60): time 2.995e-06/0.3032, allocations: 0 / 229.9 MB, free: 14.41 MB / 202.7 MB Notification: Performance of matching and sorting (n=61): time 0.003439/0.3067, allocations: 1.252 MB / 231.2 MB, free: 13.09 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.3068, allocations: 55.97 kB / 231.2 MB, free: 13.02 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005699/0.3074, allocations: 322.8 kB / 231.6 MB, free: 12.7 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 5.379e-05/0.3074, allocations: 33.7 kB / 231.6 MB, free: 12.66 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002019/0.3076, allocations: 287.5 kB / 231.9 MB, free: 12.38 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002173/0.3079, allocations: 201.1 kB / 232.1 MB, free: 12.18 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.3079, allocations: 12 kB / 232.1 MB, free: 12.17 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.3081, allocations: 330.8 kB / 232.4 MB, free: 11.84 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004448/0.3085, allocations: 157.1 kB / 232.6 MB, free: 11.68 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004824/0.309, allocations: 187.9 kB / 232.7 MB, free: 11.49 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004765/0.3095, allocations: 152.4 kB / 232.9 MB, free: 11.34 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3095, allocations: 7.984 kB / 232.9 MB, free: 11.34 MB / 202.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001801/0.3114, allocations: 0.5995 MB / 233.5 MB, free: 10.71 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.3114, allocations: 8 kB / 233.5 MB, free: 10.71 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3114, allocations: 0 / 233.5 MB, free: 10.71 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.3127, allocations: 255.2 kB / 233.8 MB, free: 10.45 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005605/0.3132, allocations: 63.91 kB / 233.8 MB, free: 10.38 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009586/0.3228, allocations: 6.761 MB / 240.6 MB, free: 3.086 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005694/0.3235, allocations: 20.03 kB / 240.6 MB, free: 3.066 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.07e-05/0.3235, allocations: 12 kB / 240.6 MB, free: 3.055 MB / 202.7 MB Warning: Assuming fixed start value for the following 2 variables: Inductor3.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Inductor2.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" 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: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002636/0.3238, allocations: 139.7 kB / 240.7 MB, free: 2.914 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.324, allocations: 51.44 kB / 240.8 MB, free: 2.863 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001757/0.3242, allocations: 69.09 kB / 240.9 MB, free: 2.797 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.3242, allocations: 8 kB / 240.9 MB, free: 2.789 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.3242, allocations: 0 / 240.9 MB, free: 2.789 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.3242, allocations: 3.984 kB / 240.9 MB, free: 2.785 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/0.3276, allocations: 1.314 MB / 242.2 MB, free: 1.406 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.3276, allocations: 4 kB / 242.2 MB, free: 1.402 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000555/0.3282, allocations: 56.28 kB / 242.3 MB, free: 1.348 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001175/0.3294, allocations: 263.1 kB / 242.5 MB, free: 1.078 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.953e-05/0.3295, allocations: 8 kB / 242.5 MB, free: 1.07 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1514/0.4809, allocations: 6.75 MB / 249.3 MB, free: 46.69 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.481, allocations: 5.531 kB / 249.3 MB, free: 46.69 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002306/0.4833, allocations: 0.9736 MB / 250.2 MB, free: 46.52 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.4836, allocations: 159.4 kB / 250.4 MB, free: 46.43 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.478e-05/0.4837, allocations: 8.062 kB / 250.4 MB, free: 46.43 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004643/0.4842, allocations: 30.38 kB / 250.4 MB, free: 46.43 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.4844, allocations: 53.5 kB / 250.5 MB, free: 46.43 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.4845, allocations: 14.66 kB / 250.5 MB, free: 46.43 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003501/0.4848, allocations: 255.9 kB / 250.8 MB, free: 46.34 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4849, allocations: 0 / 250.8 MB, free: 46.34 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001147/0.486, allocations: 176.6 kB / 250.9 MB, free: 46.34 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003989/0.49, allocations: 1.548 MB / 252.5 MB, free: 45.62 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003076/0.4932, allocations: 0.983 MB / 253.5 MB, free: 45.15 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.4932, allocations: 2.688 kB / 253.5 MB, free: 45.15 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002313/0.4955, allocations: 0.8188 MB / 254.3 MB, free: 44.55 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.497, allocations: 105 kB / 254.4 MB, free: 44.52 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004386/0.5014, allocations: 1.084 MB / 255.5 MB, free: 43.98 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006/0.5021, allocations: 0.8974 MB / 256.4 MB, free: 43.27 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005355/0.5026, allocations: 180.9 kB / 256.5 MB, free: 43.13 MB / 202.7 MB Notification: Performance of SimCode: time 2.895e-06/0.5027, allocations: 3.938 kB / 256.5 MB, free: 43.13 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.066/3.569, allocations: 15.87 MB / 272.4 MB, free: 30.92 MB / 202.7 MB