Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.TransformerTestbench.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.TransformerTestbench") Notification: Performance of loadModel(Modelica): time 1.124/1.124, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002677/0.0002678, allocations: 4 kB / 158.2 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04655/0.04685, allocations: 25.18 MB / 183.4 MB, free: 6.004 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.TransformerTestbench): time 0.008195/0.05507, allocations: 5.53 MB / 188.9 MB, free: 468 kB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.004835/0.05996, allocations: 1.949 MB / 190.9 MB, free: 14.5 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001294/0.0613, allocations: 43.75 kB / 190.9 MB, free: 14.46 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001513/0.06286, allocations: 413.8 kB / 191.3 MB, free: 14.05 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001853/0.06475, allocations: 454.6 kB / 191.8 MB, free: 13.61 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.06583, allocations: 231.7 kB / 192 MB, free: 13.38 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.003464/0.06933, allocations: 1.817 MB / 193.8 MB, free: 11.56 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003802/0.07317, allocations: 2.158 MB / 196 MB, free: 9.371 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002122/0.07534, allocations: 0.9965 MB / 197 MB, free: 8.371 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002192/0.07757, allocations: 1.179 MB / 198.2 MB, free: 7.188 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005061/0.07811, allocations: 164 kB / 198.3 MB, free: 7.027 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007417/0.07886, allocations: 191.9 kB / 198.5 MB, free: 6.84 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.08006, allocations: 0.8181 MB / 199.3 MB, free: 6.02 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008627/0.08094, allocations: 0.5744 MB / 199.9 MB, free: 5.438 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006025/0.08698, allocations: 4.231 MB / 204.1 MB, free: 1.191 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.08703, allocations: 0 / 204.1 MB, free: 1.191 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.019e-06/0.08705, allocations: 3.938 kB / 204.1 MB, free: 1.188 MB / 170.7 MB Notification: Performance of Transformations before backend: time 0.0001011/0.08716, allocations: 0 / 204.1 MB, free: 1.188 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: 672 * Number of variables: 672 Notification: Performance of Generate backend data structure: time 0.1273/0.2145, allocations: 2.858 MB / 207 MB, free: 21.1 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.2146, allocations: 12.5 kB / 207 MB, free: 21.1 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.2156, allocations: 317.4 kB / 207.3 MB, free: 20.94 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004247/0.2199, allocations: 1.711 MB / 209 MB, free: 20.1 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/0.2202, allocations: 195.6 kB / 209.2 MB, free: 20.01 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007013/0.2209, allocations: 243.8 kB / 209.5 MB, free: 19.93 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009109/0.2301, allocations: 3.687 MB / 213.1 MB, free: 18.06 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.296e-05/0.2302, allocations: 0 / 213.1 MB, free: 18.06 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003066/0.2305, allocations: 104.6 kB / 213.2 MB, free: 17.98 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002011/0.2307, allocations: 128 kB / 213.4 MB, free: 17.96 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007813/0.2385, allocations: 3.056 MB / 216.4 MB, free: 16.34 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01879/0.2574, allocations: 9.41 MB / 225.8 MB, free: 7.902 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003005/0.2604, allocations: 2.524 MB / 228.4 MB, free: 5.164 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.2606, allocations: 18.17 kB / 228.4 MB, free: 5.148 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.2606, allocations: 51.55 kB / 228.4 MB, free: 5.09 MB / 170.7 MB Notification: Performance of pre-optimization done (n=117): time 5.331e-06/0.2606, allocations: 0 / 228.4 MB, free: 5.09 MB / 170.7 MB Notification: Performance of matching and sorting (n=121): time 0.01071/0.2713, allocations: 5.312 MB / 233.7 MB, free: 15.62 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.011e-05/0.2715, allocations: 90.22 kB / 233.8 MB, free: 15.51 MB / 186.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7955:5-7956:40:writable] Warning: Parameter transformerData.P_sc has no value, and is fixed during initialization (fixed=true), using available start value (start=300.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7953:5-7954:36:writable] Warning: Parameter transformerData.v_sc has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7951:5-7952:33:writable] Warning: Parameter transformerData.SNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=30000.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7945:5-7946:86:writable] Warning: Parameter transformerData.V2 has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7940:5-7941:53:writable] Warning: Parameter transformerData.V1 has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7939:5-7939:73:writable] Warning: Parameter transformerData.f has no value, and is fixed during initialization (fixed=true), using available start value (start=50.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003062/0.2745, allocations: 1.443 MB / 235.3 MB, free: 14.05 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002169/0.2748, allocations: 51.89 kB / 235.3 MB, free: 14 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001092/0.2759, allocations: 1.126 MB / 236.5 MB, free: 12.86 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005916/0.2765, allocations: 412.3 kB / 236.9 MB, free: 12.46 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.2766, allocations: 28 kB / 236.9 MB, free: 12.44 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000232/0.2769, allocations: 358.8 kB / 237.2 MB, free: 12.08 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001682/0.2786, allocations: 0.7137 MB / 237.9 MB, free: 11.36 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/0.2806, allocations: 1.048 MB / 239 MB, free: 10.18 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002142/0.2828, allocations: 0.8988 MB / 239.9 MB, free: 9.285 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.565e-05/0.2828, allocations: 7.953 kB / 239.9 MB, free: 9.277 MB / 186.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.005477/0.2883, allocations: 2.171 MB / 242.1 MB, free: 7.098 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.449e-05/0.2884, allocations: 12 kB / 242.1 MB, free: 7.086 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/0.2884, allocations: 8 kB / 242.1 MB, free: 7.078 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002667/0.2911, allocations: 0.5005 MB / 242.6 MB, free: 6.574 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.2929, allocations: 295.5 kB / 242.9 MB, free: 6.285 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008344/0.3013, allocations: 4.412 MB / 247.3 MB, free: 1.734 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.3027, allocations: 79.92 kB / 247.4 MB, free: 1.656 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002237/0.3029, allocations: 56 kB / 247.4 MB, free: 1.602 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: transformer.l1sigma.inductor[3].i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real [3] transformer.l1sigma.inductor[2].i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (134): * Single equations (assignments): 129 * 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 {(3,77.8%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002283/0.3052, allocations: 0.9635 MB / 248.4 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005409/0.3058, allocations: 162 kB / 248.5 MB, free: 480 kB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005301/0.3063, allocations: 207.4 kB / 248.8 MB, free: 268 kB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.884e-05/0.3064, allocations: 16 kB / 248.8 MB, free: 252 kB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.272e-05/0.3064, allocations: 7.953 kB / 248.8 MB, free: 244 kB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.832e-05/0.3065, allocations: 11.97 kB / 248.8 MB, free: 232 kB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.3174, allocations: 4.485 MB / 253.3 MB, free: 11.7 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.3174, allocations: 0 / 253.3 MB, free: 11.7 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/0.3188, allocations: 203.7 kB / 253.5 MB, free: 11.5 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002592/0.3214, allocations: 494 kB / 254 MB, free: 11.02 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002205/0.3216, allocations: 33.7 kB / 254 MB, free: 10.98 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008117/0.3298, allocations: 4.344 MB / 258.3 MB, free: 6.508 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.842e-06/0.3298, allocations: 4 kB / 258.3 MB, free: 6.504 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006899/0.3367, allocations: 3.003 MB / 261.3 MB, free: 3.484 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.3379, allocations: 391 kB / 261.7 MB, free: 3.082 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003545/0.3383, allocations: 31.98 kB / 261.7 MB, free: 3.051 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.3393, allocations: 79.88 kB / 261.8 MB, free: 2.973 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.3396, allocations: 88.92 kB / 261.9 MB, free: 2.887 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.3398, allocations: 28 kB / 261.9 MB, free: 2.859 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.002063/0.3418, allocations: 0.9996 MB / 262.9 MB, free: 1.859 MB / 202.7 MB Notification: Performance of sort global known variables: time 9.27e-07/0.3419, allocations: 0 / 262.9 MB, free: 1.859 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.002291/0.3442, allocations: 473.3 kB / 263.4 MB, free: 1.402 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (transformer.l1sigma.inductor[2].i,transformer.l1sigma.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 (87): * Single equations (assignments): 82 * 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 {(3,88.9%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000533/0.3447, allocations: 161.1 kB / 263.6 MB, free: 1.246 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.004927/0.3497, allocations: 2.035 MB / 265.6 MB, free: 15.2 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.3497, allocations: 0 / 265.6 MB, free: 15.2 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002904/0.3526, allocations: 1.154 MB / 266.8 MB, free: 14.04 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002771/0.3555, allocations: 417.4 kB / 267.2 MB, free: 13.63 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/0.3679, allocations: 5.818 MB / 273 MB, free: 7.77 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003416/0.3713, allocations: 2.228 MB / 275.2 MB, free: 5.508 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006421/0.372, allocations: 115.4 kB / 275.3 MB, free: 5.395 MB / 218.7 MB Notification: Performance of SimCode: time 1.811e-06/0.372, allocations: 0 / 275.3 MB, free: 5.395 MB / 218.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(load.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(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.l1sigma.inductor[1].i, transformer.l1sigma.inductor[2].i, transformer.l1sigma.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(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(load.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({transformer.l1sigma.inductor[1].i, transformer.l1sigma.inductor[2].i, transformer.l1sigma.inductor[3].i})[1] .