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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001261, allocations: 103.1 kB / 16.62 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 193.8 kB / 17.55 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.8/1.8, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 51.92 kB / 279.5 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1137, allocations: 46.64 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.0119/0.1257, allocations: 9.512 MB / 335.7 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007448/0.1332, allocations: 3.101 MB / 338.8 MB, free: 8.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002432/0.1357, allocations: 51.69 kB / 338.8 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.1379, allocations: 0.5944 MB / 339.4 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002719/0.1406, allocations: 0.6799 MB / 340.1 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008594/0.1415, allocations: 351.7 kB / 340.4 MB, free: 6.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003141/0.1446, allocations: 2.549 MB / 343 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002428/0.1471, allocations: 2.286 MB / 345.3 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.1488, allocations: 1.187 MB / 346.5 MB, free: 348 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001976/0.1508, allocations: 1.518 MB / 348 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004594/0.1513, allocations: 320 kB / 348.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007885/0.1521, allocations: 423.8 kB / 348.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007927/0.1529, allocations: 0.8999 MB / 349.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001437/0.1543, allocations: 1.416 MB / 351 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003663/0.158, allocations: 4.101 MB / 355.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.158, allocations: 4 kB / 355.1 MB, free: 7.648 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.158, allocations: 0 / 355.1 MB, free: 7.648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.688e-05/0.1581, allocations: 0 / 355.1 MB, free: 7.648 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005397/0.1635, allocations: 2.897 MB / 358 MB, free: 4.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.1635, allocations: 11.89 kB / 358 MB, free: 4.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006733/0.1642, allocations: 293.6 kB / 358.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002071/0.1663, allocations: 1.433 MB / 359.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.1664, allocations: 172.5 kB / 359.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/0.1667, allocations: 204 kB / 360.1 MB, free: 2.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004536/0.1713, allocations: 2.796 MB / 362.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.1e-05/0.1714, allocations: 11.91 kB / 362.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002014/0.1716, allocations: 87.98 kB / 363 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.1717, allocations: 108.1 kB / 363.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003778/0.1755, allocations: 2.347 MB / 365.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01365/0.1891, allocations: 8.597 MB / 374.1 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002557/0.1918, allocations: 1.708 MB / 375.8 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/0.1934, allocations: 0.9674 MB / 376.7 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003029/0.1937, allocations: 207.2 kB / 376.9 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.1938, allocations: 47.5 kB / 377 MB, free: 1.137 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.725e-06/0.1938, allocations: 0 / 377 MB, free: 1.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.3114/0.5051, allocations: 6.098 MB / 383.1 MB, free: 50.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.453e-05/0.5053, allocations: 63.81 kB / 383.1 MB, free: 50.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004537/0.5098, allocations: 1.438 MB / 384.6 MB, free: 50.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000214/0.51, allocations: 45.98 kB / 384.6 MB, free: 49.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.5113, allocations: 1.039 MB / 385.7 MB, free: 49.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005299/0.5119, allocations: 406.2 kB / 386.1 MB, free: 48.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006928/0.5126, allocations: 258.2 kB / 386.3 MB, free: 48.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.5128, allocations: 367.4 kB / 386.7 MB, free: 48.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00212/0.5149, allocations: 0.6781 MB / 387.3 MB, free: 48.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002479/0.5174, allocations: 1.074 MB / 388.4 MB, free: 47.49 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004323/0.5217, allocations: 1.862 MB / 390.3 MB, free: 46.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/0.5218, allocations: 2.312 kB / 390.3 MB, free: 46.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.006813/0.5286, allocations: 2.401 MB / 392.7 MB, free: 45.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.609e-05/0.5287, allocations: 10.5 kB / 392.7 MB, free: 45.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-05/0.5288, allocations: 19.97 kB / 392.7 MB, free: 45.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.5304, allocations: 417.4 kB / 393.1 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002098/0.5325, allocations: 328.8 kB / 393.4 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009182/0.5417, allocations: 7.042 MB / 400.5 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002685/0.5445, allocations: 106.8 kB / 400.6 MB, free: 39.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002215/0.5447, allocations: 62.14 kB / 400.7 MB, free: 39.67 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002266/0.547, allocations: 0.6921 MB / 401.3 MB, free: 39.21 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006609/0.5477, allocations: 160 kB / 401.5 MB, free: 39.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005116/0.5528, allocations: 2.117 MB / 403.6 MB, free: 37.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-05/0.5529, allocations: 12.75 kB / 403.6 MB, free: 37.88 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/0.5529, allocations: 7.062 kB / 403.6 MB, free: 37.88 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.5529, allocations: 3.984 kB / 403.6 MB, free: 37.88 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009255/0.5622, allocations: 4.572 MB / 408.2 MB, free: 33.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.5622, allocations: 4.469 kB / 408.2 MB, free: 33.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008237/0.5631, allocations: 219.7 kB / 408.4 MB, free: 33.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009971/0.5641, allocations: 449.8 kB / 408.9 MB, free: 33.17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-05/0.5642, allocations: 35.92 kB / 408.9 MB, free: 33.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005886/0.5701, allocations: 8.619 MB / 417.5 MB, free: 23.99 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.5701, allocations: 15.28 kB / 417.5 MB, free: 23.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004241/0.5744, allocations: 3.097 MB / 420.6 MB, free: 20.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.5754, allocations: 383 kB / 421 MB, free: 20.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/0.5757, allocations: 35.98 kB / 421 MB, free: 20.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008853/0.5766, allocations: 84.5 kB / 421.1 MB, free: 20.28 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000269/0.5769, allocations: 92.81 kB / 421.2 MB, free: 20.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.017e-05/0.5769, allocations: 39.98 kB / 421.3 MB, free: 20.15 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001314/0.5783, allocations: 0.9925 MB / 422.2 MB, free: 19.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.234e-06/0.5783, allocations: 0 / 422.2 MB, free: 19.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001961/0.5802, allocations: 460.9 kB / 422.7 MB, free: 18.71 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (103): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000393/0.5806, allocations: 195.2 kB / 422.9 MB, free: 18.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004282/0.5849, allocations: 2.684 MB / 425.6 MB, free: 15.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.585, allocations: 4.812 kB / 425.6 MB, free: 15.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002004/0.587, allocations: 1.44 MB / 427 MB, free: 14.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.5892, allocations: 418.9 kB / 427.4 MB, free: 13.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008213/0.5975, allocations: 5.441 MB / 432.9 MB, free: 8.371 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/0.5987, allocations: 1.807 MB / 434.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001307/0.6, allocations: 369.5 kB / 435 MB, free: 6.164 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003082/0.6003, allocations: 111.4 kB / 435.1 MB, free: 6.055 MB / 318.1 MB Notification: Performance of SimCode: time 1.543e-06/0.6003, allocations: 0 / 435.1 MB, free: 6.055 MB / 318.1 MB Notification: Performance of Templates: time 0.04149/0.6418, allocations: 24.3 MB / 459.4 MB, free: 13.75 MB / 350.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)