Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001575/0.001575, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00117/0.00117, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003827/0.0003829, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.09836, allocations: 47.59 MB / 374.7 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.01133/0.1097, allocations: 6.295 MB / 380.9 MB, free: 9.004 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007406/0.1172, allocations: 2.639 MB / 383.6 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001509/0.1188, allocations: 51.69 kB / 383.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002185/0.121, allocations: 469.6 kB / 384.1 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003329/0.1244, allocations: 0.5919 MB / 384.7 MB, free: 5.254 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00169/0.1262, allocations: 287.6 kB / 385 MB, free: 4.973 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005182/0.1314, allocations: 2.164 MB / 387.1 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005083/0.1365, allocations: 2.356 MB / 389.5 MB, free: 424 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2665/0.4031, allocations: 1.115 MB / 390.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00402/0.4072, allocations: 1.431 MB / 392 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001562/0.4088, allocations: 195.3 kB / 392.2 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002698/0.4115, allocations: 367.8 kB / 392.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002653/0.4142, allocations: 0.8754 MB / 393.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002256/0.4166, allocations: 0.6623 MB / 394.1 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01074/0.4274, allocations: 4.942 MB / 399.1 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4274, allocations: 0 / 399.1 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.128e-06/0.4275, allocations: 0 / 399.1 MB, free: 9.344 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002525/0.4277, allocations: 0 / 399.1 MB, free: 9.344 MB / 282.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.02158/0.4493, allocations: 3.19 MB / 402.3 MB, free: 7.512 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.845e-05/0.4494, allocations: 13.03 kB / 402.3 MB, free: 7.508 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003364/0.4528, allocations: 430.3 kB / 402.7 MB, free: 7.383 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004621/0.4575, allocations: 391.8 kB / 403.1 MB, free: 7.191 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01247/0.47, allocations: 1.902 MB / 405 MB, free: 6.512 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007516/0.4709, allocations: 214.5 kB / 405.2 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001533/0.4724, allocations: 285.7 kB / 405.5 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/0.4881, allocations: 4.145 MB / 409.6 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.4883, allocations: 0 / 409.6 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00102/0.4893, allocations: 119 kB / 409.7 MB, free: 5.211 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002718/0.4896, allocations: 146.5 kB / 409.9 MB, free: 5.188 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/0.5055, allocations: 3.472 MB / 413.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03931/0.5449, allocations: 11.01 MB / 424.3 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005617/0.5506, allocations: 2.638 MB / 427 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005299/0.5512, allocations: 125.6 kB / 427.1 MB, free: 6.766 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.11e-05/0.5513, allocations: 51.56 kB / 427.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of pre-optimization done (n=128): time 5.691e-06/0.5513, allocations: 0 / 427.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=132): time 0.02716/0.5784, allocations: 5.559 MB / 432.7 MB, free: 1.027 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.5786, allocations: 90.42 kB / 432.8 MB, free: 0.918 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/0.5897, allocations: 1.902 MB / 434.7 MB, free: 15.01 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007572/0.5905, allocations: 45.7 kB / 434.7 MB, free: 14.96 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002306/0.5929, allocations: 1.256 MB / 436 MB, free: 13.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009361/0.5939, allocations: 456.1 kB / 436.5 MB, free: 13.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/0.5941, allocations: 24.86 kB / 436.5 MB, free: 13.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002649/0.5944, allocations: 380.6 kB / 436.8 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/0.597, allocations: 0.8237 MB / 437.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003187/0.6002, allocations: 1.186 MB / 438.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003146/0.6034, allocations: 1.029 MB / 439.9 MB, free: 9.664 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.485e-05/0.6035, allocations: 0 / 439.9 MB, free: 9.664 MB / 314.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.007912/0.6114, allocations: 2.443 MB / 442.3 MB, free: 7.211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.6115, allocations: 8 kB / 442.3 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.489e-05/0.6116, allocations: 12 kB / 442.3 MB, free: 7.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00375/0.6153, allocations: 0.5026 MB / 442.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/0.6182, allocations: 327.5 kB / 443.2 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009847/0.6281, allocations: 4.351 MB / 447.5 MB, free: 1.887 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/0.6309, allocations: 85.02 kB / 447.6 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004782/0.6314, allocations: 63.98 kB / 447.7 MB, free: 1.742 MB / 314.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.00353/0.635, allocations: 1.049 MB / 448.7 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008933/0.6359, allocations: 185.8 kB / 448.9 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007053/0.6429, allocations: 2.191 MB / 451.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.711e-05/0.6431, allocations: 20 kB / 451.1 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.6431, allocations: 6.188 kB / 451.1 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.734e-05/0.6431, allocations: 7.969 kB / 451.1 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01724/0.6604, allocations: 5.16 MB / 456.3 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.965e-05/0.6605, allocations: 0 / 456.3 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002226/0.6627, allocations: 227.6 kB / 456.5 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003773/0.6665, allocations: 477.8 kB / 457 MB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003594/0.667, allocations: 31.98 kB / 457 MB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009734/0.6767, allocations: 4.304 MB / 461.3 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.6768, allocations: 0 / 461.3 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/0.6871, allocations: 3.304 MB / 464.6 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002039/0.6892, allocations: 466.6 kB / 465.1 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008282/0.6901, allocations: 36.05 kB / 465.1 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002661/0.6928, allocations: 104.8 kB / 465.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005718/0.6934, allocations: 84.88 kB / 465.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/0.6936, allocations: 42.92 kB / 465.3 MB, free: 15.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00431/0.6979, allocations: 1.326 MB / 466.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.698, allocations: 0 / 466.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003976/0.702, allocations: 0.5522 MB / 467.2 MB, free: 13.96 MB / 346.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.01146/0.7135, allocations: 4.092 MB / 471.3 MB, free: 9.828 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007069/0.7206, allocations: 2.222 MB / 473.5 MB, free: 7.594 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/0.7207, allocations: 0 / 473.5 MB, free: 7.594 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004193/0.7249, allocations: 1.222 MB / 474.7 MB, free: 6.359 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004383/0.7293, allocations: 477.3 kB / 475.2 MB, free: 5.891 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05984/0.7892, allocations: 23.46 MB / 498.7 MB, free: 13.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004915/0.7942, allocations: 2.413 MB / 0.4893 GB, free: 11.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003452/0.7977, allocations: 1.069 MB / 0.4904 GB, free: 10.06 MB / 378.7 MB Notification: Performance of SimCode: time 2.695e-06/0.7978, allocations: 0 / 0.4904 GB, free: 10.06 MB / 378.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] .