Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001022/0.001022, allocations: 179.4 kB / 16.38 MB, free: 5.762 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.125/1.125, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001564/0.001564, allocations: 124.7 kB / 256.9 MB, free: 4.367 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.000358, allocations: 15.98 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08297/0.08335, allocations: 44.5 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2299/0.3133, allocations: 100.9 MB / 456 MB, free: 4.926 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.3136, allocations: 86.89 kB / 456.1 MB, free: 4.879 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1126/0.4262, allocations: 45.87 MB / 0.4902 GB, free: 9.109 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4263, allocations: 0 / 0.4902 GB, free: 9.109 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001479/0.4264, allocations: 59.88 kB / 0.4903 GB, free: 9.051 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: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 0.004555/0.431, allocations: 2.468 MB / 0.4927 GB, free: 6.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.431, allocations: 16.03 kB / 0.4927 GB, free: 6.504 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006778/0.4317, allocations: 292.8 kB / 0.493 GB, free: 6.215 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003015/0.4348, allocations: 1.577 MB / 0.4945 GB, free: 4.578 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.4349, allocations: 160.1 kB / 0.4947 GB, free: 4.418 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000288/0.4352, allocations: 215.9 kB / 0.4949 GB, free: 4.207 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004106/0.4393, allocations: 2.753 MB / 0.4976 GB, free: 1.309 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.997e-05/0.4394, allocations: 7.906 kB / 0.4976 GB, free: 1.301 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001914/0.4396, allocations: 87.98 kB / 0.4976 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.366e-05/0.4397, allocations: 104.1 kB / 0.4977 GB, free: 1.109 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003462/0.4431, allocations: 2.226 MB / 0.4999 GB, free: 14.87 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01205/0.4552, allocations: 8.585 MB / 0.5083 GB, free: 6.035 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002252/0.4575, allocations: 1.729 MB / 0.51 GB, free: 4.188 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003091/0.4578, allocations: 215.1 kB / 0.5102 GB, free: 3.941 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.4578, allocations: 47.5 kB / 0.5102 GB, free: 3.887 MB / 394.7 MB Notification: Performance of pre-optimization done (n=103): time 3.707e-06/0.4578, allocations: 0 / 0.5102 GB, free: 3.887 MB / 394.7 MB Notification: Performance of matching and sorting (n=124): time 0.1713/0.6291, allocations: 7.134 MB / 0.5172 GB, free: 96.63 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.6292, allocations: 66.94 kB / 0.5173 GB, free: 96.56 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001773/0.631, allocations: 1.233 MB / 0.5185 GB, free: 96.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.482e-05/0.6311, allocations: 48.05 kB / 0.5185 GB, free: 96.38 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006315/0.6317, allocations: 1.017 MB / 0.5195 GB, free: 96.03 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000301/0.632, allocations: 437.3 kB / 0.5199 GB, free: 95.81 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.141e-05/0.6321, allocations: 29.12 kB / 0.52 GB, free: 95.81 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.6322, allocations: 369 kB / 0.5203 GB, free: 95.51 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.6334, allocations: 0.7426 MB / 0.521 GB, free: 95.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.6347, allocations: 1.114 MB / 0.5221 GB, free: 95.09 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.6361, allocations: 0.919 MB / 0.523 GB, free: 95.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.6361, allocations: 5.25 kB / 0.523 GB, free: 95.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004474/0.6406, allocations: 2.59 MB / 0.5256 GB, free: 94.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.6406, allocations: 9.219 kB / 0.5256 GB, free: 94.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-05/0.6407, allocations: 11.44 kB / 0.5256 GB, free: 94.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/0.6422, allocations: 0.587 MB / 0.5261 GB, free: 94.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.6434, allocations: 331.4 kB / 0.5265 GB, free: 94.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007725/0.6511, allocations: 6.545 MB / 0.5329 GB, free: 92.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.6526, allocations: 109.5 kB / 0.533 GB, free: 92.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.6528, allocations: 61.52 kB / 0.533 GB, free: 92.29 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (156): * Single equations (assignments): 153 * 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%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001296/0.6541, allocations: 0.6949 MB / 0.5337 GB, free: 92.17 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.6544, allocations: 161.5 kB / 0.5339 GB, free: 92.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003974/0.6583, allocations: 2.365 MB / 0.5362 GB, free: 91.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.6584, allocations: 11.94 kB / 0.5362 GB, free: 91.95 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.6584, allocations: 9.125 kB / 0.5362 GB, free: 91.95 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.6584, allocations: 7.359 kB / 0.5362 GB, free: 91.95 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00755/0.6659, allocations: 4.768 MB / 0.5408 GB, free: 90.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.666, allocations: 4.625 kB / 0.5408 GB, free: 90.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008019/0.6668, allocations: 199.6 kB / 0.541 GB, free: 90.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.6682, allocations: 0.6366 MB / 0.5417 GB, free: 90.42 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.087e-05/0.6683, allocations: 28.83 kB / 0.5417 GB, free: 90.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006982/0.6753, allocations: 8.314 MB / 0.5498 GB, free: 84.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.6753, allocations: 3.25 kB / 0.5498 GB, free: 84.77 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004731/0.6801, allocations: 3.485 MB / 0.5532 GB, free: 83.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009233/0.681, allocations: 408.4 kB / 0.5536 GB, free: 82.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/0.6812, allocations: 27.62 kB / 0.5536 GB, free: 82.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008671/0.6821, allocations: 92.88 kB / 0.5537 GB, free: 82.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002533/0.6823, allocations: 103.5 kB / 0.5538 GB, free: 82.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.068e-05/0.6824, allocations: 35.11 kB / 0.5539 GB, free: 82.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001208/0.6836, allocations: 0.9494 MB / 0.5548 GB, free: 82.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6836, allocations: 0 / 0.5548 GB, free: 82.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001643/0.6853, allocations: 0.5221 MB / 0.5553 GB, free: 82.48 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (96): * Single equations (assignments): 93 * 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%) 22,(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.0004524/0.6858, allocations: 303.8 kB / 0.5556 GB, free: 82.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003213/0.689, allocations: 2.358 MB / 0.5579 GB, free: 81.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.689, allocations: 0 / 0.5579 GB, free: 81.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001972/0.691, allocations: 1.526 MB / 0.5594 GB, free: 80.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.6924, allocations: 372.9 kB / 0.5597 GB, free: 80.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005984/0.6984, allocations: 5.351 MB / 0.565 GB, free: 77.63 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001084/0.6995, allocations: 1.852 MB / 0.5668 GB, free: 76.72 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001036/0.7005, allocations: 364.2 kB / 0.5671 GB, free: 76.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002894/0.7008, allocations: 109.2 kB / 0.5672 GB, free: 76.67 MB / 394.7 MB Notification: Performance of SimCode: time 6.01e-07/0.7008, allocations: 0 / 0.5672 GB, free: 76.67 MB / 394.7 MB Notification: Performance of Templates: time 0.03557/0.7364, allocations: 26.78 MB / 0.5934 GB, free: 65.82 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)