Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01186/0.01186, allocations: 102.1 kB / 15.73 MB, free: 6.066 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.002296/0.002296, allocations: 193.1 kB / 16.68 MB, free: 5.973 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.715/1.715, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.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.001191/0.001191, allocations: 53.89 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1049, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01162/0.1166, allocations: 10.26 MB / 383.5 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007334/0.124, allocations: 3.482 MB / 386.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002175/0.1262, allocations: 51.75 kB / 387 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002728/0.129, allocations: 0.7685 MB / 387.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003427/0.1325, allocations: 0.8307 MB / 388.6 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.1337, allocations: 427.4 kB / 389 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004152/0.1379, allocations: 2.759 MB / 391.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002989/0.1409, allocations: 2.366 MB / 394.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002206/0.1431, allocations: 1.25 MB / 395.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002711/0.1459, allocations: 1.572 MB / 396.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000661/0.1466, allocations: 336 kB / 397.3 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00116/0.1477, allocations: 439.8 kB / 397.7 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.1488, allocations: 0.935 MB / 398.6 MB, free: 7.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00204/0.1508, allocations: 1.513 MB / 400.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005174/0.156, allocations: 4.398 MB / 404.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.156, allocations: 0 / 404.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1561, allocations: 4 kB / 404.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001088/0.1562, allocations: 4 kB / 404.6 MB, free: 1.734 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006651/0.1628, allocations: 3.121 MB / 407.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1629, allocations: 11.89 kB / 407.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008179/0.1637, allocations: 327 kB / 408 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.1663, allocations: 1.541 MB / 409.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/0.1664, allocations: 168.4 kB / 409.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003107/0.1667, allocations: 223.9 kB / 409.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005034/0.1718, allocations: 2.917 MB / 412.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.019e-05/0.1718, allocations: 4 kB / 412.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001993/0.1721, allocations: 88 kB / 412.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/0.1722, allocations: 116.3 kB / 413.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004299/0.1765, allocations: 2.43 MB / 415.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01504/0.1916, allocations: 9.038 MB / 424.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002461/0.1941, allocations: 1.702 MB / 426.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001855/0.1959, allocations: 0.976 MB / 427.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003256/0.1963, allocations: 207.2 kB / 427.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/0.1963, allocations: 47.55 kB / 427.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.777e-06/0.1963, allocations: 0 / 427.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01459/0.2109, allocations: 6.563 MB / 434 MB, free: 3.434 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.211, allocations: 68.39 kB / 434.1 MB, free: 3.355 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002631/0.2137, allocations: 1.565 MB / 435.6 MB, free: 1.781 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.2138, allocations: 45.7 kB / 435.7 MB, free: 1.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008944/0.2147, allocations: 1.134 MB / 436.8 MB, free: 0.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000414/0.2151, allocations: 452.2 kB / 437.3 MB, free: 140 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004746/0.2156, allocations: 275.6 kB / 437.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2158, allocations: 305.1 kB / 437.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/0.217, allocations: 0.7066 MB / 438.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.2184, allocations: 1.143 MB / 439.7 MB, free: 13.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002818/0.2213, allocations: 1.964 MB / 441.6 MB, free: 11.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.2213, allocations: 4 kB / 441.6 MB, free: 11.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00433/0.2256, allocations: 2.523 MB / 444.2 MB, free: 8.805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.2257, allocations: 15.98 kB / 444.2 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.394e-05/0.2257, allocations: 12 kB / 444.2 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.2268, allocations: 427.3 kB / 444.6 MB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.228, allocations: 351.4 kB / 445 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007523/0.2356, allocations: 7.139 MB / 452.1 MB, free: 460 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/0.2375, allocations: 107.8 kB / 452.2 MB, free: 352 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/0.2377, allocations: 63.98 kB / 452.3 MB, free: 288 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * 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,12,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.2469/0.4845, allocations: 0.7173 MB / 453 MB, free: 68.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006918/0.4852, allocations: 176.7 kB / 453.2 MB, free: 68.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004809/0.4901, allocations: 2.184 MB / 455.3 MB, free: 68.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/0.4901, allocations: 12.38 kB / 455.4 MB, free: 68.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.4901, allocations: 11.61 kB / 455.4 MB, free: 68.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/0.4902, allocations: 6.703 kB / 455.4 MB, free: 68.47 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00948/0.4996, allocations: 4.769 MB / 460.1 MB, free: 66.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.4997, allocations: 5.922 kB / 460.1 MB, free: 66.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.5008, allocations: 223.5 kB / 460.4 MB, free: 66.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001381/0.5022, allocations: 457.2 kB / 460.8 MB, free: 66.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.5023, allocations: 37.14 kB / 460.8 MB, free: 66.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007636/0.5099, allocations: 8.672 MB / 469.5 MB, free: 59.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.51, allocations: 9.375 kB / 469.5 MB, free: 59.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005174/0.5152, allocations: 3.228 MB / 472.8 MB, free: 58.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.5164, allocations: 412.2 kB / 473.2 MB, free: 58.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003813/0.5168, allocations: 32.64 kB / 473.2 MB, free: 58.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009679/0.5178, allocations: 92.31 kB / 473.3 MB, free: 58.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002715/0.5181, allocations: 103.9 kB / 473.4 MB, free: 58.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.153e-05/0.5182, allocations: 37.88 kB / 473.4 MB, free: 58.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001599/0.5198, allocations: 1.067 MB / 474.5 MB, free: 57.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5198, allocations: 1.859 kB / 474.5 MB, free: 57.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002105/0.5219, allocations: 489.6 kB / 475 MB, free: 57.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (108): * Single equations (assignments): 104 * 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,12,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.0004293/0.5224, allocations: 198.3 kB / 475.2 MB, free: 57.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003294/0.5257, allocations: 2.3 MB / 477.5 MB, free: 56.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.5257, allocations: 0 / 477.5 MB, free: 56.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002097/0.5278, allocations: 1.482 MB / 478.9 MB, free: 55.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002219/0.53, allocations: 481.2 kB / 479.4 MB, free: 55.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00687/0.5369, allocations: 4.755 MB / 484.2 MB, free: 51.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001316/0.5383, allocations: 1.874 MB / 486 MB, free: 49.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001339/0.5396, allocations: 382.9 kB / 486.4 MB, free: 49.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.54, allocations: 123.4 kB / 486.5 MB, free: 49.03 MB / 382.1 MB Notification: Performance of SimCode: time 1.813e-06/0.54, allocations: 0 / 486.5 MB, free: 49.03 MB / 382.1 MB Notification: Performance of Templates: time 0.04058/0.5806, allocations: 26.82 MB / 0.5013 GB, free: 22.18 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)