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.007936/0.007936, allocations: 102 kB / 15.73 MB, free: 6.055 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.001358/0.001358, allocations: 191.5 kB / 16.67 MB, free: 5.965 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.577/1.577, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001378/0.001378, allocations: 51.92 kB / 326.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 46.62 MB / 373.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.2838/0.3855, allocations: 10.26 MB / 383.4 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.3959, allocations: 3.487 MB / 386.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004566/0.4005, allocations: 47.41 kB / 387 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00437/0.405, allocations: 0.8206 MB / 387.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005635/0.4107, allocations: 0.8707 MB / 388.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001809/0.4125, allocations: 423.5 kB / 389.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006161/0.4187, allocations: 2.76 MB / 391.8 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004393/0.4231, allocations: 2.366 MB / 394.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003708/0.4269, allocations: 1.26 MB / 395.5 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004688/0.4316, allocations: 1.584 MB / 397 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001473/0.4331, allocations: 333.9 kB / 397.4 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00256/0.4357, allocations: 434.4 kB / 397.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001722/0.4374, allocations: 0.9447 MB / 398.7 MB, free: 40 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004819/0.4423, allocations: 1.502 MB / 400.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.4525, allocations: 4.382 MB / 404.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.687e-06/0.4525, allocations: 0.6562 kB / 404.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4525, allocations: 0 / 404.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002327/0.4528, allocations: 1.406 kB / 404.6 MB, free: 12.45 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.01473/0.4675, allocations: 3.062 MB / 407.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.4676, allocations: 13.27 kB / 407.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002135/0.4697, allocations: 306.7 kB / 408 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005937/0.4757, allocations: 1.535 MB / 409.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003702/0.4761, allocations: 173.4 kB / 409.7 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001621/0.4778, allocations: 221.2 kB / 409.9 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01043/0.4882, allocations: 2.916 MB / 412.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-05/0.4884, allocations: 2.75 kB / 412.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002586/0.4886, allocations: 89.86 kB / 412.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.4888, allocations: 116.3 kB / 413 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006753/0.4956, allocations: 2.433 MB / 415.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02362/0.5192, allocations: 9.008 MB / 424.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003042/0.5223, allocations: 1.702 MB / 426.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001909/0.5243, allocations: 0.976 MB / 427.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000399/0.5247, allocations: 211.1 kB / 427.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.918e-05/0.5248, allocations: 47.56 kB / 427.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=105): time 4.879e-06/0.5248, allocations: 0 / 427.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01662/0.5415, allocations: 6.532 MB / 433.9 MB, free: 1.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.5416, allocations: 69.16 kB / 434 MB, free: 1.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00394/0.5455, allocations: 1.561 MB / 435.6 MB, free: 336 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002556/0.5458, allocations: 45.7 kB / 435.6 MB, free: 284 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.547, allocations: 1.104 MB / 436.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00063/0.5476, allocations: 429.8 kB / 437.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008098/0.5484, allocations: 271.4 kB / 437.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.5486, allocations: 301.1 kB / 437.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/0.5501, allocations: 0.7144 MB / 438.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001657/0.5518, allocations: 1.139 MB / 439.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00306/0.5549, allocations: 1.968 MB / 441.5 MB, free: 9.973 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.615e-05/0.5549, allocations: 4 kB / 441.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.005447/0.5604, allocations: 2.522 MB / 444 MB, free: 7.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.5604, allocations: 15.22 kB / 444.1 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-05/0.5605, allocations: 16 kB / 444.1 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.5616, allocations: 419.8 kB / 444.5 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.5632, allocations: 355.4 kB / 444.8 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009345/0.5725, allocations: 7.115 MB / 451.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002664/0.5753, allocations: 107.8 kB / 452.1 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003733/0.5757, allocations: 64 kB / 452.1 MB, free: 14.9 MB / 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.002042/0.5777, allocations: 0.7166 MB / 452.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00078/0.5785, allocations: 169.9 kB / 453 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005276/0.5838, allocations: 2.186 MB / 455.2 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-05/0.5839, allocations: 12 kB / 455.2 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-05/0.5839, allocations: 12 kB / 455.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.716e-05/0.5839, allocations: 7.922 kB / 455.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/0.595, allocations: 4.773 MB / 460 MB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/0.595, allocations: 11.92 kB / 460 MB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.5961, allocations: 223.7 kB / 460.2 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/0.5975, allocations: 463.4 kB / 460.7 MB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001518/0.5976, allocations: 35.98 kB / 460.7 MB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009529/0.6072, allocations: 8.66 MB / 469.4 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/0.6072, allocations: 4 kB / 469.4 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006177/0.6134, allocations: 3.222 MB / 472.6 MB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/0.6148, allocations: 402.8 kB / 473 MB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007881/0.6156, allocations: 31.98 kB / 473 MB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/0.6173, allocations: 83.91 kB / 473.1 MB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000376/0.6177, allocations: 100.8 kB / 473.2 MB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.6179, allocations: 39.98 kB / 473.2 MB, free: 8.879 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002772/0.6206, allocations: 1.07 MB / 474.3 MB, free: 7.812 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6207, allocations: 4 kB / 474.3 MB, free: 7.809 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00348/0.6242, allocations: 480 kB / 474.8 MB, free: 7.34 MB / 398.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.000816/0.625, allocations: 207 kB / 475 MB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004889/0.6299, allocations: 2.297 MB / 477.3 MB, free: 4.773 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/0.63, allocations: 0 / 477.3 MB, free: 4.773 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002989/0.633, allocations: 1.473 MB / 478.8 MB, free: 3.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003687/0.6367, allocations: 487.1 kB / 479.2 MB, free: 2.773 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.6502, allocations: 4.685 MB / 483.9 MB, free: 14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003576/0.6538, allocations: 1.867 MB / 485.8 MB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001749/0.6556, allocations: 386.9 kB / 486.2 MB, free: 11.72 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003966/0.656, allocations: 119.4 kB / 486.3 MB, free: 11.6 MB / 414.1 MB Notification: Performance of SimCode: time 1.332e-06/0.656, allocations: 0 / 486.3 MB, free: 11.6 MB / 414.1 MB Notification: Performance of Templates: time 0.05621/0.7122, allocations: 26.82 MB / 0.5011 GB, free: 0.7305 MB / 430.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)