Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006819/0.006825, allocations: 186.3 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 4.015/4.015, allocations: 205.4 MB / 222.5 MB, free: 13.59 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.001964/0.001964, allocations: 94.86 kB / 270.9 MB, free: 13.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 11.98 kB / 327 MB, free: 15.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2717, allocations: 47.58 MB / 374.6 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.8018/1.074, allocations: 23.48 MB / 398 MB, free: 9.469 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.06006/1.134, allocations: 7.954 MB / 406 MB, free: 5.602 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0257/1.16, allocations: 163.1 kB / 406.1 MB, free: 5.559 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02408/1.184, allocations: 1.406 MB / 407.5 MB, free: 4.812 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02087/1.205, allocations: 2.408 MB / 410 MB, free: 3.145 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01049/1.215, allocations: 1.154 MB / 411.1 MB, free: 2.453 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.03197/1.247, allocations: 6.983 MB / 418.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03187/1.279, allocations: 6.127 MB / 424.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01448/1.294, allocations: 3.184 MB / 427.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01676/1.311, allocations: 3.894 MB / 431.3 MB, free: 4.555 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005141/1.316, allocations: 0.5352 MB / 431.8 MB, free: 4.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009712/1.326, allocations: 0.8393 MB / 432.7 MB, free: 3.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00729/1.333, allocations: 1.935 MB / 434.6 MB, free: 1.238 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008457/1.342, allocations: 1.892 MB / 436.5 MB, free: 15.33 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04122/1.383, allocations: 14.28 MB / 450.8 MB, free: 1.012 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/1.383, allocations: 0 / 450.8 MB, free: 1.012 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.319e-06/1.383, allocations: 0 / 450.8 MB, free: 1.012 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0007371/1.384, allocations: 0 / 450.8 MB, free: 1.012 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.07789/1.462, allocations: 9.292 MB / 460.1 MB, free: 7.617 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.353e-05/1.462, allocations: 8.031 kB / 460.1 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02926/1.491, allocations: 2.089 MB / 462.2 MB, free: 5.508 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03329/1.524, allocations: 5.417 MB / 467.6 MB, free: 24 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001932/1.526, allocations: 0.646 MB / 468.2 MB, free: 15.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005849/1.532, allocations: 0.8513 MB / 469.1 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06878/1.601, allocations: 11.33 MB / 480.4 MB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007664/1.602, allocations: 3.906 kB / 480.4 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004339/1.607, allocations: 360 kB / 480.8 MB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009786/1.608, allocations: 381.5 kB / 481.1 MB, free: 2.383 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05683/1.664, allocations: 9.649 MB / 490.8 MB, free: 8.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1745/1.839, allocations: 36 MB / 0.5144 GB, free: 3.82 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04415/1.883, allocations: 16.96 MB / 0.531 GB, free: 1.023 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026/2.91, allocations: 9.388 MB / 0.5402 GB, free: 98.28 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000163/2.91, allocations: 68.42 kB / 0.5402 GB, free: 98.24 MB / 410.8 MB Notification: Performance of pre-optimization done (n=330): time 1.405e-05/2.91, allocations: 0 / 0.5402 GB, free: 98.24 MB / 410.8 MB Notification: Performance of matching and sorting (n=384): time 0.1042/3.014, allocations: 16.86 MB / 0.5567 GB, free: 95.46 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/3.015, allocations: 92.72 kB / 0.5568 GB, free: 95.39 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01917/3.034, allocations: 4.414 MB / 0.5611 GB, free: 94.11 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001134/3.035, allocations: 85.45 kB / 0.5612 GB, free: 94.03 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005097/3.04, allocations: 3.581 MB / 0.5647 GB, free: 91.19 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002893/3.043, allocations: 1.297 MB / 0.5659 GB, free: 90.18 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008792/3.044, allocations: 91 kB / 0.566 GB, free: 90.11 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0005504/3.045, allocations: 497.7 kB / 0.5665 GB, free: 89.71 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009538/3.054, allocations: 2.009 MB / 0.5685 GB, free: 88.95 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01176/3.066, allocations: 3.42 MB / 0.5718 GB, free: 86.38 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01161/3.078, allocations: 2.601 MB / 0.5744 GB, free: 84.2 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.684e-05/3.078, allocations: 12 kB / 0.5744 GB, free: 84.18 MB / 410.8 MB Notification: Performance of matching and sorting (n=601) (initialization): time 0.03201/3.11, allocations: 6.462 MB / 0.5807 GB, free: 77.95 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/3.11, allocations: 24 kB / 0.5807 GB, free: 77.92 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001306/3.11, allocations: 48.06 kB / 0.5807 GB, free: 77.88 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005079/3.115, allocations: 0.7754 MB / 0.5815 GB, free: 77.09 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01165/3.127, allocations: 1.114 MB / 0.5826 GB, free: 76.04 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02538/3.153, allocations: 10.57 MB / 0.5929 GB, free: 65.02 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/3.163, allocations: 255.7 kB / 0.5932 GB, free: 64.77 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001713/3.165, allocations: 212 kB / 0.5934 GB, free: 64.56 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 201 * 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 (545): * Single equations (assignments): 537 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01249/3.178, allocations: 2.555 MB / 0.5959 GB, free: 62.07 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003035/3.181, allocations: 490 kB / 0.5963 GB, free: 61.58 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0299/3.211, allocations: 5.78 MB / 0.602 GB, free: 55.75 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001225/3.211, allocations: 40 kB / 0.602 GB, free: 55.71 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001063/3.211, allocations: 14.81 kB / 0.602 GB, free: 55.7 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001518/3.211, allocations: 21.89 kB / 0.602 GB, free: 55.68 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06096/3.272, allocations: 13.91 MB / 0.6156 GB, free: 41.67 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.355e-05/3.273, allocations: 16.86 kB / 0.6156 GB, free: 41.66 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007658/3.28, allocations: 0.6713 MB / 0.6163 GB, free: 41.02 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005771/3.286, allocations: 0.9096 MB / 0.6172 GB, free: 40.09 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001114/3.287, allocations: 99.95 kB / 0.6173 GB, free: 40 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03351/3.321, allocations: 14.34 MB / 0.6313 GB, free: 25.07 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.418e-05/3.321, allocations: 11.28 kB / 0.6313 GB, free: 25.07 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03423/3.355, allocations: 9.227 MB / 0.6403 GB, free: 15.48 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005989/3.361, allocations: 1.006 MB / 0.6413 GB, free: 14.45 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003169/3.364, allocations: 76 kB / 0.6414 GB, free: 14.38 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008519/3.373, allocations: 223.8 kB / 0.6416 GB, free: 14.16 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002067/3.375, allocations: 289.2 kB / 0.6418 GB, free: 13.88 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001308/3.377, allocations: 108 kB / 0.6419 GB, free: 13.77 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.01297/3.39, allocations: 2.984 MB / 0.6449 GB, free: 10.79 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.322e-06/3.39, allocations: 0 / 0.6449 GB, free: 10.79 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.01361/3.403, allocations: 1.495 MB / 0.6463 GB, free: 9.297 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (306): * Single equations (assignments): 299 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(2,100.0%) 13,(4,93.8%) 33,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001694/3.405, allocations: 251 kB / 0.6466 GB, free: 9.082 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.02352/3.429, allocations: 5.874 MB / 0.6523 GB, free: 3.258 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.848e-05/3.429, allocations: 4 kB / 0.6523 GB, free: 3.254 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01496/3.444, allocations: 3.57 MB / 0.6558 GB, free: 15.69 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0138/3.458, allocations: 1.075 MB / 0.6568 GB, free: 14.62 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0773/3.535, allocations: 18.02 MB / 0.6744 GB, free: 12.51 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01819/3.553, allocations: 5.113 MB / 0.6794 GB, free: 7.352 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004284/3.558, allocations: 363.4 kB / 0.6798 GB, free: 6.996 MB / 442.8 MB Notification: Performance of SimCode: time 2.475e-06/3.558, allocations: 4 kB / 0.6798 GB, free: 6.992 MB / 442.8 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(sineVoltage3.v)[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(smee3.is)[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(sineVoltage3.v)[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(smee3.is)[1] .