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.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|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") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002576/0.002575, allocations: 183.4 kB / 16.4 MB, free: 5.746 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.645/3.645, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001862/0.001862, allocations: 103.8 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007622/0.0007621, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6852/0.686, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.05237/0.7385, allocations: 19.27 MB / 393.8 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02724/0.7658, allocations: 6.944 MB / 400.7 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007772/0.7737, allocations: 119.5 kB / 400.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008542/0.7823, allocations: 1.154 MB / 402 MB, free: 21.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01514/0.7975, allocations: 2.042 MB / 404.1 MB, free: 19.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007838/0.8054, allocations: 0.9679 MB / 405 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01765/0.8231, allocations: 4.836 MB / 409.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01373/0.8369, allocations: 3.678 MB / 413.5 MB, free: 9.715 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008143/0.8452, allocations: 2.195 MB / 415.7 MB, free: 7.512 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009834/0.8551, allocations: 2.739 MB / 418.5 MB, free: 4.762 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003878/0.8591, allocations: 360 kB / 418.8 MB, free: 4.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006445/0.8656, allocations: 0.6987 MB / 419.5 MB, free: 3.711 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00484/0.8706, allocations: 1.437 MB / 421 MB, free: 2.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004824/0.8755, allocations: 1.276 MB / 422.2 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02509/0.9007, allocations: 9.205 MB / 431.4 MB, free: 7.754 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.9008, allocations: 4 kB / 431.4 MB, free: 7.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.238e-06/0.9008, allocations: 0 / 431.4 MB, free: 7.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004943/0.9013, allocations: 0 / 431.4 MB, free: 7.75 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.0423/0.9437, allocations: 6.289 MB / 437.7 MB, free: 1.379 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.164e-05/0.9438, allocations: 8.031 kB / 437.7 MB, free: 1.371 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01779/0.9616, allocations: 1.226 MB / 439 MB, free: 140 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02198/0.9837, allocations: 3.617 MB / 442.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001286/0.985, allocations: 439.4 kB / 443 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004327/0.9894, allocations: 0.5546 MB / 443.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0441/1.034, allocations: 7.221 MB / 450.8 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000536/1.034, allocations: 7.906 kB / 450.8 MB, free: 4.176 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002947/1.037, allocations: 235.9 kB / 451 MB, free: 3.945 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007695/1.038, allocations: 263.3 kB / 451.3 MB, free: 3.688 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03647/1.075, allocations: 6.134 MB / 457.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1133/1.188, allocations: 23.89 MB / 481.3 MB, free: 5.012 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02605/1.214, allocations: 8.741 MB / 490.1 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03823/1.252, allocations: 6.723 MB / 496.8 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001128/1.253, allocations: 56.56 kB / 496.8 MB, free: 4.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=250): time 1.095e-05/1.253, allocations: 0 / 496.8 MB, free: 4.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=296): time 0.7125/1.965, allocations: 15.73 MB / 0.5005 GB, free: 99.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/1.966, allocations: 85.86 kB / 0.5006 GB, free: 98.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01574/1.981, allocations: 3.408 MB / 0.504 GB, free: 97.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009759/1.982, allocations: 73.48 kB / 0.504 GB, free: 97.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003769/1.986, allocations: 2.468 MB / 0.5064 GB, free: 95.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002424/1.989, allocations: 1.004 MB / 0.5074 GB, free: 94.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009363/1.99, allocations: 78.89 kB / 0.5075 GB, free: 94.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005795/1.99, allocations: 456.6 kB / 0.5079 GB, free: 94.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01049/2.001, allocations: 1.614 MB / 0.5095 GB, free: 93.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009155/2.01, allocations: 2.783 MB / 0.5122 GB, free: 91.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009378/2.02, allocations: 2.08 MB / 0.5143 GB, free: 90.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.863e-05/2.02, allocations: 12 kB / 0.5143 GB, free: 90.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.02636/2.046, allocations: 5.383 MB / 0.5195 GB, free: 84.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.331e-05/2.046, allocations: 21.41 kB / 0.5195 GB, free: 84.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001074/2.046, allocations: 36.62 kB / 0.5196 GB, free: 84.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003905/2.05, allocations: 0.6852 MB / 0.5202 GB, free: 84.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009014/2.059, allocations: 0.9048 MB / 0.5211 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02215/2.082, allocations: 9.725 MB / 0.5306 GB, free: 72.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008768/2.091, allocations: 235.6 kB / 0.5308 GB, free: 72.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001288/2.092, allocations: 172.8 kB / 0.531 GB, free: 72.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 169 * 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 (437): * Single equations (assignments): 427 * Array equations: 4 * 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 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008447/2.1, allocations: 1.625 MB / 0.5326 GB, free: 70.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002765/2.103, allocations: 387.3 kB / 0.533 GB, free: 70.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02251/2.126, allocations: 4.716 MB / 0.5376 GB, free: 65.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001268/2.126, allocations: 39.84 kB / 0.5376 GB, free: 65.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.849e-05/2.126, allocations: 8 kB / 0.5376 GB, free: 65.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001197/2.126, allocations: 15.94 kB / 0.5376 GB, free: 65.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04732/2.174, allocations: 10.45 MB / 0.5478 GB, free: 54.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-05/2.174, allocations: 7.938 kB / 0.5479 GB, free: 54.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006388/2.18, allocations: 0.5426 MB / 0.5484 GB, free: 54.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004612/2.185, allocations: 0.7529 MB / 0.5491 GB, free: 53.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008632/2.186, allocations: 75.92 kB / 0.5492 GB, free: 53.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02645/2.212, allocations: 13.2 MB / 0.5621 GB, free: 39.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.679e-05/2.212, allocations: 11.94 kB / 0.5621 GB, free: 39.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02822/2.241, allocations: 7.678 MB / 0.5696 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006391/2.247, allocations: 0.7919 MB / 0.5704 GB, free: 30.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002575/2.25, allocations: 71.98 kB / 0.5704 GB, free: 30.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006921/2.257, allocations: 191.8 kB / 0.5706 GB, free: 30.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001546/2.258, allocations: 225.1 kB / 0.5708 GB, free: 30.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006594/2.259, allocations: 87.97 kB / 0.5709 GB, free: 30.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.009539/2.269, allocations: 2.29 MB / 0.5732 GB, free: 27.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.342e-06/2.269, allocations: 4 kB / 0.5732 GB, free: 27.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01109/2.28, allocations: 1.115 MB / 0.5742 GB, free: 26.63 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (252): * Single equations (assignments): 242 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001782/2.282, allocations: 248 kB / 0.5745 GB, free: 26.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01889/2.301, allocations: 4.844 MB / 0.5792 GB, free: 21.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.507e-05/2.301, allocations: 4 kB / 0.5792 GB, free: 21.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01208/2.313, allocations: 2.969 MB / 0.5821 GB, free: 18.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00942/2.322, allocations: 0.8381 MB / 0.5829 GB, free: 17.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04681/2.369, allocations: 12.64 MB / 0.5953 GB, free: 4.777 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009978/2.379, allocations: 3.534 MB / 0.5987 GB, free: 1.215 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003054/2.382, allocations: 295.4 kB / 0.599 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of SimCode: time 2.225e-06/2.382, allocations: 3.938 kB / 0.599 GB, free: 0.9219 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(sineVoltage.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(smeeE.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(smeeM.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(sineVoltage.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(smeeM.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(smeeE.is)[1] .