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.0009077/0.0009078, allocations: 183.1 kB / 8.351 MB, free: 0.7031 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.175/1.175, allocations: 194.3 MB / 203.1 MB, free: 9.262 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001628/0.001628, allocations: 121 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.321e-05/1.324e-05, allocations: 4 kB / 298.1 MB, free: 8.234 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07723/0.07726, allocations: 44.51 MB / 342.6 MB, free: 11.62 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2904/0.3677, allocations: 100.2 MB / 442.8 MB, free: 11.95 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.368, allocations: 82.77 kB / 442.9 MB, free: 11.91 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1192/0.4873, allocations: 45.35 MB / 488.2 MB, free: 5.727 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4873, allocations: 0 / 488.2 MB, free: 5.727 MB / 363.1 MB Notification: Performance of Transformations before backend: time 0.0001874/0.4875, allocations: 63.92 kB / 488.3 MB, free: 5.664 MB / 363.1 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.006993/0.4945, allocations: 2.225 MB / 490.5 MB, free: 3.383 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.4946, allocations: 12.03 kB / 490.5 MB, free: 3.371 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001242/0.4958, allocations: 292.8 kB / 490.8 MB, free: 3.082 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003567/0.4994, allocations: 1.573 MB / 492.4 MB, free: 1.449 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-05/0.4995, allocations: 68 kB / 492.4 MB, free: 1.383 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004345/0.4999, allocations: 131.9 kB / 492.6 MB, free: 1.254 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003909/0.5039, allocations: 1.992 MB / 494.6 MB, free: 15.25 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004368/0.5082, allocations: 2.393 MB / 496.9 MB, free: 12.72 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.086e-05/0.5083, allocations: 3.906 kB / 497 MB, free: 12.72 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001854/0.5085, allocations: 4 kB / 497 MB, free: 12.71 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/0.5086, allocations: 104.1 kB / 497.1 MB, free: 12.61 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01325/0.5219, allocations: 8.173 MB / 0.4934 GB, free: 4.203 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002054/0.524, allocations: 1.643 MB / 0.495 GB, free: 2.445 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.525, allocations: 0.7598 MB / 0.4957 GB, free: 1.684 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003364/0.5254, allocations: 219.5 kB / 0.4959 GB, free: 1.43 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.5254, allocations: 43.88 kB / 0.496 GB, free: 1.379 MB / 379.1 MB Notification: Performance of pre-optimization done (n=105): time 6.162e-06/0.5255, allocations: 4 kB / 0.496 GB, free: 1.375 MB / 379.1 MB Notification: Performance of matching and sorting (n=126): time 0.008739/0.5342, allocations: 4.736 MB / 0.5006 GB, free: 12.58 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.5343, allocations: 64.72 kB / 0.5007 GB, free: 12.51 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001687/0.536, allocations: 1.013 MB / 0.5017 GB, free: 11.49 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001088/0.5361, allocations: 25.7 kB / 0.5017 GB, free: 11.46 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006492/0.5368, allocations: 1.028 MB / 0.5027 GB, free: 10.41 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003268/0.5371, allocations: 421.7 kB / 0.5031 GB, free: 9.996 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.412e-05/0.5372, allocations: 4 kB / 0.5031 GB, free: 9.992 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.5374, allocations: 365.9 kB / 0.5034 GB, free: 9.629 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009503/0.5383, allocations: 0.6677 MB / 0.5041 GB, free: 8.961 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.5396, allocations: 1.034 MB / 0.5051 GB, free: 7.77 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.5409, allocations: 0.8494 MB / 0.5059 GB, free: 6.922 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.5409, allocations: 7.938 kB / 0.5059 GB, free: 6.914 MB / 395.1 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004024/0.5449, allocations: 2.341 MB / 0.5082 GB, free: 4.555 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.5449, allocations: 8 kB / 0.5082 GB, free: 4.547 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/0.545, allocations: 15.95 kB / 0.5083 GB, free: 4.531 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001455/0.5464, allocations: 0.5726 MB / 0.5088 GB, free: 3.949 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.5477, allocations: 335.5 kB / 0.5091 GB, free: 3.621 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1794/0.7271, allocations: 6.042 MB / 0.515 GB, free: 87.7 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.7285, allocations: 76.58 kB / 0.5151 GB, free: 87.7 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.7287, allocations: 67.27 kB / 0.5152 GB, free: 87.7 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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.0002558/0.7289, allocations: 145.2 kB / 0.5153 GB, free: 87.59 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000206/0.7291, allocations: 149.8 kB / 0.5155 GB, free: 87.59 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003287/0.7324, allocations: 2.157 MB / 0.5176 GB, free: 87.5 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.7325, allocations: 12.23 kB / 0.5176 GB, free: 87.5 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.7325, allocations: 7.344 kB / 0.5176 GB, free: 87.5 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.7325, allocations: 7.453 kB / 0.5176 GB, free: 87.5 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006022/0.7385, allocations: 4.318 MB / 0.5218 GB, free: 87.05 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.7385, allocations: 3.219 kB / 0.5218 GB, free: 87.05 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009431/0.7395, allocations: 210.4 kB / 0.522 GB, free: 87.05 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001491/0.741, allocations: 0.6256 MB / 0.5226 GB, free: 87.03 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.896e-05/0.7411, allocations: 14.98 kB / 0.5226 GB, free: 87.03 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006847/0.748, allocations: 7.741 MB / 0.5302 GB, free: 83.46 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.453e-06/0.748, allocations: 6.062 kB / 0.5302 GB, free: 83.46 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003851/0.7518, allocations: 3.3 MB / 0.5334 GB, free: 82.96 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000574/0.7524, allocations: 372.1 kB / 0.5338 GB, free: 82.8 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.7526, allocations: 10.34 kB / 0.5338 GB, free: 82.8 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007939/0.7534, allocations: 77.67 kB / 0.5339 GB, free: 82.79 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.7536, allocations: 106 kB / 0.534 GB, free: 82.79 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.781e-05/0.7537, allocations: 35.5 kB / 0.534 GB, free: 82.79 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0008736/0.7546, allocations: 0.7614 MB / 0.5347 GB, free: 82.68 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7546, allocations: 0 / 0.5347 GB, free: 82.68 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001406/0.756, allocations: 455.1 kB / 0.5352 GB, free: 82.68 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 95 * 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.0004838/0.7565, allocations: 298.8 kB / 0.5355 GB, free: 82.59 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002606/0.7591, allocations: 2.165 MB / 0.5376 GB, free: 82.23 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.7591, allocations: 2.375 kB / 0.5376 GB, free: 82.23 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.761, allocations: 1.407 MB / 0.5389 GB, free: 81.88 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.7623, allocations: 296.3 kB / 0.5392 GB, free: 81.88 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005403/0.7677, allocations: 3.592 MB / 0.5427 GB, free: 80.98 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/0.7692, allocations: 1.86 MB / 0.5446 GB, free: 80.22 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.000973/0.7701, allocations: 344.2 kB / 0.5449 GB, free: 80.18 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/0.7705, allocations: 105.3 kB / 0.545 GB, free: 80.18 MB / 395.1 MB Notification: Performance of SimCode: time 3.71e-07/0.7705, allocations: 1.219 kB / 0.545 GB, free: 80.18 MB / 395.1 MB Notification: Performance of Templates: time 0.032/0.8025, allocations: 21.69 MB / 0.5662 GB, free: 78.93 MB / 395.1 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)