Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.is.1.|smr3.is.2.|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.is.1.|smrM.is.2.|smrM.is.3.|smrM.is.4.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.is.1.|smr3.is.2.|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.is.1.|smrM.is.2.|smrM.is.3.|smrM.is.4.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 227.2 MB / 245 MB, free: 7.645 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009202/0.0009202, allocations: 92.5 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002337/0.0002339, allocations: 7.984 kB / 358 MB, free: 9.516 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2093, allocations: 51.47 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2966/0.5059, allocations: 116.8 MB / 0.5139 GB, free: 97.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003717/0.5063, allocations: 107.3 kB / 0.514 GB, free: 97.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5837/1.09, allocations: 165.5 MB / 0.6756 GB, free: 37.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.756e-06/1.09, allocations: 0 / 0.6756 GB, free: 37.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008073/1.091, allocations: 165.3 kB / 0.6758 GB, free: 37.69 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02234/1.113, allocations: 7.087 MB / 0.6827 GB, free: 35.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.113, allocations: 8.719 kB / 0.6827 GB, free: 35.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009464/1.123, allocations: 1.53 MB / 0.6842 GB, free: 35.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01416/1.137, allocations: 5.818 MB / 0.6899 GB, free: 34.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005967/1.138, allocations: 0.5129 MB / 0.6904 GB, free: 34.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002615/1.14, allocations: 0.6858 MB / 0.6911 GB, free: 34.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01814/1.158, allocations: 9.205 MB / 0.7 GB, free: 33.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001304/1.159, allocations: 10.8 kB / 0.7001 GB, free: 33.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000658/1.159, allocations: 297.7 kB / 0.7003 GB, free: 33.59 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002397/1.159, allocations: 324.2 kB / 0.7006 GB, free: 33.57 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0116/1.171, allocations: 7.572 MB / 0.708 GB, free: 33.51 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03807/1.209, allocations: 29.01 MB / 0.7364 GB, free: 28.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01226/1.221, allocations: 17.77 MB / 0.7537 GB, free: 12.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01102/1.233, allocations: 6.982 MB / 0.7605 GB, free: 8.637 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/1.233, allocations: 70.61 kB / 0.7606 GB, free: 8.574 MB / 442.7 MB Notification: Performance of pre-optimization done (n=275): time 4.719e-06/1.233, allocations: 0 / 0.7606 GB, free: 8.574 MB / 442.7 MB Warning: The linear system: 1 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] 2 : (-smr3.is[3]) - smr3.is[2] - smr3.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smr3.is[1] ; smr3.is[2] ] = [ smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ; smr3.is[3] ] might be structurally or numerically singular for variable smr3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=370): time 0.03265/1.265, allocations: 17.43 MB / 0.7776 GB, free: 0.5781 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/1.265, allocations: 88.5 kB / 0.7777 GB, free: 0.5117 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00538/1.271, allocations: 3.032 MB / 0.7807 GB, free: 15.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004073/1.271, allocations: 91.92 kB / 0.7808 GB, free: 15.65 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00219/1.273, allocations: 3.013 MB / 0.7837 GB, free: 13.37 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001106/1.274, allocations: 1.25 MB / 0.7849 GB, free: 12.39 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002265/1.275, allocations: 79.97 kB / 0.785 GB, free: 12.33 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002536/1.275, allocations: 475.5 kB / 0.7855 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002952/1.278, allocations: 1.903 MB / 0.7873 GB, free: 11.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003605/1.282, allocations: 2.919 MB / 0.7902 GB, free: 9.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003632/1.285, allocations: 2.434 MB / 0.7925 GB, free: 8.031 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.769e-05/1.285, allocations: 14.84 kB / 0.7926 GB, free: 8.027 MB / 458.7 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.01074/1.296, allocations: 6.677 MB / 0.7991 GB, free: 5.246 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/1.296, allocations: 21.59 kB / 0.7991 GB, free: 5.242 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.131e-05/1.296, allocations: 29.5 kB / 0.7991 GB, free: 5.242 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00303/1.299, allocations: 1.225 MB / 0.8003 GB, free: 4.809 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003531/1.303, allocations: 0.8676 MB / 0.8012 GB, free: 4.777 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0214/1.324, allocations: 20.52 MB / 0.8212 GB, free: 3.523 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00361/1.328, allocations: 202.5 kB / 0.8214 GB, free: 3.355 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000338/1.328, allocations: 169.3 kB / 0.8216 GB, free: 3.195 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * 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 (436): * Single equations (assignments): 426 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 8 * 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: 8 {(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(4,93.8%) 33,(2,100.0%) 12,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004503/1.333, allocations: 2.186 MB / 0.8237 GB, free: 1.312 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007807/1.333, allocations: 399.1 kB / 0.8241 GB, free: 0.918 MB / 474.7 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 384 equation(s) and 385 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009662/1.343, allocations: 2.997 MB / 0.827 GB, free: 15.96 MB / 490.7 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.