Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",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.002553/0.00256, allocations: 181.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 1.953/1.953, 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.001089/0.001089, allocations: 96.42 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003837, allocations: 16 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3202, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01593/0.3362, allocations: 10.96 MB / 385.6 MB, free: 37.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.3468, allocations: 4.62 MB / 390.2 MB, free: 33.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00251/0.3494, allocations: 59.75 kB / 390.3 MB, free: 33.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003422/0.3528, allocations: 0.8046 MB / 391.1 MB, free: 32.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005185/0.358, allocations: 1.199 MB / 392.3 MB, free: 31.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003025/0.3611, allocations: 0.6859 MB / 393 MB, free: 30.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006451/0.3676, allocations: 2.952 MB / 395.9 MB, free: 27.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003583/0.3712, allocations: 2.267 MB / 398.2 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002559/0.3738, allocations: 1.351 MB / 399.5 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003116/0.3769, allocations: 1.619 MB / 401.1 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007582/0.3777, allocations: 220 kB / 401.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002102/0.3799, allocations: 0.5112 MB / 401.9 MB, free: 21.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001263/0.3811, allocations: 0.9462 MB / 402.8 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.3824, allocations: 0.8082 MB / 403.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007278/0.3897, allocations: 5.902 MB / 409.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3898, allocations: 0 / 409.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3898, allocations: 4 kB / 409.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001946/0.39, allocations: 0 / 409.5 MB, free: 13.81 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.0147/0.4047, allocations: 4.258 MB / 413.8 MB, free: 9.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.4048, allocations: 8.031 kB / 413.8 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001852/0.4066, allocations: 0.5302 MB / 414.3 MB, free: 8.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006757/0.4134, allocations: 0.8848 MB / 415.2 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006641/0.4201, allocations: 2.507 MB / 417.7 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002416/0.4204, allocations: 254.8 kB / 418 MB, free: 5.207 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009646/0.4213, allocations: 339.8 kB / 418.3 MB, free: 4.875 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/0.4336, allocations: 4.537 MB / 422.8 MB, free: 300 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001273/0.4338, allocations: 0 / 422.8 MB, free: 300 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005058/0.4343, allocations: 144 kB / 423 MB, free: 156 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002386/0.4345, allocations: 158.8 kB / 423.1 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01304/0.4476, allocations: 3.903 MB / 427 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03829/0.4859, allocations: 14.24 MB / 441.3 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01264/0.4986, allocations: 6.958 MB / 448.2 MB, free: 5.785 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01035/0.509, allocations: 3.633 MB / 451.9 MB, free: 2.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.953e-05/0.5091, allocations: 56.52 kB / 451.9 MB, free: 2.008 MB / 330.7 MB Notification: Performance of pre-optimization done (n=169): time 5.38e-06/0.5091, allocations: 0 / 451.9 MB, free: 2.008 MB / 330.7 MB Notification: Performance of matching and sorting (n=189): time 0.02931/0.5384, allocations: 8.067 MB / 460 MB, free: 9.773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.5385, allocations: 73.41 kB / 460.1 MB, free: 9.688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005469/0.544, allocations: 2.565 MB / 462.6 MB, free: 7.098 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003727/0.5444, allocations: 61.69 kB / 462.7 MB, free: 7.031 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.5459, allocations: 1.49 MB / 464.2 MB, free: 5.523 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009031/0.5469, allocations: 0.6313 MB / 464.8 MB, free: 4.883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.5471, allocations: 40 kB / 464.8 MB, free: 4.844 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002234/0.5473, allocations: 394.7 kB / 465.2 MB, free: 4.449 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002769/0.5501, allocations: 0.9019 MB / 466.1 MB, free: 3.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003085/0.5532, allocations: 1.285 MB / 467.4 MB, free: 2.117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003205/0.5564, allocations: 1.126 MB / 468.5 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.436e-05/0.5564, allocations: 4 kB / 468.5 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.008941/0.5654, allocations: 2.891 MB / 471.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/0.5655, allocations: 8.938 kB / 471.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-05/0.5655, allocations: 12 kB / 471.5 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00259/0.5681, allocations: 0.5518 MB / 472 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003651/0.5718, allocations: 443.3 kB / 472.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01545/0.5873, allocations: 7.242 MB / 479.7 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002551/0.5899, allocations: 87.94 kB / 479.8 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002626/0.5901, allocations: 75.98 kB / 479.8 MB, free: 5.402 MB / 362.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 (199): * Single equations (assignments): 195 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,63.3%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00304/0.5932, allocations: 1.161 MB / 481 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007392/0.594, allocations: 260.8 kB / 481.3 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009067/0.603, allocations: 2.909 MB / 484.2 MB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.014e-05/0.6031, allocations: 20 kB / 484.2 MB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/0.6031, allocations: 8 kB / 484.2 MB, free: 1.008 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.813e-05/0.6032, allocations: 7.969 kB / 484.2 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01812/0.6213, allocations: 6.331 MB / 490.5 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/0.6214, allocations: 4 kB / 490.5 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002702/0.6241, allocations: 287.7 kB / 490.8 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002911/0.627, allocations: 0.6199 MB / 491.4 MB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002673/0.6273, allocations: 47.97 kB / 491.5 MB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2841/0.9114, allocations: 10.78 MB / 0.4905 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.9115, allocations: 0 / 0.4905 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/0.923, allocations: 4.237 MB / 0.4946 GB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/0.9247, allocations: 0.5367 MB / 0.4952 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005297/0.9252, allocations: 42.56 kB / 0.4952 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/0.9273, allocations: 92.92 kB / 0.4953 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005314/0.9278, allocations: 142.4 kB / 0.4954 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000189/0.928, allocations: 54.78 kB / 0.4955 GB, free: 102.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003975/0.932, allocations: 1.8 MB / 0.4972 GB, free: 101.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.9321, allocations: 0 / 0.4972 GB, free: 101.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003906/0.936, allocations: 0.6973 MB / 0.4979 GB, free: 101.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi,PI.x) * 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 (129): * Single equations (assignments): 123 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0131/0.9491, allocations: 5.398 MB / 0.5032 GB, free: 99.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007742/0.9569, allocations: 2.842 MB / 0.506 GB, free: 97.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.957, allocations: 0 / 0.506 GB, free: 97.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004818/0.9618, allocations: 1.972 MB / 0.5079 GB, free: 96.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003841/0.9657, allocations: 0.5318 MB / 0.5084 GB, free: 96.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06037/1.026, allocations: 28.56 MB / 0.5363 GB, free: 67.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002787/1.029, allocations: 2.649 MB / 0.5389 GB, free: 64.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00277/1.032, allocations: 1.436 MB / 0.5403 GB, free: 63.28 MB / 378.7 MB Notification: Performance of SimCode: time 1.353e-06/1.032, allocations: 1.641 kB / 0.5403 GB, free: 63.28 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({-sineVoltage.i[1], -sineVoltage.i[2], -sineVoltage.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(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({-sineVoltage.i[1], -sineVoltage.i[2], -sineVoltage.i[3]})[1] .