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 1.009/1.009, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002525, allocations: 4 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05277/0.05306, allocations: 25.17 MB / 183.6 MB, free: 5.863 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2318/0.2849, allocations: 36.69 MB / 220.3 MB, free: 5.617 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.2852, allocations: 62.91 kB / 220.3 MB, free: 5.609 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03159/0.3168, allocations: 8.165 MB / 228.5 MB, free: 2.324 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3168, allocations: 0 / 228.5 MB, free: 2.324 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.14e-05/0.3169, allocations: 12 kB / 228.5 MB, free: 2.312 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.001793/0.3187, allocations: 0.8274 MB / 229.3 MB, free: 1.473 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.3187, allocations: 8.031 kB / 229.4 MB, free: 1.465 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000222/0.319, allocations: 113.8 kB / 229.5 MB, free: 1.379 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.3191, allocations: 71.16 kB / 229.5 MB, free: 1.309 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005899/0.3197, allocations: 376.1 kB / 229.9 MB, free: 0.9414 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.355e-05/0.3198, allocations: 38.31 kB / 229.9 MB, free: 0.918 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.3199, allocations: 59.25 kB / 230 MB, free: 0.8789 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.3212, allocations: 0.5652 MB / 230.6 MB, free: 464 kB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.3213, allocations: 7.938 kB / 230.6 MB, free: 456 kB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.606e-05/0.3213, allocations: 21.81 kB / 230.6 MB, free: 452 kB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.3214, allocations: 12 kB / 230.6 MB, free: 440 kB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.3227, allocations: 476.6 kB / 231.1 MB, free: 112 kB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004595/0.3273, allocations: 2.119 MB / 233.2 MB, free: 14.32 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.3288, allocations: 0.6372 MB / 233.8 MB, free: 13.88 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.963e-05/0.3289, allocations: 8.125 kB / 233.8 MB, free: 13.88 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.3289, allocations: 37.75 kB / 233.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of pre-optimization done (n=60): time 3.406e-06/0.3289, allocations: 0 / 233.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.006792/0.3357, allocations: 1.986 MB / 235.9 MB, free: 12.14 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.3358, allocations: 55.97 kB / 235.9 MB, free: 12.07 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005915/0.3364, allocations: 333.2 kB / 236.2 MB, free: 11.79 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 7.224e-05/0.3365, allocations: 41.27 kB / 236.3 MB, free: 11.76 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.3367, allocations: 280.1 kB / 236.6 MB, free: 11.53 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000224/0.337, allocations: 204.3 kB / 236.8 MB, free: 11.36 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/0.337, allocations: 7.875 kB / 236.8 MB, free: 11.36 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.3372, allocations: 334.5 kB / 237.1 MB, free: 11.03 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005739/0.3378, allocations: 174.2 kB / 237.3 MB, free: 10.92 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000597/0.3384, allocations: 211.4 kB / 237.5 MB, free: 10.77 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006023/0.339, allocations: 183.9 kB / 237.6 MB, free: 10.66 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.339, allocations: 0 / 237.6 MB, free: 10.66 MB / 186.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001993/0.341, allocations: 0.6534 MB / 238.3 MB, free: 10.18 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.3411, allocations: 4 kB / 238.3 MB, free: 10.18 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3411, allocations: 0 / 238.3 MB, free: 10.18 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001183/0.3423, allocations: 256.4 kB / 238.5 MB, free: 9.973 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.3428, allocations: 59.95 kB / 238.6 MB, free: 9.914 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009606/0.3524, allocations: 6.843 MB / 245.5 MB, free: 3.301 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005564/0.353, allocations: 22.89 kB / 245.5 MB, free: 3.285 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.943e-05/0.3531, allocations: 11.91 kB / 245.5 MB, free: 3.277 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: Inductor3.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real Inductor2.i:VARIABLE(unit = "A" fixed = true ) "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 () * Number of clocked 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.0004513/0.3536, allocations: 190.3 kB / 245.7 MB, free: 3.117 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.3537, allocations: 59.39 kB / 245.7 MB, free: 3.059 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000156/0.3539, allocations: 62.09 kB / 245.8 MB, free: 3.035 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.3539, allocations: 4 kB / 245.8 MB, free: 3.031 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.3539, allocations: 4 kB / 245.8 MB, free: 3.027 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.3539, allocations: 3.984 kB / 245.8 MB, free: 3.023 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003424/0.3574, allocations: 1.362 MB / 247.2 MB, free: 1.879 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.3574, allocations: 4 kB / 247.2 MB, free: 1.875 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005368/0.358, allocations: 59.89 kB / 247.2 MB, free: 1.816 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001181/0.3592, allocations: 259.1 kB / 247.5 MB, free: 1.551 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.967e-05/0.3593, allocations: 15.95 kB / 247.5 MB, free: 1.535 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009846/0.3691, allocations: 6.837 MB / 254.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.3692, allocations: 3.953 kB / 254.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003023/0.3722, allocations: 1.037 MB / 255.4 MB, free: 9.094 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/0.3726, allocations: 156.6 kB / 255.5 MB, free: 8.922 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.3727, allocations: 20.44 kB / 255.5 MB, free: 8.902 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004563/0.3732, allocations: 19.98 kB / 255.6 MB, free: 8.883 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.3734, allocations: 52.42 kB / 255.6 MB, free: 8.828 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.949e-05/0.3735, allocations: 23.98 kB / 255.6 MB, free: 8.805 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0004484/0.374, allocations: 259.2 kB / 255.9 MB, free: 8.555 MB / 202.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.374, allocations: 0 / 255.9 MB, free: 8.555 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.00126/0.3752, allocations: 176 kB / 256.1 MB, free: 8.383 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 () * Number of clocked 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.003466/0.3787, allocations: 1.605 MB / 257.7 MB, free: 6.742 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002564/0.3813, allocations: 1.05 MB / 258.7 MB, free: 5.641 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3814, allocations: 0 / 258.7 MB, free: 5.641 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.3832, allocations: 0.8452 MB / 259.6 MB, free: 4.742 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009647/0.3842, allocations: 105.4 kB / 259.7 MB, free: 4.641 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008697/0.393, allocations: 3.538 MB / 263.2 MB, free: 1.031 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006676/0.3937, allocations: 0.9026 MB / 264.1 MB, free: 104 kB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004215/0.3941, allocations: 183.4 kB / 264.3 MB, free: 15.92 MB / 218.7 MB Notification: Performance of SimCode: time 3.496e-06/0.3941, allocations: 0 / 264.3 MB, free: 15.92 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.883/3.277, allocations: 15.89 MB / 280.2 MB, free: 24 kB / 218.7 MB