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/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.CompareTransformers,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.018/1.018, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002604/0.0002604, allocations: 8 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05373/0.05401, allocations: 25.17 MB / 183.6 MB, free: 5.859 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2113/0.2654, allocations: 36.99 MB / 220.6 MB, free: 5.91 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.2657, allocations: 63.8 kB / 220.6 MB, free: 5.898 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03054/0.2962, allocations: 7.975 MB / 228.6 MB, free: 2.508 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.2963, allocations: 0 / 228.6 MB, free: 2.508 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.011e-05/0.2963, allocations: 11.94 kB / 228.6 MB, free: 2.496 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.001622/0.2979, allocations: 0.7772 MB / 229.4 MB, free: 1.703 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.298, allocations: 12.03 kB / 229.4 MB, free: 1.691 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001813/0.2982, allocations: 109.5 kB / 229.5 MB, free: 1.609 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.2983, allocations: 67.25 kB / 229.6 MB, free: 1.543 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005413/0.2989, allocations: 356.5 kB / 229.9 MB, free: 1.191 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.692e-05/0.2989, allocations: 36.25 kB / 230 MB, free: 1.168 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.462e-05/0.299, allocations: 56.2 kB / 230 MB, free: 1.129 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.3001, allocations: 0.4932 MB / 230.5 MB, free: 0.7656 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.3002, allocations: 3.938 kB / 230.5 MB, free: 0.7617 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.368e-05/0.3002, allocations: 22.38 kB / 230.6 MB, free: 0.7578 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.3003, allocations: 12 kB / 230.6 MB, free: 0.7461 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009158/0.3012, allocations: 337 kB / 230.9 MB, free: 0.5195 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004013/0.3052, allocations: 1.737 MB / 232.6 MB, free: 14.98 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006597/0.3059, allocations: 255.9 kB / 232.9 MB, free: 14.79 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.306, allocations: 4 kB / 232.9 MB, free: 14.78 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.306, allocations: 42 kB / 232.9 MB, free: 14.73 MB / 186.7 MB Notification: Performance of pre-optimization done (n=30): time 2.895e-06/0.306, allocations: 0 / 232.9 MB, free: 14.73 MB / 186.7 MB Notification: Performance of matching and sorting (n=31): time 0.002811/0.3088, allocations: 0.9615 MB / 233.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/0.3089, allocations: 81.11 kB / 234 MB, free: 13.73 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006095/0.3096, allocations: 348.8 kB / 234.3 MB, free: 13.45 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.282e-05/0.3096, allocations: 37.52 kB / 234.3 MB, free: 13.41 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002371/0.3099, allocations: 342 kB / 234.7 MB, free: 13.12 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.31, allocations: 105.7 kB / 234.8 MB, free: 13.04 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.299e-05/0.31, allocations: 3.875 kB / 234.8 MB, free: 13.04 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3102, allocations: 330.5 kB / 235.1 MB, free: 12.71 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003376/0.3105, allocations: 94.83 kB / 235.2 MB, free: 12.65 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004159/0.311, allocations: 192.9 kB / 235.4 MB, free: 12.46 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.3114, allocations: 123.6 kB / 235.5 MB, free: 12.39 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3114, allocations: 0 / 235.5 MB, free: 12.39 MB / 186.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001229/0.3126, allocations: 422.2 kB / 235.9 MB, free: 12.07 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.3127, allocations: 15.94 kB / 235.9 MB, free: 12.05 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3127, allocations: 4 kB / 235.9 MB, free: 12.05 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004363/0.3132, allocations: 77.23 kB / 236 MB, free: 11.98 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005841/0.3138, allocations: 79.7 kB / 236.1 MB, free: 11.9 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003936/0.3177, allocations: 2.853 MB / 238.9 MB, free: 8.965 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007093/0.3185, allocations: 28.06 kB / 239 MB, free: 8.945 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.847e-05/0.3185, allocations: 15.81 kB / 239 MB, free: 8.934 MB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: inductor22.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real basicTransformer.i2:VARIABLE(unit = "A" fixed = true ) "Current flowing from pos. to neg. pin of the right port" type: Real basicTransformer.i1:VARIABLE(unit = "A" fixed = true ) "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 () * Number of clocked 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.0005309/0.3191, allocations: 181.4 kB / 239.2 MB, free: 8.773 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/0.3193, allocations: 43.47 kB / 239.2 MB, free: 8.73 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.3194, allocations: 42.83 kB / 239.3 MB, free: 8.715 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.3194, allocations: 8 kB / 239.3 MB, free: 8.707 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/0.3195, allocations: 7.984 kB / 239.3 MB, free: 8.699 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.3195, allocations: 0 / 239.3 MB, free: 8.699 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00277/0.3223, allocations: 0.9422 MB / 240.2 MB, free: 7.875 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3223, allocations: 0 / 240.2 MB, free: 7.875 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004389/0.3228, allocations: 39.98 kB / 240.2 MB, free: 7.836 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005097/0.3233, allocations: 81.33 kB / 240.3 MB, free: 7.762 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.795e-05/0.3233, allocations: 7.875 kB / 240.3 MB, free: 7.758 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004116/0.3275, allocations: 2.859 MB / 243.2 MB, free: 4.812 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3275, allocations: 0 / 243.2 MB, free: 4.812 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002017/0.3295, allocations: 0.6188 MB / 243.8 MB, free: 4.273 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003275/0.3299, allocations: 137.6 kB / 243.9 MB, free: 4.133 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.33, allocations: 7.125 kB / 244 MB, free: 4.129 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008652/0.3309, allocations: 31.11 kB / 244 MB, free: 4.102 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.3311, allocations: 27.77 kB / 244 MB, free: 4.078 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.656e-05/0.3311, allocations: 11.62 kB / 244 MB, free: 4.07 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0006827/0.3318, allocations: 273.5 kB / 244.3 MB, free: 3.863 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.3318, allocations: 0 / 244.3 MB, free: 3.863 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001469/0.3333, allocations: 118.5 kB / 244.4 MB, free: 3.758 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 () * Number of clocked 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.002699/0.336, allocations: 1.249 MB / 245.7 MB, free: 2.59 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001891/0.3379, allocations: 0.5186 MB / 246.2 MB, free: 2.121 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.338, allocations: 0 / 246.2 MB, free: 2.121 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01308/0.3511, allocations: 392.2 kB / 246.6 MB, free: 1.75 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.3527, allocations: 93.08 kB / 246.6 MB, free: 1.684 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01692/0.3696, allocations: 4.333 MB / 251 MB, free: 13.59 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007505/0.3704, allocations: 0.8542 MB / 251.8 MB, free: 12.7 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000451/0.3709, allocations: 173.8 kB / 252 MB, free: 12.66 MB / 202.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3709, allocations: 0 / 252 MB, free: 12.66 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.808/3.179, allocations: 10.89 MB / 262.9 MB, free: 1.836 MB / 202.7 MB