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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",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.002217/0.002217, allocations: 183.1 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 2.063/2.063, 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.001161/0.001161, allocations: 105.6 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003895, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3239, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.03374/0.3577, allocations: 23.48 MB / 398.1 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01944/0.3772, allocations: 7.952 MB / 406.1 MB, free: 17.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00604/0.3832, allocations: 159.4 kB / 406.2 MB, free: 17.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006152/0.3894, allocations: 1.406 MB / 407.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01067/0.4002, allocations: 2.401 MB / 410 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006257/0.4065, allocations: 1.182 MB / 411.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01508/0.4216, allocations: 6.964 MB / 418.2 MB, free: 5.203 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0128/0.4344, allocations: 6.127 MB / 424.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007398/0.4419, allocations: 3.188 MB / 427.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009132/0.4511, allocations: 3.894 MB / 431.4 MB, free: 7.906 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00297/0.4541, allocations: 0.5352 MB / 431.9 MB, free: 7.371 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005163/0.4593, allocations: 0.8276 MB / 432.7 MB, free: 6.543 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004199/0.4636, allocations: 1.943 MB / 434.7 MB, free: 4.594 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004528/0.4681, allocations: 1.899 MB / 436.6 MB, free: 2.684 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02357/0.4918, allocations: 14.27 MB / 450.9 MB, free: 4.367 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.4918, allocations: 0 / 450.9 MB, free: 4.367 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.492e-06/0.4918, allocations: 4 kB / 450.9 MB, free: 4.363 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005742/0.4924, allocations: 0 / 450.9 MB, free: 4.363 MB / 330.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.0395/0.5319, allocations: 9.28 MB / 460.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.201e-05/0.532, allocations: 15.97 kB / 460.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004863/0.5369, allocations: 1.177 MB / 461.3 MB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.018/0.555, allocations: 2.085 MB / 463.4 MB, free: 7.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01882/0.5738, allocations: 5.417 MB / 468.8 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001079/0.575, allocations: 0.646 MB / 469.5 MB, free: 1.547 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00341/0.5784, allocations: 0.8513 MB / 470.3 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03996/0.6184, allocations: 11.33 MB / 481.7 MB, free: 5.281 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004408/0.6189, allocations: 15.89 kB / 481.7 MB, free: 5.266 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002583/0.6215, allocations: 352 kB / 482 MB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005731/0.6221, allocations: 377.5 kB / 482.4 MB, free: 4.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03426/0.6564, allocations: 9.653 MB / 492 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6207/1.277, allocations: 36 MB / 0.5157 GB, free: 77.29 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02465/1.302, allocations: 16.96 MB / 0.5322 GB, free: 61.44 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02503/1.327, allocations: 9.384 MB / 0.5414 GB, free: 54.67 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.088e-05/1.327, allocations: 83.7 kB / 0.5415 GB, free: 54.59 MB / 378.8 MB Notification: Performance of pre-optimization done (n=330): time 7.755e-06/1.327, allocations: 0 / 0.5415 GB, free: 54.59 MB / 378.8 MB Notification: Performance of matching and sorting (n=384): time 0.05937/1.386, allocations: 16.86 MB / 0.5579 GB, free: 38.09 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/1.386, allocations: 90.41 kB / 0.558 GB, free: 37.98 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009022/1.395, allocations: 4.42 MB / 0.5623 GB, free: 33.56 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006966/1.396, allocations: 93.7 kB / 0.5624 GB, free: 33.46 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002614/1.399, allocations: 3.567 MB / 0.5659 GB, free: 29.87 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001519/1.4, allocations: 1.299 MB / 0.5672 GB, free: 28.58 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004453/1.401, allocations: 103.8 kB / 0.5673 GB, free: 28.48 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0002524/1.401, allocations: 497.1 kB / 0.5678 GB, free: 27.99 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005444/1.407, allocations: 2.008 MB / 0.5697 GB, free: 25.97 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006546/1.413, allocations: 3.413 MB / 0.5731 GB, free: 21.92 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006697/1.42, allocations: 2.595 MB / 0.5756 GB, free: 19.31 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-05/1.42, allocations: 16 kB / 0.5756 GB, free: 19.3 MB / 378.8 MB Notification: Performance of matching and sorting (n=601) (initialization): time 0.01775/1.438, allocations: 6.471 MB / 0.5819 GB, free: 12.76 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/1.438, allocations: 24.84 kB / 0.5819 GB, free: 12.74 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.312e-05/1.438, allocations: 44 kB / 0.582 GB, free: 12.7 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003156/1.441, allocations: 0.773 MB / 0.5827 GB, free: 11.91 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008152/1.449, allocations: 1.112 MB / 0.5838 GB, free: 10.79 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01563/1.465, allocations: 10.59 MB / 0.5942 GB, free: 15.68 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006302/1.471, allocations: 259.9 kB / 0.5944 GB, free: 15.43 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009587/1.472, allocations: 208 kB / 0.5946 GB, free: 15.23 MB / 394.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.007556/1.48, allocations: 2.546 MB / 0.5971 GB, free: 12.67 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001595/1.481, allocations: 490 kB / 0.5976 GB, free: 12.18 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01876/1.5, allocations: 5.779 MB / 0.6032 GB, free: 6.312 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-05/1.5, allocations: 47.94 kB / 0.6033 GB, free: 6.266 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.02e-05/1.5, allocations: 15.94 kB / 0.6033 GB, free: 6.25 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001015/1.501, allocations: 15.94 kB / 0.6033 GB, free: 6.234 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04047/1.541, allocations: 13.92 MB / 0.6169 GB, free: 8.129 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.608e-05/1.541, allocations: 4.75 kB / 0.6169 GB, free: 8.125 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005999/1.547, allocations: 0.6763 MB / 0.6176 GB, free: 7.449 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004149/1.551, allocations: 0.9045 MB / 0.6184 GB, free: 6.531 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006622/1.552, allocations: 91.97 kB / 0.6185 GB, free: 6.441 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02713/1.579, allocations: 14.34 MB / 0.6325 GB, free: 7.453 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.99e-05/1.579, allocations: 12.12 kB / 0.6325 GB, free: 7.441 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02602/1.605, allocations: 9.225 MB / 0.6415 GB, free: 13.8 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003711/1.609, allocations: 1.006 MB / 0.6425 GB, free: 12.77 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001527/1.611, allocations: 83.98 kB / 0.6426 GB, free: 12.69 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005272/1.616, allocations: 215.9 kB / 0.6428 GB, free: 12.48 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/1.617, allocations: 291.4 kB / 0.6431 GB, free: 12.2 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004202/1.618, allocations: 112 kB / 0.6432 GB, free: 12.09 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.008259/1.626, allocations: 2.996 MB / 0.6461 GB, free: 9.094 MB / 442.8 MB Notification: Performance of sort global known variables: time 6.61e-07/1.626, allocations: 0 / 0.6461 GB, free: 9.094 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.008361/1.634, allocations: 1.486 MB / 0.6476 GB, free: 7.613 MB / 442.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.3326/1.967, allocations: 11.07 MB / 0.6584 GB, free: 144.3 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.0155/1.983, allocations: 5.868 MB / 0.6641 GB, free: 142.5 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/1.983, allocations: 3.969 kB / 0.6641 GB, free: 142.5 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01002/1.993, allocations: 3.584 MB / 0.6676 GB, free: 140.7 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008327/2.001, allocations: 1.068 MB / 0.6687 GB, free: 140.4 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1501/2.151, allocations: 78.24 MB / 0.7451 GB, free: 69.95 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008097/2.159, allocations: 5.11 MB / 0.7501 GB, free: 64.8 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007124/2.166, allocations: 3.326 MB / 0.7533 GB, free: 61.48 MB / 442.8 MB Notification: Performance of SimCode: time 1.263e-06/2.166, allocations: 0 / 0.7533 GB, free: 61.48 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] .