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: translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002453/0.002458, allocations: 188.2 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.333/3.333, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001719/0.001719, allocations: 106.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006172/0.0006173, allocations: 12 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.1572, allocations: 47.58 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.01715/0.1744, allocations: 6.294 MB / 380.8 MB, free: 9.105 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01065/0.1851, allocations: 2.639 MB / 383.5 MB, free: 6.461 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00233/0.1875, allocations: 51.69 kB / 383.5 MB, free: 6.41 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003369/0.191, allocations: 473.5 kB / 384 MB, free: 5.945 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004868/0.1959, allocations: 0.5919 MB / 384.6 MB, free: 5.352 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002459/0.1985, allocations: 283.6 kB / 384.9 MB, free: 5.074 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007614/0.2061, allocations: 2.172 MB / 387 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007932/0.2142, allocations: 2.36 MB / 389.4 MB, free: 0.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3957/0.6099, allocations: 1.108 MB / 390.5 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005921/0.6159, allocations: 1.43 MB / 391.9 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001921/0.6179, allocations: 195.2 kB / 392.1 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003522/0.6214, allocations: 370.3 kB / 392.5 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003636/0.6252, allocations: 0.8763 MB / 393.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003077/0.6283, allocations: 0.6578 MB / 394 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.6422, allocations: 4.941 MB / 399 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.6423, allocations: 4.688 kB / 399 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.669e-06/0.6423, allocations: 2.594 kB / 399 MB, free: 9.328 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002923/0.6426, allocations: 0 / 399 MB, free: 9.328 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.01978/0.6624, allocations: 3.188 MB / 402.2 MB, free: 7.484 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.703e-05/0.6625, allocations: 9.719 kB / 402.2 MB, free: 7.484 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004258/0.6668, allocations: 392.6 kB / 402.5 MB, free: 7.293 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01028/0.6771, allocations: 1.901 MB / 404.5 MB, free: 6.613 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005829/0.6778, allocations: 219.1 kB / 404.7 MB, free: 6.605 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002332/0.6801, allocations: 283.7 kB / 404.9 MB, free: 6.605 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02533/0.7055, allocations: 4.146 MB / 409.1 MB, free: 5.578 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002014/0.7058, allocations: 5.5 kB / 409.1 MB, free: 5.574 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001822/0.7077, allocations: 120.4 kB / 409.2 MB, free: 5.484 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004497/0.7082, allocations: 139.8 kB / 409.3 MB, free: 5.465 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01893/0.7271, allocations: 3.477 MB / 412.8 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05653/0.7837, allocations: 11.01 MB / 423.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008533/0.7924, allocations: 2.629 MB / 426.5 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006997/0.7931, allocations: 133 kB / 426.6 MB, free: 7.258 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.11e-05/0.7933, allocations: 43.56 kB / 426.6 MB, free: 7.207 MB / 298.7 MB Notification: Performance of pre-optimization done (n=128): time 1.005e-05/0.7933, allocations: 0 / 426.6 MB, free: 7.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=132): time 0.02971/0.823, allocations: 5.566 MB / 432.2 MB, free: 1.523 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.8232, allocations: 98.42 kB / 432.3 MB, free: 1.406 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008941/0.8322, allocations: 1.894 MB / 434.2 MB, free: 15.51 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005742/0.8328, allocations: 49.7 kB / 434.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002418/0.8353, allocations: 1.256 MB / 435.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001318/0.8367, allocations: 452.7 kB / 435.9 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003036/0.837, allocations: 32 kB / 436 MB, free: 13.72 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004235/0.8375, allocations: 366.8 kB / 436.3 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00436/0.8419, allocations: 0.8315 MB / 437.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004949/0.8469, allocations: 1.178 MB / 438.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005009/0.852, allocations: 1.037 MB / 439.4 MB, free: 10.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-05/0.8521, allocations: 4 kB / 439.4 MB, free: 10.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.01322/0.8653, allocations: 2.435 MB / 441.8 MB, free: 7.707 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.372e-05/0.8655, allocations: 9.5 kB / 441.8 MB, free: 7.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.485e-05/0.8655, allocations: 12 kB / 441.8 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005755/0.8713, allocations: 0.4993 MB / 442.3 MB, free: 7.188 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004415/0.8758, allocations: 327.5 kB / 442.7 MB, free: 6.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01526/0.8911, allocations: 4.357 MB / 447 MB, free: 2.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004214/0.8954, allocations: 83.98 kB / 447.1 MB, free: 2.301 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006982/0.8962, allocations: 64.92 kB / 447.2 MB, free: 2.238 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.005473/0.9017, allocations: 1.049 MB / 448.2 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001404/0.9031, allocations: 185.8 kB / 448.4 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/0.9147, allocations: 2.188 MB / 450.6 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001182/0.9149, allocations: 19.98 kB / 450.6 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.487e-05/0.915, allocations: 8 kB / 450.6 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.684e-05/0.915, allocations: 3.984 kB / 450.6 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02786/0.9429, allocations: 5.155 MB / 455.8 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.173e-05/0.943, allocations: 0 / 455.8 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003419/0.9465, allocations: 235.7 kB / 456 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00563/0.9522, allocations: 486.4 kB / 456.5 MB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004921/0.9527, allocations: 29.23 kB / 456.5 MB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01514/0.9679, allocations: 4.3 MB / 460.8 MB, free: 4.398 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.217e-05/0.968, allocations: 3.984 kB / 460.8 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01578/0.9838, allocations: 3.306 MB / 464.1 MB, free: 1.051 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003009/0.9869, allocations: 466.7 kB / 464.6 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001478/0.9884, allocations: 24.62 kB / 464.6 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004099/0.9926, allocations: 108.8 kB / 464.7 MB, free: 456 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008474/0.9935, allocations: 84.86 kB / 464.8 MB, free: 372 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003595/0.9939, allocations: 40.61 kB / 464.8 MB, free: 332 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.006344/1, allocations: 1.326 MB / 466.1 MB, free: 15 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.222e-06/1, allocations: 0 / 466.1 MB, free: 15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006171/1.007, allocations: 0.5561 MB / 466.7 MB, free: 14.45 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.001334/1.008, allocations: 187.3 kB / 466.9 MB, free: 14.26 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01088/1.019, allocations: 2.227 MB / 469.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/1.019, allocations: 0 / 469.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006276/1.025, allocations: 1.223 MB / 470.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006575/1.032, allocations: 487.2 kB / 470.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03083/1.063, allocations: 6.727 MB / 477.5 MB, free: 3.539 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007879/1.071, allocations: 2.417 MB / 479.9 MB, free: 1.094 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001879/1.073, allocations: 139.4 kB / 480.1 MB, free: 0.957 MB / 346.7 MB Notification: Performance of SimCode: time 4.759e-06/1.073, allocations: 4 kB / 480.1 MB, free: 0.9531 MB / 346.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] .