Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.362/1.362, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002795, allocations: 8 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06168/0.06199, allocations: 25.17 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.TransformerTestbench): time 0.01261/0.07465, allocations: 5.539 MB / 189 MB, free: 372 kB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.006771/0.08148, allocations: 1.941 MB / 191 MB, free: 14.42 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001331/0.08286, allocations: 43.75 kB / 191 MB, free: 14.38 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002069/0.08496, allocations: 413.8 kB / 191.4 MB, free: 13.97 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002873/0.08787, allocations: 454.6 kB / 191.9 MB, free: 13.52 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.08937, allocations: 243.6 kB / 192.1 MB, free: 13.29 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.00516/0.09455, allocations: 1.805 MB / 193.9 MB, free: 11.48 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005628/0.1002, allocations: 2.147 MB / 196.1 MB, free: 9.297 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002886/0.1032, allocations: 0.9965 MB / 197.1 MB, free: 8.297 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003363/0.1066, allocations: 1.175 MB / 198.2 MB, free: 7.117 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008172/0.1074, allocations: 164 kB / 198.4 MB, free: 6.957 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001242/0.1087, allocations: 203.9 kB / 198.6 MB, free: 6.758 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001951/0.1107, allocations: 0.8142 MB / 199.4 MB, free: 5.941 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001371/0.1121, allocations: 0.5744 MB / 200 MB, free: 5.355 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00795/0.12, allocations: 4.231 MB / 204.2 MB, free: 1.113 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1201, allocations: 0 / 204.2 MB, free: 1.113 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1201, allocations: 0 / 204.2 MB, free: 1.113 MB / 170.7 MB Notification: Performance of Transformations before backend: time 0.0001476/0.1203, allocations: 0 / 204.2 MB, free: 1.113 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.1619/0.2822, allocations: 2.855 MB / 207.1 MB, free: 21.09 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.2823, allocations: 11.59 kB / 207.1 MB, free: 21.09 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001492/0.2838, allocations: 383.8 kB / 207.5 MB, free: 20.96 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.2848, allocations: 319.2 kB / 207.8 MB, free: 20.8 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00499/0.2898, allocations: 1.711 MB / 209.5 MB, free: 19.89 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/0.2901, allocations: 195.1 kB / 209.7 MB, free: 19.8 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006835/0.2908, allocations: 244.3 kB / 209.9 MB, free: 19.73 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01087/0.3016, allocations: 3.682 MB / 213.6 MB, free: 17.8 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.301e-05/0.3018, allocations: 5.219 kB / 213.6 MB, free: 17.79 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003571/0.3021, allocations: 110.1 kB / 213.7 MB, free: 17.71 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002131/0.3024, allocations: 131.2 kB / 213.8 MB, free: 17.68 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008716/0.3111, allocations: 3.053 MB / 216.9 MB, free: 16.06 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02293/0.3341, allocations: 9.404 MB / 226.3 MB, free: 7.516 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003672/0.3378, allocations: 2.535 MB / 228.8 MB, free: 4.77 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.3379, allocations: 15.42 kB / 228.8 MB, free: 4.758 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.338, allocations: 43.56 kB / 228.9 MB, free: 4.707 MB / 170.7 MB Notification: Performance of pre-optimization done (n=117): time 4.207e-06/0.338, allocations: 0 / 228.9 MB, free: 4.707 MB / 170.7 MB Notification: Performance of matching and sorting (n=121): time 0.01354/0.3515, allocations: 5.324 MB / 234.2 MB, free: 15.22 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.43e-05/0.3517, allocations: 86.11 kB / 234.3 MB, free: 15.12 MB / 186.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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.003448/0.3551, allocations: 1.443 MB / 235.7 MB, free: 13.66 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002723/0.3554, allocations: 41.7 kB / 235.8 MB, free: 13.62 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.3566, allocations: 1.132 MB / 236.9 MB, free: 12.48 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006825/0.3573, allocations: 408 kB / 237.3 MB, free: 12.08 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.3575, allocations: 24 kB / 237.3 MB, free: 12.06 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.3577, allocations: 374.7 kB / 237.7 MB, free: 11.68 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002118/0.3598, allocations: 0.7175 MB / 238.4 MB, free: 10.96 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002455/0.3623, allocations: 1.046 MB / 239.5 MB, free: 9.789 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002491/0.3649, allocations: 0.9065 MB / 240.4 MB, free: 8.883 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.498e-05/0.3649, allocations: 0 / 240.4 MB, free: 8.883 MB / 186.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006795/0.3717, allocations: 2.165 MB / 242.5 MB, free: 6.707 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.3718, allocations: 8 kB / 242.5 MB, free: 6.699 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.722e-05/0.3719, allocations: 12 kB / 242.6 MB, free: 6.688 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003651/0.3755, allocations: 0.5021 MB / 243.1 MB, free: 6.184 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003278/0.3788, allocations: 303.5 kB / 243.4 MB, free: 5.887 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01528/0.3942, allocations: 4.399 MB / 247.8 MB, free: 1.348 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002831/0.3971, allocations: 91.91 kB / 247.8 MB, free: 1.258 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004585/0.3976, allocations: 51.98 kB / 247.9 MB, free: 1.207 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.003943/0.4015, allocations: 0.9518 MB / 248.8 MB, free: 252 kB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008427/0.4024, allocations: 170 kB / 249 MB, free: 80 kB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.4035, allocations: 203.4 kB / 249.2 MB, free: 15.88 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001043/0.4037, allocations: 19.94 kB / 249.2 MB, free: 15.86 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.33e-05/0.4037, allocations: 4 kB / 249.2 MB, free: 15.85 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-05/0.4038, allocations: 7.984 kB / 249.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02032/0.4241, allocations: 4.485 MB / 253.7 MB, free: 11.32 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.277e-05/0.4242, allocations: 4.094 kB / 253.7 MB, free: 11.31 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003214/0.4274, allocations: 203.7 kB / 253.9 MB, free: 11.11 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005647/0.4331, allocations: 0.4921 MB / 254.4 MB, free: 10.62 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003337/0.4335, allocations: 23.98 kB / 254.4 MB, free: 10.6 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01443/0.448, allocations: 4.348 MB / 258.8 MB, free: 6.117 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.448, allocations: 3.938 kB / 258.8 MB, free: 6.113 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01285/0.4609, allocations: 3.006 MB / 261.8 MB, free: 3.09 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001895/0.4629, allocations: 395.1 kB / 262.2 MB, free: 2.684 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000809/0.4637, allocations: 27.95 kB / 262.2 MB, free: 2.656 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00257/0.4663, allocations: 79.97 kB / 262.3 MB, free: 2.578 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005583/0.4669, allocations: 84.88 kB / 262.4 MB, free: 2.496 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002193/0.4672, allocations: 31.98 kB / 262.4 MB, free: 2.465 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.003825/0.471, allocations: 0.9957 MB / 263.4 MB, free: 1.469 MB / 202.7 MB Notification: Performance of sort global known variables: time 1.443e-06/0.4711, allocations: 0 / 263.4 MB, free: 1.469 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.003747/0.4749, allocations: 471.9 kB / 263.9 MB, free: 1.012 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.01475/0.4897, allocations: 3.623 MB / 267.5 MB, free: 13.37 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.008517/0.4983, allocations: 2.034 MB / 269.5 MB, free: 11.32 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.4983, allocations: 0.5 kB / 269.5 MB, free: 11.32 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003552/0.5019, allocations: 1.153 MB / 270.7 MB, free: 10.16 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00386/0.5058, allocations: 429.4 kB / 271.1 MB, free: 9.738 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01775/0.5236, allocations: 7.163 MB / 278.3 MB, free: 2.371 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003662/0.5273, allocations: 2.232 MB / 280.5 MB, free: 108 kB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002395/0.5297, allocations: 0.9231 MB / 281.4 MB, free: 15.23 MB / 234.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5298, allocations: 0 / 281.4 MB, free: 15.23 MB / 234.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] .