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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002563/0.002569, allocations: 189.2 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 3.826/3.826, 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.001792/0.001792, allocations: 106.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007629/0.0007636, allocations: 8 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2113, allocations: 47.59 MB / 374.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator): time 0.0268/0.2382, allocations: 9.243 MB / 383.8 MB, free: 6.137 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01644/0.2547, allocations: 3.8 MB / 387.6 MB, free: 2.332 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00359/0.2584, allocations: 47.75 kB / 387.6 MB, free: 2.285 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005204/0.2637, allocations: 0.6687 MB / 388.3 MB, free: 1.613 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007797/0.2716, allocations: 0.8217 MB / 389.1 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003021/0.2747, allocations: 335.5 kB / 389.5 MB, free: 472 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.4156/0.6903, allocations: 2.093 MB / 391.6 MB, free: 9.793 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006157/0.6966, allocations: 1.689 MB / 393.2 MB, free: 9.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00434/0.701, allocations: 1.014 MB / 394.3 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005803/0.7068, allocations: 1.318 MB / 395.6 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002082/0.709, allocations: 162.2 kB / 395.7 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004099/0.7132, allocations: 354.6 kB / 396.1 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00328/0.7166, allocations: 0.7724 MB / 396.9 MB, free: 9.492 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003304/0.72, allocations: 0.5824 MB / 397.4 MB, free: 9.449 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.7318, allocations: 3.999 MB / 401.4 MB, free: 8.754 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.7319, allocations: 4.562 kB / 401.4 MB, free: 8.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.7319, allocations: 0 / 401.4 MB, free: 8.75 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002335/0.7321, allocations: 0.5312 kB / 401.4 MB, free: 8.75 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.01831/0.7505, allocations: 2.981 MB / 404.4 MB, free: 6.984 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.085e-05/0.7506, allocations: 8.969 kB / 404.4 MB, free: 6.984 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004575/0.7552, allocations: 415.1 kB / 404.8 MB, free: 6.793 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009653/0.7649, allocations: 1.677 MB / 406.5 MB, free: 6.074 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005841/0.7655, allocations: 196.9 kB / 406.7 MB, free: 6.062 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001928/0.7675, allocations: 254.9 kB / 407 MB, free: 6.055 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01978/0.7874, allocations: 3.213 MB / 410.2 MB, free: 5.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002595/0.7877, allocations: 6.594 kB / 410.2 MB, free: 5.227 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001429/0.7891, allocations: 103.2 kB / 410.3 MB, free: 5.227 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003989/0.7896, allocations: 115.5 kB / 410.4 MB, free: 5.211 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01494/0.8046, allocations: 2.714 MB / 413.1 MB, free: 4.434 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04707/0.8517, allocations: 10.42 MB / 423.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006398/0.8582, allocations: 1.78 MB / 425.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007169/0.859, allocations: 206.5 kB / 425.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.596e-05/0.8591, allocations: 47.55 kB / 425.5 MB, free: 8.562 MB / 298.7 MB Notification: Performance of pre-optimization done (n=115): time 7.174e-06/0.8591, allocations: 0 / 425.5 MB, free: 8.562 MB / 298.7 MB Notification: Performance of matching and sorting (n=134): time 0.04971/0.9088, allocations: 7.873 MB / 433.4 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.485e-05/0.909, allocations: 64.72 kB / 433.5 MB, free: 472 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008008/0.917, allocations: 1.845 MB / 435.3 MB, free: 14.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005669/0.9177, allocations: 53.7 kB / 435.4 MB, free: 14.56 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002032/0.9197, allocations: 1.18 MB / 436.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001246/0.9211, allocations: 466.2 kB / 437 MB, free: 12.92 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/0.9214, allocations: 28 kB / 437 MB, free: 12.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003289/0.9218, allocations: 378.8 kB / 437.4 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004172/0.926, allocations: 0.8276 MB / 438.2 MB, free: 11.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005211/0.9313, allocations: 1.313 MB / 439.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004944/0.9363, allocations: 1.023 MB / 440.6 MB, free: 9.137 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.491e-05/0.9364, allocations: 4 kB / 440.6 MB, free: 9.133 MB / 314.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.01313/0.9496, allocations: 2.679 MB / 443.3 MB, free: 6.418 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.344e-05/0.9497, allocations: 16.28 kB / 443.3 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.345e-05/0.9498, allocations: 16 kB / 443.3 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002418/0.9522, allocations: 399.1 kB / 443.7 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004662/0.957, allocations: 411.3 kB / 444.1 MB, free: 5.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01464/0.9717, allocations: 5.211 MB / 449.3 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004807/0.9766, allocations: 139.7 kB / 449.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000728/0.9774, allocations: 75.94 kB / 449.5 MB, free: 15.91 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.00424/0.9816, allocations: 0.7824 MB / 450.3 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001231/0.9829, allocations: 201.5 kB / 450.5 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01207/0.995, allocations: 2.402 MB / 452.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001009/0.9952, allocations: 12 kB / 452.9 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.279e-05/0.9953, allocations: 7.984 kB / 452.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.535e-05/0.9953, allocations: 3.984 kB / 452.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02634/1.022, allocations: 5.263 MB / 458.2 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.712e-05/1.022, allocations: 7.938 kB / 458.2 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003317/1.025, allocations: 268.1 kB / 458.4 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003195/1.028, allocations: 438 kB / 458.9 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004854/1.029, allocations: 31.98 kB / 458.9 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01699/1.046, allocations: 6.689 MB / 465.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.149e-05/1.046, allocations: 11.94 kB / 465.6 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01613/1.062, allocations: 3.901 MB / 469.5 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00282/1.065, allocations: 461.8 kB / 469.9 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001371/1.067, allocations: 35.66 kB / 470 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004199/1.071, allocations: 115.9 kB / 470.1 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008903/1.072, allocations: 108.8 kB / 470.2 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002779/1.072, allocations: 43.98 kB / 470.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005905/1.078, allocations: 1.267 MB / 471.5 MB, free: 9.074 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.655e-06/1.078, allocations: 0 / 471.5 MB, free: 9.074 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006212/1.084, allocations: 0.543 MB / 472.1 MB, free: 8.531 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.001159/1.086, allocations: 174.1 kB / 472.2 MB, free: 8.352 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01079/1.096, allocations: 2.416 MB / 474.6 MB, free: 5.887 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.347e-05/1.097, allocations: 4.5 kB / 474.6 MB, free: 5.883 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007034/1.104, allocations: 1.509 MB / 476.2 MB, free: 4.336 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006017/1.11, allocations: 422 kB / 476.6 MB, free: 3.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.024/1.134, allocations: 6.127 MB / 482.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005829/1.14, allocations: 2.02 MB / 484.7 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001776/1.142, allocations: 143.4 kB / 484.9 MB, free: 11.52 MB / 362.7 MB Notification: Performance of SimCode: time 2.114e-06/1.142, allocations: 0 / 484.9 MB, free: 11.52 MB / 362.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] .