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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",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.001516/0.001516, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001116/0.001116, allocations: 97.44 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003945/0.0003946, allocations: 11.98 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3219, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02674/0.3487, allocations: 19.27 MB / 393.9 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01591/0.3647, allocations: 6.948 MB / 400.9 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004957/0.3697, allocations: 119.5 kB / 401 MB, free: 22.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005193/0.375, allocations: 1.15 MB / 402.1 MB, free: 21.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008866/0.3839, allocations: 2.041 MB / 404.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00476/0.3887, allocations: 0.9679 MB / 405.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0108/0.3995, allocations: 4.841 MB / 410 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006835/0.4064, allocations: 3.67 MB / 413.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004389/0.4108, allocations: 2.191 MB / 415.8 MB, free: 7.496 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005209/0.4161, allocations: 2.743 MB / 418.6 MB, free: 4.742 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001594/0.4178, allocations: 360 kB / 418.9 MB, free: 4.391 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003225/0.421, allocations: 0.6948 MB / 419.6 MB, free: 3.695 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001959/0.423, allocations: 1.445 MB / 421.1 MB, free: 2.246 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002187/0.4252, allocations: 1.268 MB / 422.3 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01556/0.4408, allocations: 9.209 MB / 431.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.4409, allocations: 0 / 431.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4409, allocations: 0 / 431.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000345/0.4412, allocations: 0 / 431.5 MB, free: 7.734 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.02522/0.4665, allocations: 6.29 MB / 437.8 MB, free: 1.363 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.4665, allocations: 12.03 kB / 437.8 MB, free: 1.352 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002819/0.4694, allocations: 0.77 MB / 438.6 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009694/0.4791, allocations: 1.226 MB / 439.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/0.4911, allocations: 3.617 MB / 443.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006531/0.4918, allocations: 447.3 kB / 443.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002016/0.4938, allocations: 0.5546 MB / 444.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/0.5176, allocations: 7.214 MB / 451.7 MB, free: 3.383 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002327/0.518, allocations: 7.906 kB / 451.7 MB, free: 3.375 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001024/0.519, allocations: 232 kB / 451.9 MB, free: 3.148 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004472/0.5195, allocations: 271.3 kB / 452.2 MB, free: 2.883 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.021/0.5405, allocations: 6.127 MB / 458.3 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07438/0.6149, allocations: 23.9 MB / 482.2 MB, free: 4.211 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01539/0.6303, allocations: 8.746 MB / 490.9 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0217/0.6521, allocations: 6.716 MB / 497.6 MB, free: 3.602 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.088e-05/0.6522, allocations: 56.56 kB / 497.7 MB, free: 3.539 MB / 378.7 MB Notification: Performance of pre-optimization done (n=250): time 6.763e-06/0.6522, allocations: 0 / 497.7 MB, free: 3.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=296): time 0.3641/1.016, allocations: 15.72 MB / 0.5014 GB, free: 98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.306e-05/1.016, allocations: 93.12 kB / 0.5015 GB, free: 97.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/1.028, allocations: 3.405 MB / 0.5048 GB, free: 96.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000712/1.028, allocations: 73.91 kB / 0.5049 GB, free: 96.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002811/1.031, allocations: 2.475 MB / 0.5073 GB, free: 94.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001773/1.033, allocations: 0.9992 MB / 0.5083 GB, free: 93.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004755/1.034, allocations: 76.53 kB / 0.5083 GB, free: 93.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003599/1.034, allocations: 456.2 kB / 0.5088 GB, free: 93.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006743/1.041, allocations: 1.62 MB / 0.5104 GB, free: 92.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007899/1.049, allocations: 2.778 MB / 0.5131 GB, free: 90.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008256/1.057, allocations: 2.082 MB / 0.5151 GB, free: 89.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.176e-05/1.057, allocations: 11.34 kB / 0.5151 GB, free: 89.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.02186/1.079, allocations: 5.387 MB / 0.5204 GB, free: 83.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/1.079, allocations: 20 kB / 0.5204 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.578e-05/1.079, allocations: 36 kB / 0.5204 GB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004/1.083, allocations: 0.6908 MB / 0.5211 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009454/1.093, allocations: 0.8931 MB / 0.522 GB, free: 82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02028/1.113, allocations: 9.734 MB / 0.5315 GB, free: 71.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007744/1.121, allocations: 235.6 kB / 0.5317 GB, free: 71.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008686/1.122, allocations: 168 kB / 0.5319 GB, free: 71.36 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.006267/1.128, allocations: 1.625 MB / 0.5335 GB, free: 69.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001842/1.13, allocations: 395.2 kB / 0.5338 GB, free: 69.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0185/1.148, allocations: 4.714 MB / 0.5384 GB, free: 64.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.86e-05/1.149, allocations: 35.98 kB / 0.5385 GB, free: 64.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.99e-05/1.149, allocations: 12 kB / 0.5385 GB, free: 64.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.031e-05/1.149, allocations: 11.95 kB / 0.5385 GB, free: 64.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03934/1.188, allocations: 10.45 MB / 0.5487 GB, free: 53.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.538e-05/1.188, allocations: 4 kB / 0.5487 GB, free: 53.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006722/1.195, allocations: 0.5502 MB / 0.5492 GB, free: 53.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004829/1.2, allocations: 0.7412 MB / 0.55 GB, free: 52.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005512/1.2, allocations: 77.14 kB / 0.55 GB, free: 52.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02625/1.227, allocations: 13.2 MB / 0.5629 GB, free: 38.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.264e-05/1.227, allocations: 15.88 kB / 0.5629 GB, free: 38.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02133/1.248, allocations: 7.674 MB / 0.5704 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002589/1.251, allocations: 0.7929 MB / 0.5712 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008029/1.252, allocations: 67.98 kB / 0.5713 GB, free: 29.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00353/1.255, allocations: 199.4 kB / 0.5715 GB, free: 29.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006796/1.256, allocations: 221.8 kB / 0.5717 GB, free: 28.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002634/1.256, allocations: 91.92 kB / 0.5718 GB, free: 28.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004602/1.261, allocations: 2.294 MB / 0.574 GB, free: 26.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.261, allocations: 0 / 0.574 GB, free: 26.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005513/1.266, allocations: 1.113 MB / 0.5751 GB, free: 25.51 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.0172/1.283, allocations: 9.817 MB / 0.5847 GB, free: 15.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01102/1.294, allocations: 4.845 MB / 0.5894 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.295, allocations: 2.156 kB / 0.5894 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006994/1.302, allocations: 2.974 MB / 0.5923 GB, free: 7.305 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006823/1.308, allocations: 0.8432 MB / 0.5931 GB, free: 6.473 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3848/1.693, allocations: 59.96 MB / 0.6517 GB, free: 136.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005127/1.698, allocations: 3.525 MB / 0.6551 GB, free: 135.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004822/1.703, allocations: 2.25 MB / 0.6573 GB, free: 133.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.623e-06/1.703, allocations: 1.031 kB / 0.6573 GB, free: 133.6 MB / 426.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] .