Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadModel(Modelica): time 1.642/1.642, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003616, allocations: 8 kB / 233.2 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06882/0.06921, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.009419/0.07869, allocations: 6.495 MB / 278.4 MB, free: 5.668 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005955/0.08468, allocations: 2.623 MB / 281 MB, free: 3.039 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.08604, allocations: 51.69 kB / 281.1 MB, free: 2.988 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001381/0.08745, allocations: 465.6 kB / 281.6 MB, free: 2.531 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002369/0.08984, allocations: 0.5997 MB / 282.2 MB, free: 1.93 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.09097, allocations: 279.6 kB / 282.4 MB, free: 1.656 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003972/0.09496, allocations: 2.2 MB / 284.6 MB, free: 15.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003864/0.09886, allocations: 2.356 MB / 287 MB, free: 13.06 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002247/0.1011, allocations: 1.16 MB / 288.1 MB, free: 11.9 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002465/0.1036, allocations: 1.377 MB / 289.5 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005911/0.1043, allocations: 192 kB / 289.7 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.1054, allocations: 287.9 kB / 290 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001292/0.1067, allocations: 0.8882 MB / 290.9 MB, free: 9.156 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001045/0.1077, allocations: 0.6563 MB / 291.5 MB, free: 8.492 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006819/0.1146, allocations: 4.854 MB / 296.4 MB, free: 3.625 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.789e-06/0.1146, allocations: 0 / 296.4 MB, free: 3.625 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.751e-06/0.1146, allocations: 3.938 kB / 296.4 MB, free: 3.621 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.843e-05/0.1147, allocations: 0 / 296.4 MB, free: 3.621 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.008387/0.1231, allocations: 3.136 MB / 299.5 MB, free: 432 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.778e-05/0.1233, allocations: 8.031 kB / 299.5 MB, free: 424 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003148/0.1264, allocations: 383.8 kB / 299.9 MB, free: 36 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.229/0.3555, allocations: 1.81 MB / 301.7 MB, free: 26.73 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002522/0.3558, allocations: 219 kB / 301.9 MB, free: 26.63 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007824/0.3566, allocations: 283.4 kB / 302.2 MB, free: 26.54 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01071/0.3673, allocations: 4.167 MB / 306.4 MB, free: 24.92 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.716e-05/0.3674, allocations: 6.703 kB / 306.4 MB, free: 24.91 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004641/0.3679, allocations: 121.8 kB / 306.5 MB, free: 24.82 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002214/0.3681, allocations: 141.5 kB / 306.6 MB, free: 24.81 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009253/0.3774, allocations: 3.468 MB / 310.1 MB, free: 23.5 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02285/0.4003, allocations: 10.92 MB / 321 MB, free: 16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003237/0.4036, allocations: 2.643 MB / 323.7 MB, free: 13.15 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002778/0.4039, allocations: 124.8 kB / 323.8 MB, free: 13.01 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.4039, allocations: 47.56 kB / 323.8 MB, free: 12.95 MB / 250.7 MB Notification: Performance of pre-optimization done (n=128): time 5.514e-06/0.404, allocations: 0 / 323.8 MB, free: 12.95 MB / 250.7 MB Notification: Performance of matching and sorting (n=132): time 0.01111/0.4151, allocations: 5.548 MB / 329.4 MB, free: 7.285 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.4152, allocations: 94.36 kB / 329.5 MB, free: 7.176 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003149/0.4183, allocations: 1.791 MB / 331.3 MB, free: 5.379 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000231/0.4186, allocations: 45.81 kB / 331.3 MB, free: 5.328 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007116/0.4193, allocations: 1.253 MB / 332.6 MB, free: 4.066 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004539/0.4198, allocations: 452.8 kB / 333 MB, free: 3.629 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.4199, allocations: 28 kB / 333 MB, free: 3.602 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.42, allocations: 374.8 kB / 333.4 MB, free: 3.227 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.4217, allocations: 0.8237 MB / 334.2 MB, free: 2.402 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/0.4236, allocations: 1.19 MB / 335.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001938/0.4256, allocations: 1.029 MB / 336.4 MB, free: 36 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/0.4256, allocations: 7.953 kB / 336.5 MB, free: 28 kB / 250.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.008235/0.4339, allocations: 2.447 MB / 338.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.895e-05/0.434, allocations: 8 kB / 338.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.662e-05/0.434, allocations: 15.98 kB / 338.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004247/0.4383, allocations: 494.9 kB / 339.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003211/0.4415, allocations: 331.5 kB / 339.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0136/0.4552, allocations: 4.356 MB / 344.1 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002799/0.458, allocations: 91.83 kB / 344.2 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004958/0.4586, allocations: 63.98 kB / 344.2 MB, free: 8.098 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (154): * Single equations (assignments): 149 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00411/0.4627, allocations: 1.037 MB / 345.3 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/0.4639, allocations: 193.7 kB / 345.5 MB, free: 6.859 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009296/0.4733, allocations: 2.186 MB / 347.6 MB, free: 4.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-05/0.4734, allocations: 22.48 kB / 347.7 MB, free: 4.641 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.091e-05/0.4735, allocations: 4 kB / 347.7 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.835e-05/0.4735, allocations: 7.969 kB / 347.7 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02298/0.4965, allocations: 5.107 MB / 352.8 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.569e-06/0.4966, allocations: 0 / 352.8 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/0.4979, allocations: 219.7 kB / 353 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002484/0.5004, allocations: 481.7 kB / 353.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001962/0.5007, allocations: 31.98 kB / 353.5 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007854/0.5085, allocations: 4.312 MB / 357.8 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.5086, allocations: 3.938 kB / 357.8 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007342/0.5159, allocations: 3.265 MB / 361.1 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001314/0.5173, allocations: 466.6 kB / 361.5 MB, free: 6.539 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004139/0.5177, allocations: 25.95 kB / 361.6 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.519, allocations: 111.9 kB / 361.7 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002906/0.5193, allocations: 88.86 kB / 361.8 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/0.5195, allocations: 39.98 kB / 361.8 MB, free: 6.277 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.002785/0.5223, allocations: 1.244 MB / 363 MB, free: 5.039 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.38e-06/0.5223, allocations: 0 / 363 MB, free: 5.039 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002599/0.525, allocations: 0.5438 MB / 363.6 MB, free: 4.5 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * 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 (98): * Single equations (assignments): 93 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006516/0.5256, allocations: 181.8 kB / 363.8 MB, free: 4.328 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005291/0.5309, allocations: 2.227 MB / 366 MB, free: 2.094 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.067e-06/0.531, allocations: 0.5625 kB / 366 MB, free: 2.094 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003043/0.5341, allocations: 1.227 MB / 367.2 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/0.5368, allocations: 470.9 kB / 367.7 MB, free: 412 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.5515, allocations: 6.598 MB / 374.3 MB, free: 9.762 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003706/0.5552, allocations: 2.408 MB / 376.7 MB, free: 7.324 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007651/0.556, allocations: 127.4 kB / 376.8 MB, free: 7.199 MB / 298.7 MB Notification: Performance of SimCode: time 1.632e-06/0.5561, allocations: 4 kB / 376.8 MB, free: 7.195 MB / 298.7 MB [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(transformer.v1)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(transformer.v2)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({-transformer.i2[1], -transformer.l2sigma.inductor[2].i, -transformer.l2sigma.inductor[3].i})[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({-source.i[1], -source.i[2], -source.i[3]})[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(transformer.v1)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({-source.i[1], -source.i[2], -source.i[3]})[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(transformer.v2)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({-transformer.l2sigma.inductor[1].i, -transformer.l2sigma.inductor[2].i, -transformer.l2sigma.inductor[3].i})[1] .