Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01057/0.01057, allocations: 165.9 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.293/1.293, allocations: 170.8 MB / 186.6 MB, free: 1.035 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00162/0.00162, allocations: 113.4 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003068/0.0003068, allocations: 8 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.204, allocations: 38.77 MB / 312.9 MB, free: 38.84 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1187/0.3228, allocations: 98.75 MB / 411.6 MB, free: 7.707 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/0.3231, allocations: 87.95 kB / 411.7 MB, free: 7.621 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.311/0.6341, allocations: 49.26 MB / 461 MB, free: 63.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6342, allocations: 0 / 461 MB, free: 63.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002852/0.6345, allocations: 63.88 kB / 461.1 MB, free: 63.86 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.007528/0.642, allocations: 2.57 MB / 463.6 MB, free: 61.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.6421, allocations: 8.031 kB / 463.6 MB, free: 61.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001821/0.6439, allocations: 324.5 kB / 464 MB, free: 60.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004947/0.6489, allocations: 1.587 MB / 465.5 MB, free: 59.26 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/0.649, allocations: 168.4 kB / 465.7 MB, free: 59.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000693/0.6497, allocations: 223.9 kB / 465.9 MB, free: 58.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006479/0.6562, allocations: 2.879 MB / 468.8 MB, free: 55.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001055/0.6564, allocations: 15.84 kB / 468.8 MB, free: 55.83 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004515/0.6568, allocations: 95.98 kB / 468.9 MB, free: 55.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.657, allocations: 108.3 kB / 469 MB, free: 55.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00481/0.6618, allocations: 2.301 MB / 471.3 MB, free: 53.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01722/0.679, allocations: 9.063 MB / 480.4 MB, free: 43.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001989/0.681, allocations: 1.74 MB / 482.1 MB, free: 42.11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/0.6813, allocations: 142 kB / 482.3 MB, free: 41.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.6814, allocations: 43.56 kB / 482.3 MB, free: 41.9 MB / 314.7 MB Notification: Performance of pre-optimization done (n=106): time 2.805e-06/0.6814, allocations: 4 kB / 482.3 MB, free: 41.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.01591/0.6973, allocations: 7.538 MB / 489.8 MB, free: 34.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.6974, allocations: 64.72 kB / 489.9 MB, free: 34.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002318/0.6997, allocations: 1.279 MB / 491.2 MB, free: 32.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.6999, allocations: 49.7 kB / 491.2 MB, free: 32.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006418/0.7005, allocations: 1.084 MB / 492.3 MB, free: 31.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003556/0.7009, allocations: 453.5 kB / 492.8 MB, free: 31.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.64e-05/0.701, allocations: 36 kB / 492.8 MB, free: 31.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.911e-05/0.7011, allocations: 365.9 kB / 493.2 MB, free: 30.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001133/0.7022, allocations: 0.7652 MB / 493.9 MB, free: 30.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.7035, allocations: 1.176 MB / 495.1 MB, free: 28.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.7048, allocations: 0.9511 MB / 496 MB, free: 27.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/0.7048, allocations: 4 kB / 496.1 MB, free: 27.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.00421/0.709, allocations: 2.691 MB / 498.7 MB, free: 25.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.7091, allocations: 10.5 kB / 498.8 MB, free: 25.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.7091, allocations: 16 kB / 498.8 MB, free: 25.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001469/0.7106, allocations: 0.5843 MB / 499.4 MB, free: 24.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.7119, allocations: 355.5 kB / 499.7 MB, free: 24.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007019/0.719, allocations: 6.921 MB / 0.4947 GB, free: 16.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.7208, allocations: 108 kB / 0.4948 GB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003011/0.7211, allocations: 67.98 kB / 0.4949 GB, free: 16.76 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 (167): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00178/0.7229, allocations: 0.7242 MB / 0.4956 GB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006359/0.7235, allocations: 169.8 kB / 0.4958 GB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004496/0.728, allocations: 2.418 MB / 0.4981 GB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.7281, allocations: 12 kB / 0.4982 GB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.171e-05/0.7281, allocations: 8 kB / 0.4982 GB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.7281, allocations: 7.984 kB / 0.4982 GB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008831/0.737, allocations: 4.927 MB / 0.503 GB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/0.737, allocations: 4 kB / 0.503 GB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008694/0.7379, allocations: 207.7 kB / 0.5032 GB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001563/0.7395, allocations: 0.6588 MB / 0.5038 GB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.7396, allocations: 31.98 kB / 0.5039 GB, free: 7.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008406/0.748, allocations: 8.633 MB / 0.5123 GB, free: 14.42 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.7481, allocations: 7.953 kB / 0.5123 GB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00643/0.7545, allocations: 3.614 MB / 0.5158 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.7558, allocations: 410.7 kB / 0.5162 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004407/0.7562, allocations: 31.98 kB / 0.5163 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.7575, allocations: 95.89 kB / 0.5163 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003047/0.7578, allocations: 104.8 kB / 0.5164 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.758, allocations: 43.97 kB / 0.5165 GB, free: 9.988 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001964/0.7599, allocations: 0.9799 MB / 0.5174 GB, free: 9.012 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7599, allocations: 0 / 0.5174 GB, free: 9.012 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002731/0.7627, allocations: 0.5469 MB / 0.518 GB, free: 8.465 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (100): * Single equations (assignments): 97 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000773/0.7635, allocations: 359.7 kB / 0.5183 GB, free: 8.109 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004409/0.7679, allocations: 2.42 MB / 0.5207 GB, free: 5.629 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.7679, allocations: 384 / 0.5207 GB, free: 5.629 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002893/0.7708, allocations: 1.544 MB / 0.5222 GB, free: 4.047 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002738/0.7736, allocations: 423.2 kB / 0.5226 GB, free: 3.637 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/0.784, allocations: 5.587 MB / 0.528 GB, free: 14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001948/0.786, allocations: 1.918 MB / 0.5299 GB, free: 12.04 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001645/0.7877, allocations: 370.8 kB / 0.5303 GB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004114/0.7881, allocations: 115.4 kB / 0.5304 GB, free: 11.56 MB / 346.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7881, allocations: 4 kB / 0.5304 GB, free: 11.56 MB / 346.7 MB Notification: Performance of Templates: time 0.2151/1.003, allocations: 28.36 MB / 0.5581 GB, free: 86.67 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)