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/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.Rectifier,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.008/1.008, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.289e-05/2.297e-05, allocations: 4 kB / 148.2 MB, free: 6.113 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05364/0.0537, allocations: 25.16 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2399/0.2937, allocations: 35.93 MB / 209.3 MB, free: 4.676 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.294, allocations: 61.78 kB / 209.4 MB, free: 4.676 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03444/0.3284, allocations: 8.101 MB / 217.5 MB, free: 3.027 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3285, allocations: 0 / 217.5 MB, free: 3.027 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.279e-05/0.3285, allocations: 11.62 kB / 217.5 MB, free: 3.027 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001681/0.3302, allocations: 0.7592 MB / 218.2 MB, free: 2.461 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.3303, allocations: 11.72 kB / 218.3 MB, free: 2.461 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.3305, allocations: 66.31 kB / 218.3 MB, free: 2.426 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006667/0.3312, allocations: 375.1 kB / 218.7 MB, free: 2.129 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.3312, allocations: 15.5 kB / 218.7 MB, free: 2.129 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.141e-05/0.3313, allocations: 31.12 kB / 218.7 MB, free: 2.129 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009705/0.3323, allocations: 370.7 kB / 219.1 MB, free: 2.109 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009999/0.3333, allocations: 446.7 kB / 219.5 MB, free: 1.949 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.3334, allocations: 4 kB / 219.5 MB, free: 1.945 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.418e-05/0.3334, allocations: 3.938 kB / 219.5 MB, free: 1.941 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.3335, allocations: 15.47 kB / 219.6 MB, free: 1.941 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003972/0.3374, allocations: 1.966 MB / 221.5 MB, free: 0.7461 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.3385, allocations: 0.5844 MB / 222.1 MB, free: 0.5898 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006578/0.3392, allocations: 363.9 kB / 222.5 MB, free: 0.5664 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.446e-05/0.3393, allocations: 6.969 kB / 222.5 MB, free: 0.5664 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.3393, allocations: 42.28 kB / 222.5 MB, free: 0.5234 MB / 170.7 MB Notification: Performance of pre-optimization done (n=60): time 4.228e-06/0.3393, allocations: 0 / 222.5 MB, free: 0.5234 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.002736/0.3421, allocations: 1.143 MB / 223.7 MB, free: 32 kB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.3422, allocations: 55.84 kB / 223.7 MB, free: 15.97 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/0.3426, allocations: 277.3 kB / 224 MB, free: 15.85 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.598e-05/0.3427, allocations: 29.69 kB / 224 MB, free: 15.81 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001943/0.3429, allocations: 278.2 kB / 224.3 MB, free: 15.6 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/0.3431, allocations: 197.7 kB / 224.5 MB, free: 15.45 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-05/0.3431, allocations: 0 / 224.5 MB, free: 15.45 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3433, allocations: 333.2 kB / 224.8 MB, free: 15.13 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.3437, allocations: 133.1 kB / 224.9 MB, free: 15.12 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000381/0.3441, allocations: 178.7 kB / 225.1 MB, free: 15.1 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/0.3445, allocations: 154.6 kB / 225.3 MB, free: 15.07 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.3445, allocations: 0 / 225.3 MB, free: 15.07 MB / 186.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001468/0.346, allocations: 0.539 MB / 225.8 MB, free: 14.93 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.917e-05/0.3461, allocations: 11.58 kB / 225.8 MB, free: 14.93 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.3461, allocations: 4 kB / 225.8 MB, free: 14.93 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.3473, allocations: 243.5 kB / 226 MB, free: 14.85 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.3479, allocations: 66.11 kB / 226.1 MB, free: 14.84 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008952/0.3568, allocations: 6.511 MB / 232.6 MB, free: 9.383 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005742/0.3574, allocations: 11.8 kB / 232.6 MB, free: 9.379 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.763e-05/0.3575, allocations: 21.25 kB / 232.7 MB, free: 9.375 MB / 186.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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealDiode3.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real IdealDiode6.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: IdealDiode2.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real IdealDiode5.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: IdealDiode1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real IdealDiode4.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: 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.0003041/0.3578, allocations: 133 kB / 232.8 MB, free: 9.246 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001407/0.3593, allocations: 0.5498 MB / 233.3 MB, free: 9.094 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.3594, allocations: 46.91 kB / 233.4 MB, free: 9.07 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001631/0.3596, allocations: 53.86 kB / 233.4 MB, free: 9.055 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3596, allocations: 7.875 kB / 233.4 MB, free: 9.051 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3597, allocations: 3.875 kB / 233.4 MB, free: 9.051 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.3597, allocations: 3.984 kB / 233.4 MB, free: 9.047 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00279/0.3625, allocations: 1.178 MB / 234.6 MB, free: 8.539 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.3625, allocations: 0 / 234.6 MB, free: 8.539 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005676/0.3631, allocations: 62.39 kB / 234.7 MB, free: 8.52 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001118/0.3642, allocations: 245.9 kB / 234.9 MB, free: 8.445 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.341e-05/0.3644, allocations: 0 / 234.9 MB, free: 8.445 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008913/0.3733, allocations: 6.523 MB / 241.4 MB, free: 2.977 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.3734, allocations: 0 / 241.4 MB, free: 2.977 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002222/0.3756, allocations: 0.9156 MB / 242.4 MB, free: 2.633 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00038/0.376, allocations: 159.9 kB / 242.5 MB, free: 2.477 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.11e-05/0.3761, allocations: 4.062 kB / 242.5 MB, free: 2.473 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004527/0.3766, allocations: 19.55 kB / 242.5 MB, free: 2.461 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/0.3768, allocations: 51.64 kB / 242.6 MB, free: 2.434 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-05/0.3769, allocations: 15.69 kB / 242.6 MB, free: 2.43 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000353/0.3772, allocations: 220.3 kB / 242.8 MB, free: 2.289 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.62e-07/0.3773, allocations: 0 / 242.8 MB, free: 2.289 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001999/0.3793, allocations: 148.9 kB / 243 MB, free: 2.289 MB / 186.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.003576/0.3829, allocations: 1.464 MB / 244.4 MB, free: 1.223 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002658/0.3856, allocations: 0.9329 MB / 245.4 MB, free: 368 kB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.3856, allocations: 4.062 kB / 245.4 MB, free: 364 kB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002134/0.3878, allocations: 0.7701 MB / 246.1 MB, free: 15.55 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.389, allocations: 65.5 kB / 246.2 MB, free: 15.48 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004802/0.3938, allocations: 1.022 MB / 247.2 MB, free: 14.42 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009258/0.3948, allocations: 0.8828 MB / 248.1 MB, free: 13.51 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005831/0.3954, allocations: 183.3 kB / 248.3 MB, free: 13.33 MB / 202.7 MB Notification: Performance of SimCode: time 1.323e-06/0.3954, allocations: 0 / 248.3 MB, free: 13.33 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.112/3.507, allocations: 15.29 MB / 263.6 MB, free: 14.04 MB / 218.7 MB