Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.stray.port_p.Phi.im|smee3.stator.stray.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.stray.port_p.Phi.im|smee3.stator.stray.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001062, allocations: 102.3 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 227.2 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000298/0.000298, allocations: 8 kB / 306.6 MB, free: 1.379 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1122, allocations: 51.49 MB / 358.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase): time 0.1805/0.2927, allocations: 24.54 MB / 382.6 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01592/0.3087, allocations: 8.309 MB / 391 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005423/0.3142, allocations: 175.1 kB / 391.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005369/0.3196, allocations: 1.446 MB / 392.6 MB, free: 2.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01119/0.3308, allocations: 2.538 MB / 395.1 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005431/0.3362, allocations: 1.174 MB / 396.3 MB, free: 128 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01708/0.3533, allocations: 7.107 MB / 403.4 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01302/0.3664, allocations: 6.246 MB / 409.6 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007917/0.3743, allocations: 3.199 MB / 412.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008323/0.3827, allocations: 3.898 MB / 416.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002707/0.3854, allocations: 0.5312 MB / 417.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004836/0.3903, allocations: 0.851 MB / 418.1 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003604/0.3939, allocations: 1.943 MB / 420.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004397/0.3983, allocations: 1.899 MB / 422 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01777/0.4161, allocations: 14.36 MB / 436.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.4162, allocations: 0 / 436.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.4162, allocations: 3.938 kB / 436.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006182/0.4168, allocations: 4 kB / 436.3 MB, free: 14.33 MB / 350.1 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.02723/0.4441, allocations: 9.346 MB / 445.7 MB, free: 4.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.4441, allocations: 8.031 kB / 445.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01266/0.4568, allocations: 2.182 MB / 447.9 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01584/0.4726, allocations: 5.674 MB / 453.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000847/0.4735, allocations: 0.6421 MB / 454.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002889/0.4764, allocations: 0.8475 MB / 455 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03216/0.5086, allocations: 11.35 MB / 466.4 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000422/0.5091, allocations: 7.906 kB / 466.4 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002249/0.5113, allocations: 360 kB / 466.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003866/0.5117, allocations: 377.5 kB / 467.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02094/0.5327, allocations: 9.704 MB / 476.8 MB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07758/0.6103, allocations: 36.17 MB / 0.501 GB, free: 472 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01836/0.6287, allocations: 18.12 MB / 0.5186 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02056/0.6493, allocations: 10.38 MB / 0.5288 GB, free: 1.426 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.753e-05/0.6494, allocations: 73.09 kB / 0.5289 GB, free: 1.344 MB / 446.1 MB Notification: Performance of pre-optimization done (n=324): time 5.911e-06/0.6494, allocations: 0 / 0.5289 GB, free: 1.344 MB / 446.1 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : (-smee3.is[3]) - smee3.is[2] - smee3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smee3.is[2] ; smee3.is[1] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; smee3.is[3] ] might be structurally or numerically singular for variable smee3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=429): time 0.4174/1.067, allocations: 20.3 MB / 0.5487 GB, free: 125.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/1.067, allocations: 95.2 kB / 0.5488 GB, free: 125.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008149/1.075, allocations: 4.443 MB / 0.5531 GB, free: 124.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001171/1.076, allocations: 93.45 kB / 0.5532 GB, free: 124.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00338/1.08, allocations: 3.864 MB / 0.557 GB, free: 121.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001886/1.082, allocations: 1.453 MB / 0.5584 GB, free: 120.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002665/1.082, allocations: 99.81 kB / 0.5585 GB, free: 120 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002143/1.082, allocations: 500 kB / 0.559 GB, free: 119.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003665/1.086, allocations: 2.314 MB / 0.5612 GB, free: 118.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003712/1.09, allocations: 3.73 MB / 0.5649 GB, free: 116 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003952/1.093, allocations: 2.944 MB / 0.5677 GB, free: 114.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.701e-05/1.094, allocations: 15.56 kB / 0.5678 GB, free: 114.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=646) (initialization): time 0.01214/1.106, allocations: 7.936 MB / 0.5755 GB, free: 110.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/1.106, allocations: 29.19 kB / 0.5755 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.134e-05/1.106, allocations: 44 kB / 0.5756 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002469/1.108, allocations: 1.23 MB / 0.5768 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004109/1.112, allocations: 1.12 MB / 0.5779 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01507/1.127, allocations: 18.07 MB / 0.5955 GB, free: 89.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005335/1.133, allocations: 291.7 kB / 0.5958 GB, free: 89.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006659/1.134, allocations: 216 kB / 0.596 GB, free: 89.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * 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 (549): * Single equations (assignments): 539 * 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: 6 * 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: 6 {(1,100.0%) 8,(2,100.0%) 13,(1,100.0%) 5,(4,93.8%) 33,(2,100.0%) 13,(3,88.9%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005336/1.139, allocations: 2.622 MB / 0.5986 GB, free: 86.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001394/1.14, allocations: 0.5017 MB / 0.5991 GB, free: 86.27 MB / 446.1 MB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too few equations, under-determined system. The model has 430 equation(s) and 431 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004843/1.145, allocations: 2.964 MB / 0.6019 GB, free: 83.29 MB / 446.1 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.