Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001014/0.001014, allocations: 178.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.275/1.275, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001587/0.001587, allocations: 107.3 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003374, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09177/0.09213, allocations: 44.49 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3073/0.3995, allocations: 119.7 MB / 474.7 MB, free: 2.648 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.3998, allocations: 92.33 kB / 474.8 MB, free: 2.602 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4224/0.8223, allocations: 115.4 MB / 0.5763 GB, free: 82.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.8223, allocations: 3.531 kB / 0.5764 GB, free: 82.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002791/0.8226, allocations: 131.4 kB / 0.5765 GB, free: 82.28 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.01082/0.8334, allocations: 5.335 MB / 0.5817 GB, free: 78.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.8335, allocations: 11.25 kB / 0.5817 GB, free: 78.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004514/0.838, allocations: 0.949 MB / 0.5826 GB, free: 78.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008776/0.8468, allocations: 4.391 MB / 0.5869 GB, free: 75.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.847, allocations: 389.2 kB / 0.5873 GB, free: 75.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007021/0.8477, allocations: 0.4964 MB / 0.5878 GB, free: 75.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008852/0.8565, allocations: 6.65 MB / 0.5943 GB, free: 69.13 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-05/0.8567, allocations: 15.83 kB / 0.5943 GB, free: 69.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004129/0.8571, allocations: 219.5 kB / 0.5945 GB, free: 68.9 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/0.8572, allocations: 234.2 kB / 0.5947 GB, free: 68.67 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006999/0.8642, allocations: 5.393 MB / 0.6 GB, free: 63.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02315/0.8874, allocations: 21.04 MB / 0.6205 GB, free: 41.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005485/0.8929, allocations: 8.537 MB / 0.6289 GB, free: 32.42 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006197/0.8991, allocations: 5.033 MB / 0.6338 GB, free: 27.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.8992, allocations: 60.56 kB / 0.6338 GB, free: 27.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=219): time 2.615e-06/0.8992, allocations: 0 / 0.6338 GB, free: 27.23 MB / 394.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=270): time 0.02661/0.9258, allocations: 14.38 MB / 0.6479 GB, free: 12.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.9258, allocations: 85.53 kB / 0.648 GB, free: 12.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003279/0.9291, allocations: 2.497 MB / 0.6504 GB, free: 9.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000281/0.9294, allocations: 73.7 kB / 0.6505 GB, free: 9.902 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009925/0.9304, allocations: 2.306 MB / 0.6527 GB, free: 7.578 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005297/0.9309, allocations: 0.9243 MB / 0.6536 GB, free: 6.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.9311, allocations: 64 kB / 0.6537 GB, free: 6.598 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.9312, allocations: 440.7 kB / 0.6541 GB, free: 6.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/0.9331, allocations: 1.47 MB / 0.6555 GB, free: 4.688 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002262/0.9354, allocations: 2.343 MB / 0.6578 GB, free: 1.969 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002252/0.9376, allocations: 1.875 MB / 0.6597 GB, free: 76 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.9377, allocations: 8 kB / 0.6597 GB, free: 68 kB / 394.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.1716/1.109, allocations: 5.147 MB / 0.6647 GB, free: 74.13 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/1.109, allocations: 15.75 kB / 0.6647 GB, free: 74.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.612e-05/1.109, allocations: 27.53 kB / 0.6647 GB, free: 74.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/1.112, allocations: 1.028 MB / 0.6657 GB, free: 74.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002474/1.114, allocations: 0.7003 MB / 0.6664 GB, free: 74.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/1.127, allocations: 12.66 MB / 0.6788 GB, free: 68.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003161/1.13, allocations: 190.3 kB / 0.679 GB, free: 68.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00028/1.131, allocations: 135 kB / 0.6791 GB, free: 68.97 MB / 394.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 (349): * Single equations (assignments): 343 * 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,75.0%) 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.002926/1.134, allocations: 1.543 MB / 0.6806 GB, free: 68.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005891/1.134, allocations: 329 kB / 0.6809 GB, free: 68.86 MB / 394.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.007719/1.142, allocations: 4.653 MB / 0.6855 GB, free: 68.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.636e-05/1.142, allocations: 26.94 kB / 0.6855 GB, free: 68.41 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.897e-05/1.142, allocations: 10.91 kB / 0.6855 GB, free: 68.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-05/1.142, allocations: 13.59 kB / 0.6855 GB, free: 68.41 MB / 394.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.01532/1.157, allocations: 9.697 MB / 0.695 GB, free: 66.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/1.157, allocations: 4.344 kB / 0.695 GB, free: 66.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/1.159, allocations: 443.5 kB / 0.6954 GB, free: 66.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003094/1.162, allocations: 1.09 MB / 0.6965 GB, free: 65.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002857/1.163, allocations: 67.75 kB / 0.6965 GB, free: 65.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01306/1.176, allocations: 17.25 MB / 0.7134 GB, free: 52.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/1.176, allocations: 5.188 kB / 0.7134 GB, free: 52.89 MB / 394.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 postOpt symbolicJacobian (simulation): time 0.008977/1.185, allocations: 6.871 MB / 0.7201 GB, free: 49.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00191/1.187, allocations: 0.7247 MB / 0.7208 GB, free: 49.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006557/1.187, allocations: 63.36 kB / 0.7209 GB, free: 49.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/1.189, allocations: 156.4 kB / 0.721 GB, free: 48.97 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005045/1.19, allocations: 203.4 kB / 0.7212 GB, free: 48.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/1.19, allocations: 74.3 kB / 0.7213 GB, free: 48.92 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002585/1.192, allocations: 1.899 MB / 0.7231 GB, free: 48.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.192, allocations: 0 / 0.7231 GB, free: 48.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003671/1.196, allocations: 1.081 MB / 0.7242 GB, free: 48.09 MB / 394.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 (208): * Single equations (assignments): 202 * 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,72.2%) 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 Notification: Performance of Backend phase and start with SimCode phase: time 0.000898/1.197, allocations: 464.3 kB / 0.7246 GB, free: 47.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006285/1.203, allocations: 4.709 MB / 0.7292 GB, free: 45.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.203, allocations: 1.562 kB / 0.7292 GB, free: 45.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00397/1.207, allocations: 2.964 MB / 0.7321 GB, free: 44.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003254/1.211, allocations: 0.7854 MB / 0.7329 GB, free: 44.03 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01441/1.225, allocations: 11.79 MB / 0.7444 GB, free: 36.31 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/1.227, allocations: 3.453 MB / 0.7478 GB, free: 33.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002631/1.23, allocations: 0.7741 MB / 0.7485 GB, free: 33.17 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005794/1.231, allocations: 221.9 kB / 0.7488 GB, free: 32.96 MB / 394.7 MB Notification: Performance of SimCode: time 1.884e-06/1.231, allocations: 0 / 0.7488 GB, free: 32.96 MB / 394.7 MB Notification: Performance of Templates: time 0.07802/1.309, allocations: 52.31 MB / 0.7998 GB, free: 5.277 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)