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.CompareTransformers.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.CompareTransformers,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9693/0.9693, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.825e-05/2.837e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05344/0.05351, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2141/0.2676, allocations: 36.23 MB / 209.6 MB, free: 4.609 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.2679, allocations: 61.75 kB / 209.7 MB, free: 4.609 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03258/0.3005, allocations: 7.908 MB / 217.6 MB, free: 2.973 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3006, allocations: 0 / 217.6 MB, free: 2.973 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.355e-05/0.3006, allocations: 15.44 kB / 217.6 MB, free: 2.969 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001462/0.3021, allocations: 0.7141 MB / 218.3 MB, free: 2.422 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.3022, allocations: 7.75 kB / 218.3 MB, free: 2.422 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.3023, allocations: 69.62 kB / 218.4 MB, free: 2.387 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005856/0.3029, allocations: 357.2 kB / 218.7 MB, free: 2.105 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.303, allocations: 15.25 kB / 218.8 MB, free: 2.105 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.263e-05/0.3031, allocations: 30.86 kB / 218.8 MB, free: 2.102 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007137/0.3038, allocations: 264.7 kB / 219 MB, free: 2.094 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008341/0.3046, allocations: 387.9 kB / 219.4 MB, free: 1.969 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.3047, allocations: 0 / 219.4 MB, free: 1.969 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.467e-05/0.3047, allocations: 0 / 219.4 MB, free: 1.969 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/0.3048, allocations: 15.5 kB / 219.4 MB, free: 1.965 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003621/0.3084, allocations: 1.602 MB / 221 MB, free: 0.9648 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/0.3089, allocations: 225.7 kB / 221.3 MB, free: 0.9023 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002168/0.3091, allocations: 116.1 kB / 221.4 MB, free: 0.8828 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.895e-05/0.3092, allocations: 3.047 kB / 221.4 MB, free: 0.8828 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.3092, allocations: 50.3 kB / 221.4 MB, free: 0.832 MB / 170.7 MB Notification: Performance of pre-optimization done (n=30): time 3.036e-06/0.3092, allocations: 0 / 221.4 MB, free: 0.832 MB / 170.7 MB Notification: Performance of matching and sorting (n=31): time 0.001776/0.311, allocations: 0.6886 MB / 222.1 MB, free: 384 kB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.3111, allocations: 88.8 kB / 222.2 MB, free: 284 kB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000448/0.3116, allocations: 310.3 kB / 222.5 MB, free: 152 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.612e-05/0.3116, allocations: 25.7 kB / 222.5 MB, free: 120 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.3118, allocations: 335 kB / 222.9 MB, free: 15.86 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.312, allocations: 113 kB / 223 MB, free: 15.78 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/0.312, allocations: 0 / 223 MB, free: 15.78 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3121, allocations: 326.4 kB / 223.3 MB, free: 15.46 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.3123, allocations: 74.28 kB / 223.4 MB, free: 15.46 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002663/0.3126, allocations: 162.4 kB / 223.5 MB, free: 15.35 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.3129, allocations: 103.8 kB / 223.6 MB, free: 15.33 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3129, allocations: 0 / 223.6 MB, free: 15.33 MB / 186.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009342/0.3139, allocations: 347.8 kB / 224 MB, free: 15.22 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.3139, allocations: 7.75 kB / 224 MB, free: 15.22 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3139, allocations: 3.875 kB / 224 MB, free: 15.22 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004172/0.3144, allocations: 69.77 kB / 224 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005739/0.3149, allocations: 82.05 kB / 224.1 MB, free: 15.18 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003023/0.318, allocations: 2.732 MB / 226.8 MB, free: 12.6 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000551/0.3186, allocations: 19.59 kB / 226.9 MB, free: 12.59 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.3186, allocations: 15.22 kB / 226.9 MB, free: 12.59 MB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: inductor22.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real basicTransformer.i2:VARIABLE(unit = "A" ) "Current flowing from pos. to neg. pin of the right port" type: Real basicTransformer.i1:VARIABLE(unit = "A" ) "Current flowing from pos. to neg. pin of the left port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002558/0.3189, allocations: 130.2 kB / 227 MB, free: 12.46 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008019/0.3197, allocations: 271.8 kB / 227.3 MB, free: 12.36 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.3199, allocations: 42.53 kB / 227.3 MB, free: 12.34 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001169/0.32, allocations: 42.66 kB / 227.4 MB, free: 12.32 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.32, allocations: 3.875 kB / 227.4 MB, free: 12.32 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.32, allocations: 0 / 227.4 MB, free: 12.32 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.32, allocations: 0 / 227.4 MB, free: 12.32 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.3218, allocations: 0.8216 MB / 228.2 MB, free: 11.81 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.3218, allocations: 0 / 228.2 MB, free: 11.81 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003534/0.3222, allocations: 45.22 kB / 228.2 MB, free: 11.8 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003819/0.3226, allocations: 74.16 kB / 228.3 MB, free: 11.76 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.782e-05/0.3227, allocations: 7.719 kB / 228.3 MB, free: 11.76 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002832/0.3255, allocations: 2.725 MB / 231 MB, free: 9.191 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.3256, allocations: 4.125 kB / 231 MB, free: 9.188 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.3267, allocations: 0.538 MB / 231.6 MB, free: 8.891 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.3269, allocations: 138.4 kB / 231.7 MB, free: 8.762 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/0.327, allocations: 0 / 231.7 MB, free: 8.762 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000539/0.3276, allocations: 27.58 kB / 231.7 MB, free: 8.754 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.3277, allocations: 26.67 kB / 231.8 MB, free: 8.742 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.3277, allocations: 7.812 kB / 231.8 MB, free: 8.742 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003635/0.3281, allocations: 239.5 kB / 232 MB, free: 8.645 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3281, allocations: 7.875 kB / 232 MB, free: 8.641 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0008126/0.3289, allocations: 100.3 kB / 232.1 MB, free: 8.641 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001516/0.3305, allocations: 1.174 MB / 233.3 MB, free: 7.73 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.3315, allocations: 457.2 kB / 233.7 MB, free: 7.492 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.3316, allocations: 4.438 kB / 233.7 MB, free: 7.492 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007373/0.3323, allocations: 348.8 kB / 234.1 MB, free: 7.262 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008598/0.3332, allocations: 58.3 kB / 234.1 MB, free: 7.246 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.3355, allocations: 0.8011 MB / 234.9 MB, free: 6.727 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004674/0.336, allocations: 0.8457 MB / 235.8 MB, free: 5.957 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/0.3364, allocations: 169.2 kB / 235.9 MB, free: 5.93 MB / 186.7 MB Notification: Performance of SimCode: time 1.022e-06/0.3364, allocations: 0 / 235.9 MB, free: 5.93 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.902/3.238, allocations: 10.39 MB / 246.3 MB, free: 14 MB / 202.7 MB