Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001632/0.001632, allocations: 188.9 kB / 16.4 MB, free: 5.625 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.29/2.29, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001286/0.001286, allocations: 82.88 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.0004013, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1031, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator): time 0.01727/0.1205, allocations: 9.251 MB / 383.9 MB, free: 6.039 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01045/0.131, allocations: 3.8 MB / 387.7 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002275/0.1333, allocations: 51.75 kB / 387.7 MB, free: 2.184 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003325/0.1367, allocations: 0.6687 MB / 388.4 MB, free: 1.512 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004409/0.1412, allocations: 0.8217 MB / 389.2 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002166/0.1434, allocations: 331.5 kB / 389.6 MB, free: 372 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.2774/0.4209, allocations: 2.095 MB / 391.7 MB, free: 9.82 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003873/0.4248, allocations: 1.692 MB / 393.3 MB, free: 9.531 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003199/0.428, allocations: 1.007 MB / 394.4 MB, free: 9.531 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004036/0.4321, allocations: 1.325 MB / 395.7 MB, free: 9.527 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001322/0.4335, allocations: 161.2 kB / 395.8 MB, free: 9.527 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002766/0.4363, allocations: 354.4 kB / 396.2 MB, free: 9.527 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002093/0.4385, allocations: 0.7669 MB / 397 MB, free: 9.523 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002007/0.4405, allocations: 0.5849 MB / 397.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007461/0.448, allocations: 4.003 MB / 401.5 MB, free: 8.805 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4481, allocations: 0 / 401.5 MB, free: 8.805 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4481, allocations: 1.062 kB / 401.5 MB, free: 8.805 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001993/0.4483, allocations: 0 / 401.5 MB, free: 8.805 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.01193/0.4603, allocations: 2.977 MB / 404.5 MB, free: 7.043 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.002e-05/0.4603, allocations: 8.938 kB / 404.5 MB, free: 7.043 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001595/0.462, allocations: 365.5 kB / 404.9 MB, free: 6.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002857/0.4648, allocations: 411.2 kB / 405.3 MB, free: 6.742 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005714/0.4706, allocations: 1.672 MB / 407 MB, free: 6.027 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003346/0.471, allocations: 199.7 kB / 407.2 MB, free: 6.016 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/0.4721, allocations: 251 kB / 407.4 MB, free: 6.012 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01149/0.4836, allocations: 3.219 MB / 410.6 MB, free: 5.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000143/0.4838, allocations: 3.031 kB / 410.6 MB, free: 5.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006114/0.4844, allocations: 103.8 kB / 410.7 MB, free: 5.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002284/0.4847, allocations: 120.8 kB / 410.8 MB, free: 5.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009376/0.4941, allocations: 2.703 MB / 413.5 MB, free: 4.199 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03233/0.5264, allocations: 10.42 MB / 424 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004579/0.5311, allocations: 1.786 MB / 425.8 MB, free: 8.453 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005203/0.5317, allocations: 198.6 kB / 425.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.228e-05/0.5317, allocations: 43.56 kB / 426 MB, free: 8.176 MB / 298.7 MB Notification: Performance of pre-optimization done (n=115): time 4.638e-06/0.5317, allocations: 0 / 426 MB, free: 8.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=134): time 0.03518/0.5669, allocations: 7.875 MB / 433.9 MB, free: 156 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.5671, allocations: 72.67 kB / 433.9 MB, free: 68 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005509/0.5726, allocations: 1.841 MB / 435.8 MB, free: 14.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000408/0.573, allocations: 45.7 kB / 435.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/0.5745, allocations: 1.181 MB / 437 MB, free: 12.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000904/0.5755, allocations: 464.3 kB / 437.5 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.5757, allocations: 28 kB / 437.5 MB, free: 12.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002439/0.5759, allocations: 382.8 kB / 437.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003014/0.579, allocations: 0.8254 MB / 438.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003558/0.5826, allocations: 1.312 MB / 440 MB, free: 9.773 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003395/0.586, allocations: 1.028 MB / 441 MB, free: 8.746 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.269e-05/0.5861, allocations: 4 kB / 441 MB, free: 8.742 MB / 314.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.009047/0.5952, allocations: 2.679 MB / 443.7 MB, free: 6.027 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.806e-05/0.5953, allocations: 12 kB / 443.7 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.376e-05/0.5953, allocations: 18.19 kB / 443.7 MB, free: 6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001756/0.5971, allocations: 403.4 kB / 444.1 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003404/0.6006, allocations: 415.3 kB / 444.5 MB, free: 5.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009998/0.6106, allocations: 5.208 MB / 449.7 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/0.6139, allocations: 131.8 kB / 449.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004838/0.6144, allocations: 75.98 kB / 449.9 MB, free: 15.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (190): * Single equations (assignments): 185 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 12,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002953/0.6174, allocations: 0.786 MB / 450.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008929/0.6183, allocations: 201.5 kB / 450.9 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008161/0.6265, allocations: 2.402 MB / 453.3 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.189e-05/0.6266, allocations: 12 kB / 453.3 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/0.6266, allocations: 8 kB / 453.3 MB, free: 12.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.125e-05/0.6267, allocations: 10.16 kB / 453.4 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01798/0.6447, allocations: 5.263 MB / 458.6 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.537e-05/0.6447, allocations: 4.656 kB / 458.6 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002455/0.6472, allocations: 270.1 kB / 458.9 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00221/0.6495, allocations: 442 kB / 459.3 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003339/0.6498, allocations: 31.98 kB / 459.4 MB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0121/0.662, allocations: 6.689 MB / 466 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/0.662, allocations: 7.938 kB / 466 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/0.6737, allocations: 3.909 MB / 470 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/0.6757, allocations: 454.5 kB / 470.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006384/0.6764, allocations: 35.98 kB / 470.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002484/0.6789, allocations: 107.9 kB / 470.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005434/0.6795, allocations: 112.7 kB / 470.7 MB, free: 9.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/0.6797, allocations: 43.98 kB / 470.7 MB, free: 9.938 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003987/0.6837, allocations: 1.267 MB / 472 MB, free: 8.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.124e-06/0.6837, allocations: 0 / 472 MB, free: 8.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004034/0.6878, allocations: 0.5414 MB / 472.5 MB, free: 8.141 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.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 (118): * Single equations (assignments): 113 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.01325/0.7011, allocations: 5.664 MB / 478.2 MB, free: 2.289 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008071/0.7092, allocations: 2.431 MB / 480.6 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.195e-05/0.7093, allocations: 0.8125 kB / 480.6 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005129/0.7144, allocations: 1.502 MB / 482.1 MB, free: 14.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004179/0.7186, allocations: 420.1 kB / 482.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06339/0.7821, allocations: 26.56 MB / 0.4971 GB, free: 2.117 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003322/0.7855, allocations: 2.024 MB / 0.4991 GB, free: 64 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003082/0.7886, allocations: 1.006 MB / 0.5001 GB, free: 15.08 MB / 394.7 MB Notification: Performance of SimCode: time 1.734e-06/0.7887, allocations: 0 / 0.5001 GB, free: 15.08 MB / 394.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(smee.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] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[2] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[3] - terminalBox.plug_sn.pin[3].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(smee.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] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[2] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[3] - terminalBox.plug_sn.pin[3].v})[1] .