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.001283/0.001283, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001745/0.001745, allocations: 192.8 kB / 16.13 MB, free: 6.664 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.519/1.519, allocations: 205.1 MB / 222 MB, free: 4.734 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.001149/0.001149, allocations: 51.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2987, allocations: 46.63 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.0134/0.3122, allocations: 10.19 MB / 334.9 MB, free: 9.922 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00739/0.3196, allocations: 3.445 MB / 338.3 MB, free: 6.488 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002544/0.3222, allocations: 47.75 kB / 338.4 MB, free: 6.441 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002377/0.3246, allocations: 0.6798 MB / 339 MB, free: 5.758 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003111/0.3278, allocations: 0.7498 MB / 339.8 MB, free: 5.004 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.329, allocations: 371.6 kB / 340.2 MB, free: 4.641 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003818/0.3328, allocations: 3.102 MB / 343.3 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002468/0.3353, allocations: 2.001 MB / 345.3 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001945/0.3372, allocations: 1.097 MB / 346.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003084/0.3403, allocations: 1.525 MB / 347.9 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005601/0.3409, allocations: 208 kB / 348.1 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001035/0.342, allocations: 319.8 kB / 348.4 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008033/0.3428, allocations: 0.8061 MB / 349.2 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001721/0.3445, allocations: 1.372 MB / 350.6 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004049/0.3486, allocations: 4.233 MB / 354.8 MB, free: 5.883 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3486, allocations: 0 / 354.8 MB, free: 5.883 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.103e-06/0.3486, allocations: 0 / 354.8 MB, free: 5.883 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.542e-05/0.3487, allocations: 3.938 kB / 354.8 MB, free: 5.879 MB / 286.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.006178/0.3549, allocations: 3.049 MB / 357.9 MB, free: 2.766 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.3549, allocations: 12.03 kB / 357.9 MB, free: 2.754 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008037/0.3557, allocations: 313.4 kB / 358.2 MB, free: 2.445 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.3583, allocations: 1.509 MB / 359.7 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.3585, allocations: 184.5 kB / 359.9 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003077/0.3588, allocations: 219.9 kB / 360.1 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004845/0.3636, allocations: 2.913 MB / 363 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.425e-05/0.3637, allocations: 7.906 kB / 363 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002085/0.3639, allocations: 88 kB / 363.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.364, allocations: 112.3 kB / 363.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004452/0.3685, allocations: 2.437 MB / 365.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01552/0.384, allocations: 9.109 MB / 374.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002559/0.3867, allocations: 1.706 MB / 376.4 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.3885, allocations: 0.9838 MB / 377.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000324/0.3888, allocations: 211.2 kB / 377.6 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.3888, allocations: 43.56 kB / 377.7 MB, free: 14.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.687e-06/0.3889, allocations: 0 / 377.7 MB, free: 14.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01464/0.4035, allocations: 6.523 MB / 384.2 MB, free: 7.633 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.172e-05/0.4036, allocations: 64.41 kB / 384.3 MB, free: 7.559 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002828/0.4064, allocations: 1.561 MB / 385.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.4066, allocations: 49.7 kB / 385.9 MB, free: 5.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008658/0.4075, allocations: 1.104 MB / 387 MB, free: 4.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004093/0.4079, allocations: 433.8 kB / 387.4 MB, free: 4.383 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005181/0.4084, allocations: 267.3 kB / 387.7 MB, free: 4.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.4085, allocations: 313.1 kB / 388 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.4098, allocations: 0.7065 MB / 388.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.4114, allocations: 1.139 MB / 389.8 MB, free: 1.781 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00313/0.4145, allocations: 1.972 MB / 391.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.4145, allocations: 4 kB / 391.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004964/0.4195, allocations: 2.514 MB / 394.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.4195, allocations: 8 kB / 394.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/0.4196, allocations: 16 kB / 394.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/0.4208, allocations: 423.3 kB / 394.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.4223, allocations: 347.4 kB / 395.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007153/0.4294, allocations: 6.553 MB / 401.6 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.4311, allocations: 107.7 kB / 401.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/0.4312, allocations: 68 kB / 401.8 MB, free: 5.141 MB / 334.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.001493/0.4327, allocations: 0.7173 MB / 402.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004105/0.4332, allocations: 169.9 kB / 402.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004006/0.4372, allocations: 2.186 MB / 404.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.4372, allocations: 12 kB / 404.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.4372, allocations: 4 kB / 404.9 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.4372, allocations: 11.97 kB / 404.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008377/0.4456, allocations: 4.785 MB / 409.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.4457, allocations: 4.531 kB / 409.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009379/0.4466, allocations: 227.7 kB / 409.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001226/0.4479, allocations: 450.9 kB / 410.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.448, allocations: 43.92 kB / 410.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008098/0.4561, allocations: 7.963 MB / 418.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.355e-06/0.4562, allocations: 8 kB / 418.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00532/0.4615, allocations: 3.22 MB / 421.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008778/0.4624, allocations: 398.9 kB / 422 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002334/0.4626, allocations: 35.98 kB / 422 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009153/0.4636, allocations: 83.84 kB / 422.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000276/0.4638, allocations: 100.8 kB / 422.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-05/0.4639, allocations: 43.92 kB / 422.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001686/0.4656, allocations: 1.063 MB / 423.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4656, allocations: 0 / 423.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001852/0.4675, allocations: 492 kB / 423.8 MB, free: 14.29 MB / 366.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.0004215/0.4679, allocations: 199.1 kB / 424 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003926/0.4719, allocations: 2.289 MB / 426.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4719, allocations: 0 / 426.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002472/0.4744, allocations: 1.471 MB / 427.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002744/0.4771, allocations: 445.7 kB / 428.2 MB, free: 9.773 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009988/0.4871, allocations: 5.736 MB / 433.9 MB, free: 3.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002307/0.4895, allocations: 1.867 MB / 435.8 MB, free: 2.059 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00171/0.4912, allocations: 394.8 kB / 436.2 MB, free: 1.668 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000607/0.4918, allocations: 115.4 kB / 436.3 MB, free: 1.555 MB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.4919, allocations: 0 / 436.3 MB, free: 1.555 MB / 366.1 MB Notification: Performance of Templates: time 0.2457/0.7376, allocations: 25.3 MB / 461.6 MB, free: 103.7 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)