Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|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|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|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|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 197.2 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.258/1.258, allocations: 227.2 MB / 245 MB, free: 7.602 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008319/0.0008318, allocations: 100.1 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002187/0.0002186, allocations: 8 kB / 357.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.2001, allocations: 51.47 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3212/0.5213, allocations: 127.3 MB / 0.5241 GB, free: 48.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.5216, allocations: 101.2 kB / 0.5242 GB, free: 48.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2593/0.7809, allocations: 119.4 MB / 0.6408 GB, free: 6.785 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.781, allocations: 4 kB / 0.6408 GB, free: 6.781 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006041/0.7816, allocations: 131.8 kB / 0.6409 GB, free: 6.652 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01898/0.8006, allocations: 5.427 MB / 0.6462 GB, free: 1.145 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.8006, allocations: 8.031 kB / 0.6462 GB, free: 1.137 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00638/0.807, allocations: 0.9573 MB / 0.6471 GB, free: 176 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01391/0.821, allocations: 4.473 MB / 0.6515 GB, free: 11.62 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004857/0.8215, allocations: 386.3 kB / 0.6519 GB, free: 11.24 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001973/0.8235, allocations: 0.5037 MB / 0.6524 GB, free: 10.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01885/0.8423, allocations: 6.685 MB / 0.6589 GB, free: 3.852 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002754/0.8427, allocations: 15.89 kB / 0.6589 GB, free: 3.836 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001435/0.8441, allocations: 216.3 kB / 0.6591 GB, free: 3.625 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002768/0.8444, allocations: 242.2 kB / 0.6594 GB, free: 3.387 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01344/0.8579, allocations: 5.436 MB / 0.6647 GB, free: 13.94 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2719/1.13, allocations: 21.21 MB / 0.6854 GB, free: 61.88 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007155/1.137, allocations: 8.872 MB / 0.694 GB, free: 55.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008348/1.145, allocations: 5.304 MB / 0.6992 GB, free: 54.67 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/1.145, allocations: 53.12 kB / 0.6993 GB, free: 54.63 MB / 458.7 MB Notification: Performance of pre-optimization done (n=220): time 3.547e-06/1.145, allocations: 0 / 0.6993 GB, free: 54.63 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : (-smrM.is[3]) - smrM.is[2] - smrM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=271): time 0.02776/1.173, allocations: 14.56 MB / 0.7135 GB, free: 52.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/1.173, allocations: 81.08 kB / 0.7136 GB, free: 52.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003204/1.176, allocations: 2.525 MB / 0.716 GB, free: 51.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001659/1.177, allocations: 71.7 kB / 0.7161 GB, free: 51.86 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/1.178, allocations: 2.333 MB / 0.7184 GB, free: 51.11 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005574/1.178, allocations: 0.9204 MB / 0.7193 GB, free: 50.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/1.179, allocations: 68.56 kB / 0.7193 GB, free: 50.52 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/1.179, allocations: 435.5 kB / 0.7198 GB, free: 50.21 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/1.181, allocations: 1.49 MB / 0.7212 GB, free: 50.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00241/1.183, allocations: 2.351 MB / 0.7235 GB, free: 49.21 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002402/1.186, allocations: 1.89 MB / 0.7254 GB, free: 49.17 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/1.186, allocations: 8.656 kB / 0.7254 GB, free: 49.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=414) (initialization): time 0.007473/1.193, allocations: 5.346 MB / 0.7306 GB, free: 48.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/1.193, allocations: 18.53 kB / 0.7306 GB, free: 48.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-05/1.193, allocations: 29.5 kB / 0.7306 GB, free: 48.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002072/1.195, allocations: 0.9712 MB / 0.7316 GB, free: 48.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002387/1.198, allocations: 0.7184 MB / 0.7323 GB, free: 48.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/1.209, allocations: 14.45 MB / 0.7464 GB, free: 40.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003417/1.212, allocations: 203 kB / 0.7466 GB, free: 40.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003246/1.213, allocations: 137 kB / 0.7467 GB, free: 40.66 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * 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 (357): * Single equations (assignments): 349 * 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: 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 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003321/1.216, allocations: 1.55 MB / 0.7482 GB, free: 40.53 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007483/1.217, allocations: 329.2 kB / 0.7485 GB, free: 40.36 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : (-smrM.is[3]) - smrM.is[2] - smrM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007019/1.224, allocations: 4.86 MB / 0.7533 GB, free: 38.92 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/1.224, allocations: 28.98 kB / 0.7533 GB, free: 38.92 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/1.224, allocations: 11.25 kB / 0.7533 GB, free: 38.92 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/1.224, allocations: 15 kB / 0.7533 GB, free: 38.92 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : (-smrM.is[3]) - smrM.is[2] - smrM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01622/1.24, allocations: 9.917 MB / 0.763 GB, free: 34.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/1.24, allocations: 3.5 kB / 0.763 GB, free: 34.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00189/1.242, allocations: 465.5 kB / 0.7635 GB, free: 34.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002422/1.244, allocations: 1.01 MB / 0.7645 GB, free: 34.24 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002023/1.245, allocations: 68.03 kB / 0.7645 GB, free: 34.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01373/1.258, allocations: 19.06 MB / 0.7831 GB, free: 18.89 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/1.258, allocations: 3.625 kB / 0.7831 GB, free: 18.89 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : (-smrM.is[3]) - smrM.is[2] - smrM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009323/1.268, allocations: 7.081 MB / 0.7901 GB, free: 15.31 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001932/1.27, allocations: 0.7322 MB / 0.7908 GB, free: 14.84 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005366/1.27, allocations: 59.53 kB / 0.7908 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/1.272, allocations: 163.6 kB / 0.791 GB, free: 14.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004685/1.272, allocations: 199.4 kB / 0.7912 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001688/1.273, allocations: 77.56 kB / 0.7912 GB, free: 14.71 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002797/1.275, allocations: 1.929 MB / 0.7931 GB, free: 13.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.275, allocations: 0 / 0.7931 GB, free: 13.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003368/1.279, allocations: 1.087 MB / 0.7942 GB, free: 13.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.is[3],smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.stator.zeroInductor.i0,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * 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 (216): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(6,75.0%) 22,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006739/1.279, allocations: 490.4 kB / 0.7947 GB, free: 13.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006502/1.286, allocations: 4.898 MB / 0.7994 GB, free: 27.35 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/1.286, allocations: 3.188 kB / 0.7994 GB, free: 27.35 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003774/1.29, allocations: 3.108 MB / 0.8025 GB, free: 25.64 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003047/1.293, allocations: 0.7921 MB / 0.8033 GB, free: 25.42 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/1.307, allocations: 11.89 MB / 0.8149 GB, free: 16.78 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002612/1.31, allocations: 3.468 MB / 0.8183 GB, free: 14.16 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002781/1.312, allocations: 0.7914 MB / 0.819 GB, free: 13.62 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006509/1.313, allocations: 230.9 kB / 0.8192 GB, free: 13.4 MB / 474.7 MB Notification: Performance of SimCode: time 7.42e-07/1.313, allocations: 0 / 0.8192 GB, free: 13.4 MB / 474.7 MB Notification: Performance of Templates: time 0.2862/1.599, allocations: 52.58 MB / 0.8706 GB, free: 92.72 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1)