Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",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.001079/0.001079, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.4 MB / 223.1 MB, free: 9.105 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.0008739/0.0008739, allocations: 90.41 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002671/0.0002671, allocations: 12 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2102, allocations: 47.57 MB / 375.9 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/0.3396, allocations: 125.1 MB / 0.4893 GB, free: 3.434 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.3399, allocations: 91.95 kB / 0.4894 GB, free: 3.344 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4123/0.7522, allocations: 115.9 MB / 0.6026 GB, free: 14.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.7522, allocations: 0 / 0.6026 GB, free: 14.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004512/0.7527, allocations: 135.8 kB / 0.6027 GB, free: 14.73 MB / 378.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.01359/0.7663, allocations: 5.377 MB / 0.6079 GB, free: 9.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.7664, allocations: 8.031 kB / 0.608 GB, free: 9.262 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002165/0.7685, allocations: 0.7193 MB / 0.6087 GB, free: 8.531 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004283/0.7728, allocations: 0.9534 MB / 0.6096 GB, free: 7.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009586/0.7824, allocations: 4.442 MB / 0.6139 GB, free: 3.051 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.7827, allocations: 390.3 kB / 0.6143 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/0.7838, allocations: 0.4999 MB / 0.6148 GB, free: 2.168 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01302/0.7969, allocations: 6.697 MB / 0.6213 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.797, allocations: 11.84 kB / 0.6213 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005096/0.7975, allocations: 216 kB / 0.6215 GB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002166/0.7978, allocations: 234.2 kB / 0.6218 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01061/0.8084, allocations: 5.447 MB / 0.6271 GB, free: 5.359 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2351/1.044, allocations: 21.14 MB / 0.6477 GB, free: 54.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007055/1.051, allocations: 8.598 MB / 0.6561 GB, free: 48.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007981/1.059, allocations: 5.063 MB / 0.6611 GB, free: 47.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/1.059, allocations: 65.66 kB / 0.6611 GB, free: 47.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=222): time 3.326e-06/1.059, allocations: 0 / 0.6611 GB, free: 47.36 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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 matching and sorting (n=273): time 0.028/1.087, allocations: 14.41 MB / 0.6752 GB, free: 45.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/1.087, allocations: 79.62 kB / 0.6753 GB, free: 45.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004134/1.091, allocations: 2.52 MB / 0.6777 GB, free: 45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002805/1.091, allocations: 72.97 kB / 0.6778 GB, free: 44.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001442/1.093, allocations: 2.321 MB / 0.6801 GB, free: 44.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006398/1.093, allocations: 0.9353 MB / 0.681 GB, free: 43.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/1.093, allocations: 66.06 kB / 0.6811 GB, free: 43.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/1.094, allocations: 441.3 kB / 0.6815 GB, free: 43.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002125/1.096, allocations: 1.486 MB / 0.6829 GB, free: 43.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003045/1.099, allocations: 2.366 MB / 0.6852 GB, free: 42.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003076/1.102, allocations: 1.901 MB / 0.6871 GB, free: 42.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-05/1.102, allocations: 7.406 kB / 0.6871 GB, free: 42.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.008587/1.111, allocations: 5.203 MB / 0.6922 GB, free: 41.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/1.111, allocations: 16.34 kB / 0.6922 GB, free: 41.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.485e-05/1.111, allocations: 27.16 kB / 0.6922 GB, free: 41.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002281/1.113, allocations: 1.04 MB / 0.6932 GB, free: 41.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002514/1.115, allocations: 0.7114 MB / 0.6939 GB, free: 41.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01149/1.127, allocations: 12.62 MB / 0.7063 GB, free: 36.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003325/1.13, allocations: 197 kB / 0.7065 GB, free: 36.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002685/1.131, allocations: 135.1 kB / 0.7066 GB, free: 36.59 MB / 410.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 (352): * Single equations (assignments): 346 * 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: 4 * 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: 4 {(6,72.2%) 22,(1,100.0%) 1,(3,100.0%) 31,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003039/1.134, allocations: 1.55 MB / 0.7081 GB, free: 36.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006378/1.134, allocations: 332.1 kB / 0.7084 GB, free: 36 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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 wrapFunctionCalls (simulation): time 0.006802/1.141, allocations: 4.716 MB / 0.713 GB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/1.141, allocations: 25.5 kB / 0.713 GB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/1.141, allocations: 14.22 kB / 0.7131 GB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.077e-05/1.141, allocations: 15.52 kB / 0.7131 GB, free: 33.95 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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.01419/1.155, allocations: 9.769 MB / 0.7226 GB, free: 29.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/1.155, allocations: 3.469 kB / 0.7226 GB, free: 29.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001867/1.157, allocations: 455.3 kB / 0.723 GB, free: 29.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002578/1.16, allocations: 1.083 MB / 0.7241 GB, free: 29.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002356/1.16, allocations: 69.92 kB / 0.7242 GB, free: 29.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01374/1.174, allocations: 17.25 MB / 0.741 GB, free: 16.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/1.174, allocations: 3.406 kB / 0.741 GB, free: 16.43 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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 symbolicJacobian (simulation): time 0.009645/1.184, allocations: 6.958 MB / 0.7478 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002084/1.186, allocations: 0.735 MB / 0.7485 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006588/1.186, allocations: 59.14 kB / 0.7486 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/1.188, allocations: 164.4 kB / 0.7487 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004379/1.189, allocations: 208.9 kB / 0.7489 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001585/1.189, allocations: 77.92 kB / 0.749 GB, free: 12.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002568/1.191, allocations: 1.912 MB / 0.7509 GB, free: 11.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.191, allocations: 0 / 0.7509 GB, free: 11.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003543/1.195, allocations: 1.08 MB / 0.7519 GB, free: 11.2 MB / 410.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 (211): * Single equations (assignments): 205 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(6,75.0%) 22,(5,68.0%) 29,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] 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 Backend phase and start with SimCode phase: time 0.009355/1.204, allocations: 8.591 MB / 0.7603 GB, free: 3.332 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006809/1.211, allocations: 4.776 MB / 0.765 GB, free: 15.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.211, allocations: 0.9375 kB / 0.765 GB, free: 15.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004829/1.216, allocations: 3.004 MB / 0.7679 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004408/1.22, allocations: 0.775 MB / 0.7687 GB, free: 11.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2791/1.5, allocations: 49.54 MB / 0.8171 GB, free: 98.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003492/1.503, allocations: 3.47 MB / 0.8205 GB, free: 97.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002827/1.506, allocations: 0.7778 MB / 0.8212 GB, free: 97.47 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002214/1.508, allocations: 1.969 MB / 0.8231 GB, free: 97.47 MB / 458.7 MB Notification: Performance of SimCode: time 6.232e-06/1.508, allocations: 5.031 kB / 0.8231 GB, free: 97.47 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1211/1.629, allocations: 89.73 MB / 0.9108 GB, free: 64.89 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001536/1.629, allocations: 222.6 kB / 0.911 GB, free: 64.64 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.252/5.882, allocations: 0 / 0.911 GB, free: 64.64 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)