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.104/1.104, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002919, allocations: 12 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05951/0.05984, allocations: 25.17 MB / 183.5 MB, free: 5.91 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005718/0.06561, allocations: 3.353 MB / 186.9 MB, free: 2.551 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.06794, allocations: 0.8577 MB / 187.7 MB, free: 1.691 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003694/0.06835, allocations: 11.94 kB / 187.7 MB, free: 1.68 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002026/0.06857, allocations: 71.48 kB / 187.8 MB, free: 1.609 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007484/0.06933, allocations: 235.3 kB / 188 MB, free: 1.379 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004055/0.06975, allocations: 107.9 kB / 188.1 MB, free: 1.273 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008991/0.07066, allocations: 0.496 MB / 188.6 MB, free: 0.7773 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004113/0.07109, allocations: 170.9 kB / 188.8 MB, free: 0.6094 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004104/0.07151, allocations: 239.1 kB / 189 MB, free: 384 kB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004772/0.07201, allocations: 278.8 kB / 189.3 MB, free: 104 kB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.07213, allocations: 36 kB / 189.4 MB, free: 68 kB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.07228, allocations: 32 kB / 189.4 MB, free: 36 kB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.07248, allocations: 115.5 kB / 189.5 MB, free: 15.92 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.07266, allocations: 137.4 kB / 189.6 MB, free: 15.78 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007303/0.0734, allocations: 0.5024 MB / 190.1 MB, free: 15.28 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.07342, allocations: 0 / 190.1 MB, free: 15.28 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.07343, allocations: 0 / 190.1 MB, free: 15.28 MB / 170.7 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.07345, allocations: 0 / 190.1 MB, free: 15.28 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.002135/0.07559, allocations: 0.8338 MB / 191 MB, free: 14.39 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/0.07566, allocations: 12.02 kB / 191 MB, free: 14.38 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002171/0.07589, allocations: 107.7 kB / 191.1 MB, free: 14.27 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.07607, allocations: 71.16 kB / 191.2 MB, free: 14.2 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007076/0.07678, allocations: 380.8 kB / 191.5 MB, free: 13.78 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.918e-05/0.07685, allocations: 37.31 kB / 191.6 MB, free: 13.75 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.07699, allocations: 52 kB / 191.6 MB, free: 13.7 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.07855, allocations: 0.5693 MB / 192.2 MB, free: 13.1 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.07859, allocations: 11.88 kB / 192.2 MB, free: 13.09 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.078e-05/0.07868, allocations: 27.95 kB / 192.2 MB, free: 13.06 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.07872, allocations: 16 kB / 192.2 MB, free: 13.04 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.08025, allocations: 472.9 kB / 192.7 MB, free: 12.58 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004783/0.08505, allocations: 2.11 MB / 194.8 MB, free: 10.38 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.08667, allocations: 0.6416 MB / 195.4 MB, free: 9.707 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.519e-05/0.08675, allocations: 8.562 kB / 195.5 MB, free: 9.699 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.0868, allocations: 35.12 kB / 195.5 MB, free: 9.656 MB / 170.7 MB Notification: Performance of pre-optimization done (n=60): time 3.346e-06/0.08681, allocations: 0 / 195.5 MB, free: 9.656 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.007581/0.0944, allocations: 2.061 MB / 197.6 MB, free: 7.477 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.188e-05/0.0945, allocations: 59.97 kB / 197.6 MB, free: 7.406 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006177/0.09512, allocations: 361.7 kB / 198 MB, free: 7.039 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.259e-05/0.0952, allocations: 37.7 kB / 198 MB, free: 6.996 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.09543, allocations: 283.5 kB / 198.3 MB, free: 6.719 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000231/0.09567, allocations: 205.1 kB / 198.5 MB, free: 6.516 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.09573, allocations: 12 kB / 198.5 MB, free: 6.504 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.0959, allocations: 330.8 kB / 198.8 MB, free: 6.172 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005997/0.09651, allocations: 169 kB / 199 MB, free: 6.008 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006449/0.09717, allocations: 219.7 kB / 199.2 MB, free: 5.785 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006611/0.09785, allocations: 183.3 kB / 199.4 MB, free: 5.609 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.09787, allocations: 0 / 199.4 MB, free: 5.609 MB / 170.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002994/0.1009, allocations: 0.6542 MB / 200 MB, free: 4.934 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.101, allocations: 4 kB / 200 MB, free: 4.93 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.101, allocations: 0 / 200 MB, free: 4.93 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.1023, allocations: 251.2 kB / 200.3 MB, free: 4.672 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005525/0.1028, allocations: 71.83 kB / 200.3 MB, free: 4.602 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1752/0.2781, allocations: 6.819 MB / 207.2 MB, free: 21.08 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008021/0.279, allocations: 25.78 kB / 207.2 MB, free: 21.08 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.259e-05/0.2791, allocations: 16.31 kB / 207.2 MB, free: 21.08 MB / 170.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.0005975/0.2797, allocations: 194.2 kB / 207.4 MB, free: 20.96 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.2799, allocations: 51.19 kB / 207.4 MB, free: 20.96 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002517/0.2802, allocations: 67.62 kB / 207.5 MB, free: 20.95 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.2802, allocations: 10.84 kB / 207.5 MB, free: 20.95 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/0.2802, allocations: 2.688 kB / 207.5 MB, free: 20.95 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/0.2803, allocations: 7.094 kB / 207.5 MB, free: 20.95 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005561/0.2858, allocations: 1.359 MB / 208.9 MB, free: 20.46 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.2859, allocations: 1.031 kB / 208.9 MB, free: 20.46 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009087/0.2868, allocations: 61.11 kB / 209 MB, free: 20.46 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.288, allocations: 260.7 kB / 209.2 MB, free: 20.37 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.316e-05/0.2881, allocations: 14.25 kB / 209.2 MB, free: 20.36 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008124/0.2963, allocations: 6.829 MB / 216 MB, free: 14.27 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.2963, allocations: 1.312 kB / 216 MB, free: 14.27 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002925/0.2992, allocations: 1.042 MB / 217.1 MB, free: 13.74 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000308/0.2996, allocations: 162.6 kB / 217.3 MB, free: 13.61 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.2997, allocations: 14.75 kB / 217.3 MB, free: 13.6 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004425/0.3002, allocations: 19.7 kB / 217.3 MB, free: 13.59 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/0.3004, allocations: 56.2 kB / 217.3 MB, free: 13.58 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.766e-05/0.3005, allocations: 16.8 kB / 217.4 MB, free: 13.57 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003967/0.3009, allocations: 261.7 kB / 217.6 MB, free: 13.44 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3009, allocations: 0 / 217.6 MB, free: 13.44 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001211/0.3021, allocations: 173 kB / 217.8 MB, free: 13.42 MB / 170.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.003156/0.3053, allocations: 1.615 MB / 219.4 MB, free: 12.34 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002382/0.3077, allocations: 1.041 MB / 220.4 MB, free: 11.66 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3077, allocations: 0 / 220.4 MB, free: 11.66 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.3094, allocations: 0.8517 MB / 221.3 MB, free: 11.04 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009225/0.3103, allocations: 97.69 kB / 221.4 MB, free: 11.01 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007361/0.3177, allocations: 3.386 MB / 224.8 MB, free: 9.082 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.3182, allocations: 0.894 MB / 225.7 MB, free: 8.289 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003187/0.3185, allocations: 172.3 kB / 225.8 MB, free: 8.141 MB / 170.7 MB Notification: Performance of SimCode: time 1.392e-06/0.3186, allocations: 4 kB / 225.8 MB, free: 8.137 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.986/3.305, allocations: 15.89 MB / 241.7 MB, free: 9.039 MB / 186.7 MB